Create an attachment
How to create an attachment via API
Last updated
How to create an attachment via API
Last updated
To a new attachment, send a POST
request to the /api/attachments
endpoint, passing the resource arguments in the request body.
POST https://yourdomain.commercelayer.io/api/attachments
type
string
Required
attributes.name
string
Required
attributes.description
string
Optional
attributes.url
string
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.attachable
object
Required
The following request creates a new attachment: