Skip to main content
PATCH
Update an item

Authorizations

Authorization
string
header
required

Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.

Path Parameters

itemId
string
required
Minimum string length: 1

Body

application/json
slug
string

New slug for the item — a rename. Omit to keep the current slug. Must be unique among the collection’s active items.

Pattern: ^[a-z0-9][a-z0-9-]{0,255}$
data
object
references
object
images
object
files
object
position
enum<string>

Moves the item within the collection’s manual order — the default sort for item lists. Omit to leave the order unchanged. "before" / "after" require anchorItemId.

Available options:
before,
after,
first,
last
anchorItemId
string

Sibling item to move against when position is "before" or "after".

Minimum string length: 1

Response

Identity and ordering key of the updated item. Read the full item back with the get-item endpoint.

id
string
required

Id of the updated item.

slug
string
required

Slug of the item after the update.

position
string
required

The item’s fractional ordering key after the update; changes when position is used. The default list order sorts by this value.