Get an image template
GET/v1/image-templates/{imageTemplateId}
const url = 'https://api.ligr.live/rest/v1/image-templates/1';const options = {method: 'GET', 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 GET \ --url https://api.ligr.live/rest/v1/image-templates/1 \ --header 'Authorization: Bearer <token>'Return one image template, with what still uses it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The image template id
Responses
Section titled “Responses”Ok
object
Entity identifier
Pixel width every image of the template must have.
Pixel height every image of the template must have.
The kind of entity a template holds one image for.
URL of the default image. Null: the template has no default image.
File id of the default image. Send it as defaultFileId on a Rive asset exposure to use it as the fallback image.
Null: the template has no default image.
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.
Example
{ "entityType": "player", "sport": "football"}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"}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"}