Upload an asset
https://am-api.contentstack.com/api/spaces/{space_uid}/assetsThe Upload an asset request adds a new asset to the specified space. Send the request as multipart/form-data with the binary file in the asset[upload] part and any metadata in the accompanying fields. The maximum file size is 5 GB.
URL Parameters
space_uidrequiredstringQuery Parameters
workspaceoptionalstringHeaders
authorizationoptionalstringauthtokenoptionalstringx-cs-api-versionrequiredstringBody Parameters
asset[upload]requiredstring (binary)asset[title]optionalstringasset[description]optionalstringasset[parent_uid]optionalstringasset[tags]optionalstring{
"asset[upload]": "string",
"asset[title]": "string",
"asset[description]": "string",
"asset[parent_uid]": "string",
"asset[tags]": "string"
}{
"notice": "string",
"asset": {
"_id": "string",
"uid": "string",
"object_type": "string",
"title": "string",
"description": "string",
"file_name": "string",
"parent_uid": "string",
"path": [
{
"uid": "string",
"title": "string"
}
],
"owner_uid": "string",
"co_owners": [
{
"uid": "string",
"name": "string"
}
],
"permanent_url": "string",
"permanent_url_slug": "string",
"content_type": "string",
"asset_type_uid": "string",
"file_size": 0,
"tags": [
"string"
],
"is_dir": true,
"asset_id": "string",
"url": "string",
"locale": "string",
"dimensions": {
"height": 0,
"width": 0
},
"status": "IN_PROGRESS",
"version": 0,
"org_uid": "string",
"space_uid": "string",
"user_defined_fields": {},
"visual_markups": [
{
"type": "Hotspot",
"title": "string",
"description": "string",
"url": "http://example.com",
"coordinates": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
}
}
],
"publish_details": [
{
"locale": "string",
"environment": "string",
"time": "2019-08-24T14:15:22Z",
"user": "string",
"version": 0,
"action": "string",
"job_id": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"workspace_uid": "string",
"origin": "string"
}
],
"_version_name": {
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": "string"
},
"created_by": "string",
"updated_by": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"is_deleted": true
}
}Get all assets
https://am-api.contentstack.com/api/spaces/{space_uid}/assetsBulk move assets
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/bulk-moveBulk delete assets
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/bulk/deleteGet trashed assets
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/trashRestore a deleted asset
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}/restoreUpdate an asset
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}Get an asset
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}Delete an asset
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}Get AI suggested metadata
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}/ai-suggestedList duplicate sets
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/duplicatesList assets in a duplicate set
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/duplicates/{uid}Get asset locales
https://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}/locales