Register device
POSThttps://apis.<domain>/ownerships
Authorization: http
name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
Register device.
Authorization Action:
resource:devices:register
Request
- application/json
Body
required
deviceId stringrequired
Identifier of the device for which ownership is requested (e.g. serial number)
Responses
- 201
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
resourceId stringrequired
The id of the created resource
{
"resourceId": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://apis.<domain>/ownerships' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"deviceId": "CTP-0139836"
}'