Community

Change a work

Change a published work of yours. New words pass the automatic check and send the work back to our team for review; show_prompt: false hides its prompt and settings for good (a hidden prompt is deleted, so it cannot be shown again); discoverable lets it into or out of the public feeds; profile_pinned pins it to your profile, three at most. Fields left out stay as they are. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing. While our team has paused publishing, a new title or description waits — 503 publishing_paused — and every other change here still goes through.

POST
/v1/community/publications/{id}
POST
/v1/community/publications/{id}
Change a work
Change a published work of yours.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
Change a work
curl --request POST \
  --url 'https://api.auray.ai/v1/community/publications/{id}' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "model": {
    "address": "<string>",
    "id": "<string>",
    "label": "<string>"
  },
  "attribution": "<string>",
  "ai_generated": true,
  "media": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "author": {},
  "counts": {
    "likes": 123,
    "views": 123,
    "comments": 123,
    "remixes": 123
  },
  "made_at": "<string>",
  "published_at": "<string>",
  "featured": true,
  "pinned": true,
  "original": true,
  "remixed": true,
  "liked": true,
  "url": "<string>",
  "description": "<string>",
  "show_prompt": true,
  "prompt": "<string>",
  "params": {},
  "remix_kind": "<string>",
  "remix_of": {
    "id": "<string>",
    "kind": "<string>",
    "title": "<string>",
    "author": {},
    "url": "<string>"
  },
  "mine": {
    "state": "<string>",
    "state_reason": "<string>",
    "approval": "<string>",
    "approval_reason": "<string>",
    "discoverable": true,
    "profile_pinned": true,
    "held": true,
    "licence_version": "<string>",
    "created_at": "<string>"
  },
  "request_id": "<string>"
}
Change a work
curl -X POST https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "title": "Lighthouse, morning fog",
  "discoverable": true
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "model": {
    "address": "<string>",
    "id": "<string>",
    "label": "<string>"
  },
  "attribution": "<string>",
  "ai_generated": true,
  "media": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "author": {},
  "counts": {
    "likes": 123,
    "views": 123,
    "comments": 123,
    "remixes": 123
  },
  "made_at": "<string>",
  "published_at": "<string>",
  "featured": true,
  "pinned": true,
  "original": true,
  "remixed": true,
  "liked": true,
  "url": "<string>",
  "description": "<string>",
  "show_prompt": true,
  "prompt": "<string>",
  "params": {},
  "remix_kind": "<string>",
  "remix_of": {
    "id": "<string>",
    "kind": "<string>",
    "title": "<string>",
    "author": {},
    "url": "<string>"
  },
  "mine": {
    "state": "<string>",
    "state_reason": "<string>",
    "approval": "<string>",
    "approval_reason": "<string>",
    "discoverable": true,
    "profile_pinned": true,
    "held": true,
    "licence_version": "<string>",
    "created_at": "<string>"
  },
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

idstringrequired

Body

application/json
titlestring
One line. 0 to 100 characters. May be null.
descriptionstring
0 to 2000 characters. May be null.
show_promptboolean
One of false.
discoverableboolean
profile_pinnedboolean

Response

application/json

OK: the work as it stands now.

