Cinema Studio

Change a preset

Rename a saved preset, or change its palette or rig. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

POST
/v1/studio/presets/{preset}
POST
/v1/studio/presets/{preset}
Change a preset
Rename a saved preset, or change its palette or rig.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
presetstringrequired
Change a preset
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/presets/{preset}' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "name": "<string>",
  "palette": {
    "name": "<string>",
    "swatches": "<string[]>"
  },
  "rig": {
    "lights": [
      {
        "color": "<string>",
        "intensity": 123,
        "diffusion": 123,
        "azimuth": 123,
        "elevation": 123
      }
    ],
    "ambient": {
      "color": "<string>",
      "intensity": 123
    }
  },
  "created_at": "<string>",
  "updated_at": "<string>",
  "request_id": "<string>"
}
Change a preset
curl -X POST https://api.auray.ai/v1/studio/presets/8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "name": "Sodium night, warmer"
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "name": "<string>",
  "palette": {
    "name": "<string>",
    "swatches": "<string[]>"
  },
  "rig": {
    "lights": [
      {
        "color": "<string>",
        "intensity": 123,
        "diffusion": 123,
        "azimuth": 123,
        "elevation": 123
      }
    ],
    "ambient": {
      "color": "<string>",
      "intensity": 123
    }
  },
  "created_at": "<string>",
  "updated_at": "<string>",
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — studio:write — Account offers it unticked; the desktop's session key holds it.

Path Parameters

presetstringrequired

Body

application/json
namestring
0 to 60 characters.
paletteobject
Show child attributes
namestringrequired
0 to 60 characters.
swatchesstring[]required
rigobject
Show child attributes
lightsobject[]required
Show child attributes
colorstringrequired
intensitynumberrequired
0 to 1.
diffusionnumberrequired
0 a bare bulb, 1 a cloud. 0 to 1.
azimuthnumberrequired
Degrees around the subject, 0 in front. 0 to ….
elevationnumberrequired
-90 to 90.
ambientobjectrequired
Show child attributes
colorstringrequired
intensitynumberrequired
0 to 1.

Response

application/json

OK.

objectstringrequired
One of "preset".
idstringrequired
kindstringrequired
One of "palette", "lighting".
namestringrequired
0 to 60 characters.
paletteobject
Show child attributes
namestringrequired
0 to 60 characters.
swatchesstring[]required
rigobject
Show child attributes
lightsobject[]required
Show child attributes
colorstringrequired
intensitynumberrequired
0 to 1.
diffusionnumberrequired
0 a bare bulb, 1 a cloud. 0 to 1.
azimuthnumberrequired
Degrees around the subject, 0 in front. 0 to ….
elevationnumberrequired
-90 to 90.
ambientobjectrequired
Show child attributes
colorstringrequired
intensitynumberrequired
0 to 1.
created_atstringrequired
updated_atstringrequired
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 preset
curl -X POST https://api.auray.ai/v1/studio/presets/8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "name": "Sodium night, warmer"
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "name": "<string>",
  "palette": {
    "name": "<string>",
    "swatches": "<string[]>"
  },
  "rig": {
    "lights": [
      {
        "color": "<string>",
        "intensity": 123,
        "diffusion": 123,
        "azimuth": 123,
        "elevation": 123
      }
    ],
    "ambient": {
      "color": "<string>",
      "intensity": 123
    }
  },
  "created_at": "<string>",
  "updated_at": "<string>",
  "request_id": "<string>"
}

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