Skip to navigation

Update file

Update a file in the File Manager.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

file_idstringRequired
The unique id for the File Manager file.

Request

An individual file listed in the File Manager.
folder_idintegerOptional

The id of the folder. Setting folder_id to 0 will remove a file from its current folder.

namestringOptional
The name of the file.

Response

This endpoint returns an object.
created_atdatetimeOptionalRead-only
The date and time a file was added to the File Manager in ISO 8601 format.
created_bystringOptionalRead-only
The username of the profile that uploaded the file.
folder_idintegerOptional
The id of the folder.
full_size_urlstringOptionalRead-onlyformat: "uri"

The url of the full-size file.

heightintegerOptionalRead-only
The height of an image.
idintegerOptionalRead-only
The unique id of the file.
namestringOptional
The name of the file.
sizeintegerOptionalRead-only
The size of the file in bytes.
thumbnail_urlstringOptionalRead-onlyformat: "uri"
The url of the thumbnail preview.
typeenumOptionalRead-only
The type of file in the File Manager.
Allowed values:
widthintegerOptionalRead-only
The width of the image.