Delete an image template
DELETE/v1/image-templates/{imageTemplateId}
const url = 'https://api.ligr.live/rest/v1/image-templates/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/v1/image-templates/1 \ --header 'Authorization: Bearer <token>'Deletes an image template. A template that entity images or theme mappings still use is refused with 409, and the body lists that usage. Remove those references first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The image template id
Responses
Section titled “Responses”Deleted
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"}Image template not found
object
Examplegenerated
{ "message": "example"}Something still uses the image template
Body of a 409 answer for a template that is still in use.
code is always IMAGE_TEMPLATE_IN_USE. usage lists what still uses the template.
object
Everything that still uses the template. A template in use cannot be deleted.
object
Images that players, teams or competitions hold for the template.
One competition theme setting that binds the template into a graphic.
object
Entity identifier
Entity identifier
Entity identifier
The graphic the template feeds. Null: not tied to one graphic.
Examplegenerated
{ "message": "example", "code": "example", "usage": { "instanceCount": 1, "themeMappings": [ { "competitionId": 1, "competitionName": "example", "themeSettingId": 1, "themeSettingName": "example", "themeId": 1, "graphicId": "example" } ] }}Organization has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}