Cinema Studio

Publish a project to the Community

Publish the project to the Community, or publish it again as it is now: a SNAPSHOT of the folders and items named — never what is in the Trash or not ready — copied into the Community, with the can…

POST
/v1/studio/projects/{project}/publication
POST
/v1/studio/projects/{project}/publication
Publish a project to the Community
Publish the project to the Community, or publish it again as it is now: a SNAPSHOT of the folders and items named — never what is in the Trash or not ready — copied into the Community, with the can…
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
Publish a project to the Community
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/publication' \
  --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>"
}
Publish a project to the Community
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/publication \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "folders": [
    "all"
  ],
  "items": [],
  "canvases": [],
  "title": "Night harbour",
  "description": "A short about a lighthouse keeper.",
  "category": "short",
  "show_prompts": true,
  "show_canvas": false,
  "discoverable": true,
  "show_spend": false,
  "licence": true
}'
{
  "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>"
}

Publish the project to the Community, or publish it again as it is now: a SNAPSHOT of the folders and items named — never what is in the Trash or not ready — copied into the Community, with the canvases named while show_canvas is on, only ever as a reader may see them. It is published under the owner's public profile, so only the project's owner may, with the licence ticked as for a single work and a Terms version that states it. Every word a stranger would read — title, description, the items' names, shown prompts and canvases — passes the automatic check first. On its page and the owner's profile once its files are copied (copying says how far); in the public feeds only once our team approves it. Publishing again copies beside the live snapshot and replaces it when done, back in our team's queue. A request copies what it has time for and the rest is finished in the background. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

projectstringrequired

Body

application/json
foldersstring[]required
Whole folders: all, generations, uploads, or a member's folder by its id.
itemsstring[]required
Single items besides.
canvasesstring[]
The canvases shown while show_canvas is on.
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.
titlestringrequired
0 to 100 characters.
descriptionstring
0 to 2000 characters. May be null.
categorystringrequired
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 snapshot as its cover; left out, the project's own. May be null.
licencebooleanrequired
Publishing grants the display and remix licences the Terms state, for this project. One of true.
terms_versionstring
The Terms version you accepted that states what publishing a project grants and shows. Defaults to the current one.

Response

application/json

Created.

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?

Publish a project to the Community
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/publication \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "folders": [
    "all"
  ],
  "items": [],
  "canvases": [],
  "title": "Night harbour",
  "description": "A short about a lighthouse keeper.",
  "category": "short",
  "show_prompts": true,
  "show_canvas": false,
  "discoverable": true,
  "show_spend": false,
  "licence": true
}'
{
  "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.