Create a theme profile
POST/v2/competitions/{competitionId}/theme-profiles
const url = 'https://api.ligr.live/rest/v2/competitions/1/theme-profiles';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"themeId":1,"name":"example","defaultControlRoomId":1,"themeVariableValues":[{"variableId":"example","value":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ligr.live/rest/v2/competitions/1/theme-profiles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "themeId": 1, "name": "example", "defaultControlRoomId": 1, "themeVariableValues": [ { "variableId": "example", "value": "example" } ] }'Creates a theme profile. The first profile becomes the competition default.
Your organization must be able to use the theme: a theme it owns, a theme LIGR linked to it, or a
public theme. Inbuilt themes answer 404. GET /v2/themes?access=usable lists the themes you can use.
The theme must have an active version and support the competition sport.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Assign a theme your organization can use (owned, linked or public, never inbuilt) to a competition. The default control room must belong to this organization and use the same theme.
object
Entity identifier
Default Entity name
Entity identifier
Examplegenerated
{ "themeId": 1, "name": "example", "defaultControlRoomId": 1, "themeVariableValues": [ { "variableId": "example", "value": "example" } ]}Responses
Section titled “Responses”Created
object
Entity identifier
Entity identifier
Entity identifier
The game plan that overlay automation runs for matches that use this profile.
Examplegenerated
{ "id": 1, "competitionId": 1, "themeId": 1, "name": "example", "defaultControlRoomId": 1, "automationGamePlanId": 1, "isDefault": true, "themeVariableValues": [ { "variableId": "example", "value": "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"}Competition, theme, control room, game plan, or profile 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"}