REFRESH Registration Token
PUThttps://api.eu1.spotflow.io/devices/registration-tokens/refresh
Refresh registration token
Request
- application/json-patch+json
- application/json
- text/json
- application/*+json
Body
registrationToken stringrequired
Body
registrationToken stringrequired
Body
registrationToken stringrequired
Body
registrationToken stringrequired
Responses
- 200
- 201
- 403
- 410
- 412
New registration token is created. Parent registration token is already in grace period. Previously returned newly generated token is revoked.
- application/json
- Schema
- Example (from schema)
- example-1
Schema
registrationToken stringrequired
expirationTime date-timenullable
{
"registrationToken": "string",
"expirationTime": "2025-01-10T10:10:08.004Z"
}
{
"expirationTime": "2021-11-12T14:00:00+00:00",
"registrationToken": "rrGhpc19pc19hbl9leGFtcGxlX3Rva2VuX3RoaXNfaXNfYW5fZXhhbXBsZV90b2tlbl90aGlzX2lzX2FuX2V4YW1wbGVfdG9rZW5fdGhpc19pc19hbl9leGFtcGxlX3Rva2VuX3RoaXNfaXNfYW5fZXhhbXBsZV90b2tlbl90aGlzX2lzX2FuX2V4YW1wbGVfdG9rZW4="
}
New registration token is created. Parent registration token will be revoked after grace period passes. Grantparent will be revoked immediately.
- application/json
- Schema
- Example (from schema)
- example-1
Schema
registrationToken stringrequired
expirationTime date-timenullable
{
"registrationToken": "string",
"expirationTime": "2025-01-10T10:10:08.005Z"
}
{
"expirationTime": "2021-11-12T14:00:00+00:00",
"registrationToken": "rrGhpc19pc19hbl9leGFtcGxlX3Rva2VuX3RoaXNfaXNfYW5fZXhhbXBsZV90b2tlbl90aGlzX2lzX2FuX2V4YW1wbGVfdG9rZW5fdGhpc19pc19hbl9leGFtcGxlX3Rva2VuX3RoaXNfaXNfYW5fZXhhbXBsZV90b2tlbl90aGlzX2lzX2FuX2V4YW1wbGVfdG9rZW4="
}
Forbidden.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Registration token invalid/expired/revoked
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Too many refresh operation requests for the device.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- curl
- python
- nodejs
- csharp
- powershell
- CURL
curl -L -X PUT 'https://api.eu1.spotflow.io/devices/registration-tokens/refresh' \
-H 'Content-Type: application/json-patch+json' \
-H 'Accept: application/json' \
--data-raw '{
"registrationToken": "string"
}'