v1.0.0
OpenAPI 3.1.0

Create a file asset

US region

Client Libraries

Create a file asset

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.

Body
required
application/json
Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/assets/files
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
  }
}