Upload accesspoints via a CSV file.
POST /users/accesspoints/csv
Operation id: AccesspointService_CreateAccesspointsFromCsv
Description
Permission Level: Read-Write
Tags: AccesspointService
Security
- Authorization (apiKey)
- Bearer token
Responses
200 — A successful response.
Content type: application/json
default — An unexpected error response.
Content type: application/json
Request body
(streaming inputs)
Required: Yes
application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
tenantId | string | No | |
file | object | No | This protobuf message represents any file through an array of bytes. |
ignoreHeader | boolean | No | Set if the header row of the CSV file I'm uploading can be ignored. |
replaceExisting | boolean | No |
{
"type": "object",
"properties": {
"tenantId": {
"type": "string"
},
"file": {
"type": "object",
"description": "This protobuf message represents any file through an array of bytes.",
"properties": {
"content": {
"type": "string",
"format": "byte"
}
}
},
"ignoreHeader": {
"type": "boolean",
"description": "Set if the header row of the CSV file I'm uploading can be ignored."
},
"replaceExisting": {
"type": "boolean"
}
}
}
Response models
200 — A successful response.
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | No | - PENDING: The file upload is pending. Default option. - IN_PROGRESS: The file is being uploaded. - SUCCESS: The file was successfully uploaded. - FAILED: The file upload failed. - SUCCESS_WITH_ERRORS: At least one user was successfully uploaded, but others had errors |
batchId | string | No | batch_id for all the accesspoints in the bulk CSV upload. Randomly generated UUID string. |
{
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "- PENDING: The file upload is pending. Default option.\n - IN_PROGRESS: The file is being uploaded.\n - SUCCESS: The file was successfully uploaded.\n - FAILED: The file upload failed.\n - SUCCESS_WITH_ERRORS: At least one user was successfully uploaded, but others had errors",
"enum": [
"PENDING",
"IN_PROGRESS",
"SUCCESS",
"FAILED",
"SUCCESS_WITH_ERRORS"
],
"default": "PENDING"
},
"batchId": {
"type": "string",
"description": "batch_id for all the accesspoints in the bulk CSV upload. Randomly generated UUID string."
}
}
}
default — An unexpected error response.
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
code | integer (int32) | No | |
message | string | No | |
details | array | No |
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
}
}
}
}
}