Cinema Studio

Save a preset

Save a palette or a lighting rig, as many as your plan's studio.max_presets (on GET /v1/plans).

POST
/v1/studio/presets
POST
/v1/studio/presets
Save a preset
Save a palette or a lighting rig, as many as your plan's studio.max_presets (on GET /v1/plans).
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
Save a preset
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/presets' \
  --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>"
}
Save a preset
curl -X POST https://api.auray.ai/v1/studio/presets \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "kind": "palette",
  "name": "Sodium night",
  "palette": {
    "name": "Sodium night",
    "swatches": [
      "#0b0d17",
      "#1d2340",
      "#3a2f5b",
      "#f2a541",
      "#f6d18b",
      "#c0392b",
      "#16a085",
      "#ecf0f1"
    ]
  }
}'
{
  "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>"
}

Save a palette or a lighting rig, as many as your plan's studio.max_presets (on GET /v1/plans). Past it the answer is 409 studio_limit_reached with limit presets and the figure in force as max. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

Authorizations

Authorizationstringheaderrequired

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

Body

application/json
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.

Response

application/json

Created.

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?

Save a preset
curl -X POST https://api.auray.ai/v1/studio/presets \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "kind": "palette",
  "name": "Sodium night",
  "palette": {
    "name": "Sodium night",
    "swatches": [
      "#0b0d17",
      "#1d2340",
      "#3a2f5b",
      "#f2a541",
      "#f6d18b",
      "#c0392b",
      "#16a085",
      "#ecf0f1"
    ]
  }
}'
{
  "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.