AssetTypes
Asset types define models for assets in the system. Specifically, asset types define which properties are available on assets as well as how they are presented in the backoffice UI within tabs and sections.
#Available from v.4.0.0
OK
GET /v1/assettypes HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Configuration": {
"Tabs": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"ViewPermission": "123e4567-e89b-12d3-a456-426614174000",
"SavePermission": "123e4567-e89b-12d3-a456-426614174000",
"Type": "text"
}
]
},
"AllowedFileTypes": [
0
],
"SpecifiedExtensions": [
"text"
]
}
]
#Available from v.4.0.0
Represents an asset type in the PIM system
Unique id of asset type
Unique human readable alias for the asset type
Label of asset type displayed in the backoffice
The file extensions that are allowed to be uploaded to the asset type (ex. jpg, png, pdf) Only available when AssetFileType is set to SpecifiedExtensions
OK
No content
Bad Request
POST /v1/assettypes HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 316
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Configuration": {
"Tabs": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"ViewPermission": "123e4567-e89b-12d3-a456-426614174000",
"SavePermission": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"AllowedFileTypes": [
0
],
"SpecifiedExtensions": [
"text"
]
}
No content
#Available from v.4.0.0
Represents an asset type in the PIM system
Unique id of asset type
Unique human readable alias for the asset type
Label of asset type displayed in the backoffice
The file extensions that are allowed to be uploaded to the asset type (ex. jpg, png, pdf) Only available when AssetFileType is set to SpecifiedExtensions
OK
No content
Bad Request
PUT /v1/assettypes HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 316
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Configuration": {
"Tabs": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"ViewPermission": "123e4567-e89b-12d3-a456-426614174000",
"SavePermission": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"AllowedFileTypes": [
0
],
"SpecifiedExtensions": [
"text"
]
}
No content
#Available from v.4.0.0
Unique id of asset type
OK
Not Found
GET /v1/assettypes/{uid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Configuration": {
"Tabs": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"ViewPermission": "123e4567-e89b-12d3-a456-426614174000",
"SavePermission": "123e4567-e89b-12d3-a456-426614174000",
"Type": "text"
}
]
},
"AllowedFileTypes": [
0
],
"SpecifiedExtensions": [
"text"
]
}