PATCH
/
attachments
/
{id}
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
}

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 length: 1
name
string

Attachment has Name

Response

200
application/json
Attachment Updated
data
object
success
boolean