Cinema Studio

Change a publication's words and switches

Change a publication's title, description, category, cover or switches without a new snapshot. New words pass the automatic check and go back to our team's queue. Hiding prompts or canvases deletes them from the publication; showing them again is publishing again. Only its author may. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

POST
/v1/studio/projects/{project}/publication/settings
POST
/v1/studio/projects/{project}/publication/settings
Change a publication's words and switches
Change a publication's title, description, category, cover or switches without a new snapshot.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
Change a publication's words and switches
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/publication/settings' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "project_id": "<string>",
  "publication_id": "<string>",
  "url": "<string>",
  "title": "<string>",
  "description": "<string>",
  "category": "<string>",
  "toggles": {
    "show_prompts": true,
    "show_canvas": true,
    "discoverable": true,
    "show_spend": true
  },
  "selection": {
    "folders": "<string[]>",
    "items": "<string[]>",
    "canvases": "<string[]>"
  },
  "items": 123,
  "mine": true,
  "standing": "<null or object>",
  "fingerprint": "<string>",
  "changed": true,
  "copying": "<null or object>",
  "published_at": "<string>",
  "republished_at": "<string>",
  "request_id": "<string>"
}
Change a publication's words and switches
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/publication/settings \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "title": "Night harbour, cut two",
  "show_prompts": false
}'
{
  "object": "<string>",
  "project_id": "<string>",
  "publication_id": "<string>",
  "url": "<string>",
  "title": "<string>",
  "description": "<string>",
  "category": "<string>",
  "toggles": {
    "show_prompts": true,
    "show_canvas": true,
    "discoverable": true,
    "show_spend": true
  },
  "selection": {
    "folders": "<string[]>",
    "items": "<string[]>",
    "canvases": "<string[]>"
  },
  "items": 123,
  "mine": true,
  "standing": "<null or object>",
  "fingerprint": "<string>",
  "changed": true,
  "copying": "<null or object>",
  "published_at": "<string>",
  "republished_at": "<string>",
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

projectstringrequired

Body

application/json
show_promptsbooleandefault: true
Show each asset's prompt and the canvases' prompts.
show_canvasbooleandefault: false
Show the canvases named in canvases, read-only.
discoverablebooleandefault: true
Let it into the public feeds and search once approved.
show_spendbooleandefault: false
Ask for its info card to say what its generations cost. Kept, and shown nowhere for now: a published work's cost is not shown.
titlestring
0 to 100 characters.
descriptionstring
0 to 2000 characters. May be null.
categorystring
One of "film", "short", "series", "trailer", "commercial", "music_video", "animation", "documentary", "fashion", "game", "worldbuilding", "experimental", "other".
cover_item_idstring
A picture or a clip of the live snapshot, by the project's item it was; null for the project's own cover. May be null.

Response

application/json

OK.

objectstringrequired
One of "project_publication".
project_idstringrequired
publication_idstringrequired
The Community work it is: GET /community/publications/{id}.
urlstringrequired
Its page under its author's profile on auray.ai. A URL.
titlestringrequired
0 to 100 characters.
descriptionstringrequired
0 to 2000 characters. May be null.
categorystringrequired
One of "film", "short", "series", "trailer", "commercial", "music_video", "animation", "documentary", "fashion", "game", "worldbuilding", "experimental", "other".
togglesobjectrequired
What a publication shows. Hiding prompts or canvases deletes them from it; showing them again is a new snapshot.
Show child attributes
show_promptsbooleanrequired
Each asset's prompt, and the canvases' prompts, are shown.
show_canvasbooleanrequired
The canvases chosen are shown, read-only — only ever as a reader may see them.
discoverablebooleanrequired
It may enter the public feeds and search once our team approves it.
show_spendbooleanrequired
Its author asked for the info card to say what its generations cost; no public answer says it for now.
selectionobjectrequired
What the live snapshot was made from, in the project's own ids.
Show child attributes
foldersstring[]required
itemsstring[]required
canvasesstring[]required
itemsintegerrequired
How many assets the live snapshot shows. 0 to ….
minebooleanrequired
The caller is the publication's author. Only its author changes or unpublishes it, and only its author is told its moderation standing — after an ownership transfer that may be the former owner.
standingnull or objectrequired
Where it stands in the Community and why — answered to its author alone; null for every other member.
fingerprintstringrequired
What the live snapshot was made from, as changed compares it.
changedbooleanrequired
The project changed since inside what was published: publishing again makes a new snapshot.
copyingnull or objectrequired
A snapshot whose files are still being copied, and how far it has got; null when none is. A first publish is on no page until it is done.
published_atstringrequired
Null while its first snapshot is still being copied. May be null.
republished_atstringrequired
May be null.
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 publication's words and switches
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/publication/settings \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "title": "Night harbour, cut two",
  "show_prompts": false
}'
{
  "object": "<string>",
  "project_id": "<string>",
  "publication_id": "<string>",
  "url": "<string>",
  "title": "<string>",
  "description": "<string>",
  "category": "<string>",
  "toggles": {
    "show_prompts": true,
    "show_canvas": true,
    "discoverable": true,
    "show_spend": true
  },
  "selection": {
    "folders": "<string[]>",
    "items": "<string[]>",
    "canvases": "<string[]>"
  },
  "items": 123,
  "mine": true,
  "standing": "<null or object>",
  "fingerprint": "<string>",
  "changed": true,
  "copying": "<null or object>",
  "published_at": "<string>",
  "republished_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.