Delete a theme
DELETE/v2/themes/{themeId}
DELETE
/v2/themes/{themeId}
const url = 'https://api.ligr.live/rest/v2/themes/1';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 \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Deletes a theme your organization owns, with every graphic in it. A theme a competition still uses is refused with 409. Remove the theme from the competition first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”themeId
required
Entity identifier
integer format: int32
The theme identifier
Responses
Section titled “Responses”Deleted
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 not found
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}A competition still uses the theme
Media typeapplication/json
Body of a 409 answer for a theme a competition still uses.
code is always THEME_IN_USE. details names one competition per line.
object
message
required
string
code
required
string
details
required
Array<string>
Examplegenerated
{ "message": "example", "code": "example", "details": [ "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"}