Create a new device.
POST/v1/devices
Create a new device.
Request
- application/json
Body
required
Unique identifier for the person
Possible values: non-empty
and <= 80 characters
Name of device.
Responses
- 201
- 400
- 401
- 403
- 409
- 422
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
A URL to the JSON Schema for this object.
data
object
required
Date and time the device was created.
Unique identifier for the person
Possible values: non-empty
and <= 80 characters
Name of device.
Date and time the device was updated.
{
"$schema": "string",
"data": {
"createdAt": "2024-05-28T11:44:09.268Z",
"devEui": "string",
"name": "string",
"updatedAt": "2024-05-28T11:44:09.268Z"
},
"status": 0,
"timestamp": "2024-05-28T11:44:09.268Z"
}
Bad Request
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}
Unauthorized
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}
Forbidden
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}
Conflict
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}
Unprocessable Entity
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}
Internal Server Error
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}