Reset token
Changed onRotate the stream token: invalidate the current token and generate a new one. Any client using the old token must be updated.
Result. Always HTTP 200: check status (1 on success) and read the new token. An unknown stream ID returns 404.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
Request
- Base URLhttps://api.commpeak.com/textpeak
- URLhttps://api.commpeak.com/textpeak/streams/{id}/token/reset
- AuthAPI key in header Authorization
Path parameters
Unique identifier of the resource.
Response
Successful Response
Example response
{
"message": "OK",
"status": 1,
"token": "578f7b486a401391ccb41b660d969d92c320334d"
}Changes
- breaking
added the new path request parameter
id - breaking
response property
tokenlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
api operation id
resetTokenremoved and replaced withreset_stream_token - info
the endpoint scheme security
APIKeyHeaderwas added to the API - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status
- breaking