Skip to content

Delete a theme variable

DELETE/v2/themes/{themeId}/variables/{id}

DELETE
/v2/themes/{themeId}/variables/{id}
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.

themeId
required
number format: double

The theme identifier

id
required
string

The variable identifier

ifUnchangedSince
string

Ok

Media typeapplication/json

Response of DELETE /v2/themes/{themeId}/variables/{id}.

object
updatedAt
required

The theme’s new updatedAt after this delete.

string
Examplegenerated
{
"updatedAt": "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"
}

Theme or variable not found

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

IfUnchangedSince no longer matches the theme

Media typeapplication/json

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
message
required
string
code
required
string
Examplegenerated
{
"message": "example",
"code": "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"
}