Community

Change a collection

Change one of your collections: its title, description, or whether it is public. 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.

POST
/v1/community/collections/{id}
POST
/v1/community/collections/{id}
Change a collection
Change one of your collections: its title, description, or whether it is public.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
Change a collection
curl --request POST \
  --url 'https://api.auray.ai/v1/community/collections/{id}' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "public": true,
  "items": 123,
  "updated_at": "<string>",
  "mine": true,
  "cover": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "owner": {},
  "request_id": "<string>"
}
Change a collection
curl -X POST https://api.auray.ai/v1/community/collections/5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "public": true
}'
{
  "object": "<string>",
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "public": true,
  "items": 123,
  "updated_at": "<string>",
  "mine": true,
  "cover": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "owner": {},
  "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
0 to 80 characters.
descriptionstring
0 to 500 characters. May be null.
publicboolean

Response

application/json

OK.

objectstringrequired
One of "collection".
idstringrequired
titlestringrequired
descriptionstringrequired
May be null.
publicbooleanrequired
Shown on its owner's profile.
itemsintegerrequired
Works in it, shown or not.
updated_atstringrequired
minebooleanrequired
coverobject[]required
The newest shown work's files.
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.
ownerobject or 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 collection
curl -X POST https://api.auray.ai/v1/community/collections/5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "public": true
}'
{
  "object": "<string>",
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "public": true,
  "items": 123,
  "updated_at": "<string>",
  "mine": true,
  "cover": [
    {
      "role": "<string>",
      "position": 123,
      "url": "<string>",
      "content_type": "<string>",
      "width": 123,
      "height": 123,
      "duration_ms": 123,
      "supplied": true
    }
  ],
  "owner": {},
  "request_id": "<string>"
}

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