curl --fail-with-body -X PATCH "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')" \
-H "Content-Type: application/json" \
--data "$(jq -nc '{
"title": "Night circuits, volume 1"
}')"
{
"id": "<string>",
"title": "<string>",
"creator": "<string>",
"description": {},
"cover": {},
"public": true,
"created_at": "<string>"
}Albums
Update an album
Update an album’s title, description, cover or visibility.
PATCH
/
api
/
albums
/
{id}
curl --fail-with-body -X PATCH "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')" \
-H "Content-Type: application/json" \
--data "$(jq -nc '{
"title": "Night circuits, volume 1"
}')"
{
"id": "<string>",
"title": "<string>",
"creator": "<string>",
"description": {},
"cover": {},
"public": true,
"created_at": "<string>"
}Send at least one recognized field. Restrict this operation to the album creator in your product.
Headers and parameters
string
required
Resource ID.
JSON body
string
Minimum length:
1.string | null
string | null
boolean
Response (200)
Success.string
required
string
required
string
required
string | null
string | null
boolean
string
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.
| Status | Meaning |
|---|---|
400 | Invalid request. |
500 | Request failed. |
curl --fail-with-body -X PATCH "$RAWCHUNKS_API/api/albums/$(jq -nr --arg v "$ID" '$v|@uri')" \
-H "Content-Type: application/json" \
--data "$(jq -nc '{
"title": "Night circuits, volume 1"
}')"
⌘I