Refresh an overlay key
POST/v1/overlays/{overlayId}/refresh-key
POST
/v1/overlays/{overlayId}/refresh-key
const url = 'https://api.ligr.live/rest/v1/overlays/1/refresh-key';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ligr.live/rest/v1/overlays/1/refresh-key \ --header 'Authorization: Bearer <token>'Refresh the overlay key. The previous key stops working immediately.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”overlayId
required
Entity identifier
integer format: int32
The overlay id
Responses
Section titled “Responses”Ok
Media typeapplication/json
object
key
required
Stringified UUIDv4. See RFC 4112
string
Examplegenerated
{ "key": "example"}Request is invalid
Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Overlay not found
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key has made too many requests
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}