Create Device
POST/v1/:clientId/user-devices
The only required field in the body is deviceId - the rest are optional.
You can associate a device with an InCrowd SSO (auth) ID by supplying an InCrowd access token in the Authorization header, for example:
Authorization: Bearer {access_token}
This will populate the authId field automatically with their SSO ID.
Duration is measured in seconds.
Request
Path Parameters
Header Parameters
[Optional] InCrowd access token
- application/json
Body
object
Responses
- 200
- 401
- 409
OK
Response Headers
Content-Type
string
Content-Length
integer
Connection
string
Vary
string
Date
string
X-Cache
string
Via
string
X-Amz-Cf-Pop
string
X-Amz-Cf-Id
string
- application/json
- Schema
- Example (from schema)
- Example
Schema
object
{}
{
"status": "success",
"metadata": {
"createdAt": "2021-02-02T17:31:04.525Z"
}
}
Unauthorized
Response Headers
Content-Type
string
Vary
string
Date
string
Content-Length
integer
- application/json
- Schema
- Example (from schema)
- Example
Schema
object
{}
{
"status": "fail",
"error": {
"code": "unauthorized",
"domain": "device-tags"
},
"message": "Unauthorized",
"metadata": {
"createdAt": "2021-05-04T11:16:55.798Z"
}
}
Conflict
Response Headers
Content-Type
string
Vary
string
Date
string
Content-Length
integer
- application/json
- Schema
- Example (from schema)
- Example
Schema
object
{}
{
"status": "fail",
"error": {
"code": "device_exists",
"domain": "device-tags"
},
"message": "Device with ID [1234-567810] exists",
"metadata": {
"createdAt": "2021-05-04T11:17:23.863Z"
}
}