POST
/
attachments
curl --request POST \
  --url https://commerce.driv.ly/api/attachments \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "data": {},
  "type": "<string>",
  "name": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "data": {},
    "type": "<string>",
    "name": "<string>"
  },
  "success": true
}

Query Parameters

depth
integer

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

Body

application/json
data
object
required

Attachment has Data

type
string
required

Attachment has Attachment Type

Minimum length: 1
name
string
required

Attachment has Name

id
string

Attachment is uniquely identified by id

Response

200
application/json
Attachment Created
data
object
success
boolean