Delete a theme variable
DELETE/v2/themes/{themeId}/variables/{id}
const url = 'https://api.ligr.live/rest/v2/themes/1/variables/example';const options = {method: 'DELETE', 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 DELETE \ --url https://api.ligr.live/rest/v2/themes/1/variables/example \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Removes one theme variable. A competition that set a value for the variable loses that value at the next theme version.
The response carries the theme’s new updatedAt, so a caller does not need a fresh list
read to keep sending ifUnchangedSince on further writes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The theme identifier
The variable identifier
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Ok
Response of DELETE /v2/themes/{themeId}/variables/{id}.
object
The theme’s new updatedAt after this delete.
Examplegenerated
{ "updatedAt": "example"}Request is invalid
object
object
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
object
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
object
Examplegenerated
{ "message": "example"}Theme or variable not found
object
Examplegenerated
{ "message": "example"}IfUnchangedSince no longer matches the theme
Body of a 409 answer when the caller’s ifUnchangedSince no longer matches.
code is always TARGET_CHANGED. Read the resource again and send the write once more.
object
Examplegenerated
{ "message": "example", "code": "example"}Api key has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}