Publish a theme version
POST/v2/themes/{themeId}/versions
const url = 'https://api.ligr.live/rest/v2/themes/1/versions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"graphics":[{"graphicId":"example","version":1}],"activate":true}'};
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/themes/1/versions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "graphics": [ { "graphicId": "example", "version": 1 } ], "activate": true }'Beta. This operation can change between minor versions. See Beta status.
Creates a theme version from the published graphic versions. Each graphic you do not list uses
its latest published version, and the version leaves out a graphic that has no published
version. Set activate to make the new version live.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The theme identifier
Request Bodyrequired
Section titled “Request Bodyrequired”object
Pin these graphics to the given version. Unlisted graphics use their latest published version.
object
Set the new theme version active. Defaults to false.
Examplegenerated
{ "graphics": [ { "graphicId": "example", "version": 1 } ], "activate": true}Responses
Section titled “Responses”Created
object
The theme version this request created.
Theme version the overlays render. Null means no version is active.
Examplegenerated
{ "version": 1, "activeVersion": 1}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"}Theme not found
object
Examplegenerated
{ "message": "example"}Api key has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}