Skip to main content
PATCH
/
attachments
/
{id}
Update an existing Attachment
curl --request PATCH \
  --url https://commerce.driv.ly/api/attachments/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "data": {},
  "type": "<string>",
  "name": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "data": {},
    "type": "<string>",
    "name": "<string>"
  },
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.driv.ly/llms.txt

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

Path Parameters

id
string
required

Attachment is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Attachment is uniquely identified by id

data
object

Attachment has Data

type
string

Attachment has Attachment Type

Minimum string length: 1
name
string

Attachment has Name

Response

Attachment Updated

data
Attachment · object
success
boolean