Assets

Update a file asset

Changed on

Updates the name and/or parent folder of a file asset. The file itself (path, size) cannot be changed. At least one of name or parent_folder_id must be provided.

put/v1/assets/files/{id}

Request

  • Base URL
    https://api.customer.io
  • URL
    https://api.customer.io/v1/assets/files/{id}
  • Auth
    none declared

Path parameters

idinteger required

The unique identifier of the resource.

Request body

namestring

New display name for the asset. Cannot be blank after trimming.

parent_folder_idinteger nullable

The ID of the new parent folder. Set to null to move the asset to the root level.

Response

File asset updated successfully.

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the // response's property type changed from integer to string for status

    • breaking

      the // response's property type changed from integer to string for status

    • breaking

      the // response's property type changed from integer to string for status

    • breaking

      the // response's property type changed from integer to string for status