Docs

Start here

Change a collection

POST/v1/community/collections/{id}on https://api.auray.ai/v1

Change one of your collections: its title, description, or whether it is public.

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.

#Authentication

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

#Request

#Path parameters

NameTypeRequiredDescription
idstringyes

#Body

application/json, required.

FieldTypeRequiredDefaultDescription
titlestringno—0 to 80 characters.
descriptionstringno—0 to 500 characters. May be null.
publicbooleanno—

#Example request

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
}'

#Responses

#200 OK

OK.

FieldTypeRequiredDefaultDescription
objectstringyes—One of "collection".
idstringyes—
titlestringyes—
descriptionstringyes—May be null.
publicbooleanyes—Shown on its owner's profile.
itemsintegeryes—Works in it, shown or not.
updated_atstringyes—
minebooleanyes—
coverobject[]yes—The newest shown work's files.
cover[].rolestringyes—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".
cover[].positionintegeryes—
cover[].urlstringyes—Where to load it. Kept until its author unpublishes the work. A URL.
cover[].content_typestringyes—
cover[].widthintegeryes—May be null.
cover[].heightintegeryes—May be null.
cover[].duration_msintegeryes—May be null.
cover[].suppliedbooleanyes—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 nullno—
request_idstringno—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

#400 Bad Request

#401 Unauthorized

#403 Forbidden

#404 Not Found

#428 Precondition Required

#429 Too Many Requests

#503 Service Unavailable

#Status codes

StatusMeaning
200OK.
400Bad Request
401Unauthorized
403Forbidden
404Not Found
428Precondition Required
429Too Many Requests
503Service Unavailable

Every refusal names its code, and every code is explained at Errors.

Start typing to search every page of the documentation.

Up arrow Down arrow to moveEnter to openEscape to close