Skip to main content
PATCH
/
galleries
/
{slug}
Update a gallery
curl --request PATCH \
  --url https://api.neuraldraft.io/v1/galleries/{slug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "items": [
    {
      "url": "https://cdn.neuraldraft.io/galleries/atelier/hero-1.jpg",
      "alt": "Atelier studio entrance"
    }
  ]
}
'
{
  "data": {
    "slug": "home-carousel",
    "name": "Home carousel",
    "items": [
      {
        "url": "https://cdn.neuraldraft.io/galleries/atelier/hero-1.jpg",
        "alt": "Atelier studio entrance"
      }
    ],
    "items_count": 3,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Path Parameters

slug
string
required
Pattern: ^[a-z0-9][a-z0-9-]*$

Body

application/json

Patch shape — every field is optional. items is a full replace — to add, remove, or reorder items, fetch the current array via GET, mutate, then send the complete new list.

name
string
Maximum string length: 255
items
object[]
Maximum array length: 200

Response

OK

data
object