objectstringrequired
One of "publication".
idstringrequired
The work's public id.
kindstringrequired
One of "image", "video", "audio", "model3d", "project".
titlestringrequired
May be null.
modelobjectrequired
Show child attributes
addressstringrequired
The model address it was made with, as GET /v1/models lists it: the path a job is submitted to, such as auray-ai/krea-2-turbo/text-to-image. May be null.
idstringrequired
The same model's id, as GET /v1/models lists it: the catalogue slug, such as krea2. May be null.
labelstringrequired
The model's name, as a person reads it. May be null.
attributionstringrequired
The licence text the model's output travels with. Show it wherever the work is shown. May be null.
ai_generatedbooleanrequired
Every work here is a generation's result. Label it so wherever it is shown. One of true.
mediaobject[]required
Show child attributes
rolestringrequired
primary is the work as it was made; the rest are what the feeds draw: an image's thumbnail, a video's or a model's poster and thumbnail, a song's waveform (JSON: {version, peaks}). One of "primary", "poster", "preview", "thumbnail", "waveform".
positionintegerrequired
urlstringrequired
Where to load it. Kept until its author unpublishes the work. A URL.
content_typestringrequired
widthintegerrequired
May be null.
heightintegerrequired
May be null.
duration_msintegerrequired
May be null.
suppliedbooleanrequired
True for a poster, or its thumbnail, that the work's author supplied rather than one our services made: it is not what the model made, and the work's ai_generated does not describe it.
authorobject or nullrequired
countsobjectrequired
Show child attributes
likesintegerrequired
viewsintegerrequired
Counted once a day per visitor.
commentsintegerrequired
remixesintegerrequired
made_atstringrequired
When the result was made. May be null.
published_atstringrequired
May be null.
featuredbooleanrequired
Featured by our team.
pinnedbooleanrequired
Pinned by our team to the top of the public feeds.
originalbooleanrequired
An Original: made by our own team.
remixedbooleanrequired
Made from another work.
likedbooleanrequired
The reader's own like; null when no key that holds community:write was sent. May be null.
urlstringrequired
The work's page. A URL.
descriptionstringrequired
May be null.
show_promptbooleanrequired
promptstringrequired
Only while its author shows it. A hidden prompt is not stored anywhere. May be null.
paramsobjectrequired
The settings it was made with, only while shown — never a file that was uploaded to make it. May be null.
remix_kindstringrequired
One of "recreate", "animate", "upscale", "edit", null. May be null.
remix_ofobjectrequired
The work it was made from, while that is shown. May be null.
Show child attributes
idstring
kindstring
One of "image", "video", "audio", "model3d", "project".
titlestring
May be null.
authorobject or null
urlstring
A URL.
mineobject
Where an author's own work stands and why. Only ever answered to its author.
Show child attributes
statestringrequired
published is shown on the profile and at its link; hidden while a severe report is reviewed; withdrawn unpublished while a report held it; removed taken down by our team; staging while its files are copied. One of "staging", "published", "hidden", "withdrawn", "removed".
state_reasonstringrequired
Why our team hid or removed it. May be null.
approvalstringrequired
Whether it is in the public feeds and search. Approval gates the feeds only — never the profile or the link. One of "pending", "approved", "rejected".
approval_reasonstringrequired
Why our team declined it for the feeds. May be null.
discoverablebooleanrequired
The author lets it into the public feeds once approved.
profile_pinnedbooleanrequired
heldbooleanrequired
An open report holds it: it is kept until the report is decided.
licence_versionstring
The Terms version whose display and remix licences were granted.
created_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 work
curl -X POST https://api.auray.ai/v1/community/publications/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "title": "Lighthouse, morning fog",
  "discoverable": true
}'
{
  "object": "<string>",
  "id": "<string>",
  "kind": "<string>",
  "title": "<string>",
  "model": {
    "address": "<string>",
    "id": "<string>",
    "label": "<string>"
  },
  "attribution": "<string>",
  "ai_generated": true,
  "media": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "author": {},
  "counts": {
    "likes": 123,
    "views": 123,
    "comments": 123,
    "remixes": 123
  },
  "made_at": "<string>",
  "published_at": "<string>",
  "featured": true,
  "pinned": true,
  "original": true,
  "remixed": true,
  "liked": true,
  "url": "<string>",
  "description": "<string>",
  "show_prompt": true,
  "prompt": "<string>",
  "params": {},
  "remix_kind": "<string>",
  "remix_of": {
    "id": "<string>",
    "kind": "<string>",
    "title": "<string>",
    "author": {},
    "url": "<string>"
  },
  "mine": {
    "state": "<string>",
    "state_reason": "<string>",
    "approval": "<string>",
    "approval_reason": "<string>",
    "discoverable": true,
    "profile_pinned": true,
    "held": true,
    "licence_version": "<string>",
    "created_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.