Give an organization access
PUT/v2/themes/{themeId}/organizations/{organizationId}
const url = 'https://api.ligr.live/rest/v2/themes/1/organizations/1';const options = {method: 'PUT', 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 PUT \ --url https://api.ligr.live/rest/v2/themes/1/organizations/1 \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Gives an organization access to a LIGR theme. When the theme has an active version, the organization can select it for a competition. A second call changes nothing. Only a LIGR staff theme key can call this route. To remove access, use the admin Themes page of the dashboard.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The theme identifier
Entity identifier
The organization identifier
Responses
Section titled “Responses”Ok
An organization that can use a theme it does not own.
object
Entity identifier
Examplegenerated
[ { "id": 1, "name": "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"}Theme or organization 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"}