Cinema Studio

Change a member's role

Give a member another role. The owner gives any role but their own; an admin gives a collaborator's or a viewer's, never another admin's; nobody changes their own. The member is told. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

POST
/v1/studio/projects/{project}/members/{member}
POST
/v1/studio/projects/{project}/members/{member}
Change a member's role
Give a member another role.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
memberstringrequired
Change a member's role
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/members/{member}' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "role": "<string>",
  "self": true,
  "name": "<string>",
  "handle": "<string>",
  "avatar_url": "<string>",
  "joined_at": "<string>",
  "room_epoch": 123,
  "request_id": "<string>"
}
Change a member's role
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/members/… \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "role": "collaborator"
}'
{
  "object": "<string>",
  "id": "<string>",
  "role": "<string>",
  "self": true,
  "name": "<string>",
  "handle": "<string>",
  "avatar_url": "<string>",
  "joined_at": "<string>",
  "room_epoch": 123,
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — a key with the scope the route names.

Path Parameters

projectstringrequired
memberstringrequired

Body

application/json
rolestringrequired
One of "admin", "collaborator", "viewer".

Response

application/json

OK.

objectstringrequired
One of "member".
idstringrequired
rolestringrequired
One of "owner", "admin", "collaborator", "viewer".
selfbooleanrequired
namestringrequired
May be null.
handlestringrequired
May be null.
avatar_urlstringrequired
A URL. May be null.
joined_atstringrequired
room_epochinteger
On the reader's own row only: the epoch the project's Realtime topics are named with now (studio:<project>:<epoch>:<channel>). It moves whenever somebody leaves the project or loses a capability, and a window joins its channels again with the new one. 0 to ….
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Change a member's role
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/members/… \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "role": "collaborator"
}'
{
  "object": "<string>",
  "id": "<string>",
  "role": "<string>",
  "self": true,
  "name": "<string>",
  "handle": "<string>",
  "avatar_url": "<string>",
  "joined_at": "<string>",
  "room_epoch": 123,
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.