Refresh Token
PATCH/api/v2/business/:businessId/instance/:instanceId/refresh-token
Route for Instance Token Update
Request
Path Parameters
instanceId stringrequired
ID of the instance.
businessId stringrequired
Business ID.
- application/json
Body
required
Old Token
oldToken Old Tokenrequired
Responses
- 200
- 400
- 401
New Token
- application/json
- Schema
- Example (from schema)
Schema
newToken string
{
"newToken": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...