REFRESH Registration Token
PUT/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": "2024-11-28T14:03:07.316Z"
}
{
"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": "2024-11-28T14:03:07.316Z"
}
{
"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"
}
Loading...