Create an asset type
https://am-api.contentstack.com/api/asset_typesThe Create an asset type request creates a new asset type in your organization. An asset type defines a category of assets, such as their content type, file extension, and associated fields.
For an asset type that is not a system asset type, the request returns 202 with the new asset type and a job_id: a background job then associates existing assets that match its content_type and file_extension.
Headers
authorizationoptionalstringauthtokenoptionalstringx-cs-api-versionrequiredstringorganization_uidoptionalstringBody Parameters
titlerequiredstringdescriptionoptionalstringuidrequiredstringcontent_typerequiredstringfile_extensionrequiredstringcategoryoptionalstringfieldsoptionalstring[]{
"title": "string",
"description": "string",
"uid": "string",
"content_type": "string",
"file_extension": "string",
"category": "string",
"fields": [
"string"
]
}{
"notice": "string",
"asset_type": {
"_id": "string",
"uid": "string",
"title": "string",
"description": "string",
"content_type": "string",
"file_extension": "string",
"category": "string",
"preview_image_id": "string",
"preview_image_url": "string",
"fields": [
{
"_id": "string",
"uid": "string",
"title": "string",
"display_type": "string",
"description": "string",
"field_metadata": {
"default_value": null,
"instruction": "string",
"helper_text": "string",
"placeholder_text": "string",
"max_multiple_count": 1,
"multiple_value": true,
"min": 0,
"max": 0,
"format": "string",
"data_type": "string",
"hide_time": true,
"choices": [
{}
]
},
"is_mandatory": true,
"is_multiple": true,
"is_system": true,
"child": [
{}
],
"path": [
{
"uid": "string",
"title": "string"
}
],
"created_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": "string"
}
],
"created_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"updated_at": "2019-08-24T14:15:22Z",
"updated_by": "string"
},
"job_id": "string"
}Get all asset types
https://am-api.contentstack.com/api/asset_typesUpdate an asset type
https://am-api.contentstack.com/api/asset_types/{asset_type_uid}Get an asset type
https://am-api.contentstack.com/api/asset_types/{asset_type_uid}Delete an asset type
https://am-api.contentstack.com/api/asset_types/{asset_type_uid}Delete an asset type preview image
https://am-api.contentstack.com/api/asset_types/preview_image/{asset_type_uid}