Skip to content

Give an organization access

PUT/v2/themes/{themeId}/organizations/{organizationId}

PUT
/v2/themes/{themeId}/organizations/{organizationId}
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.

themeId
required

Entity identifier

integer format: int32
>= 1

The theme identifier

organizationId
required

Entity identifier

integer format: int32
>= 1

The organization identifier

Ok

Media typeapplication/json
Array<object>

An organization that can use a theme it does not own.

object
id
required

Entity identifier

integer format: int32
>= 1
name
required
string
Examplegenerated
[
{
"id": 1,
"name": "example"
}
]

Request is invalid

Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{
"message": "example",
"details": {
"additionalProperty": "example"
}
}

Missing or invalid api key

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key provides insufficient access for the request

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Theme or organization not found

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Organization has made too many requests

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

An unexpected error has occured. If problems persist please contact support

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}