v1.0.0
OpenAPI 3.1.0
Create a file asset
Client Libraries
US region
Creates a new file asset.
Accepted file types: image/bmp, image/jpeg, image/jpg, image/png, image/gif, application/pdf. Maximum file size: 2 MB. Maximum image dimensions: 4096px.
curl https://api.customer.io/v1/assets/files \
--request POST \
--header 'Content-Type: multipart/form-data' \
--form 'file=@filename' \
--form 'name='
{
"asset": {
"id": 1,
"name": "string",
"parent_folder_id": null,
"path": "string",
"size": 1,
"created": 1773856017,
"updated": 1773856017
}
}The newly created file asset.