Assets: List
List assets in an account.
path Parameters
| accountId required | string |
query Parameters
| v required | string A date in |
| offset | integer Default: 0 Number of results to skip. Used to page through results.
Cannot be used together with |
| limit | integer <= 1000 Default: 100 Number of results to return. |
| pageToken | string If a response to a previous request contained the |
| format required | string >= 0 characters Default: "markdown" Present if and only if type of subfield is "Rich Text." Valid values:
|
Responses
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0"
}, - "response": {
- "count": 0,
- "assets": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "type": "string",
- "forEntities": {
- "mappingType": "string",
- "folderId": "string",
- "entityIds": [
- "string"
], - "labelIds": [
- "string"
], - "labelOperator": "AND"
}, - "usage": [
- {
- "type": "string",
- "fieldNames": [
- "string"
]
}
], - "locale": "string",
- "labels": [
- "string"
], - "owner": "string"
}
], - "pageToken": "string"
}
}Assets: Create
Creates a new asset in an account.
NOTE:
- If the
vparameter is on or before20190624: only the first folder the Asset is available for will be returned in the legacyfolderIdfield. - If the
vparameter is after20190624: the complete list of folders the Asset is available to will be returned in the newfolderIdsfield.folderIdwill not be returned.
path Parameters
| accountId required | string |
query Parameters
| v required | string A date in |
| format required | string >= 0 characters Default: "markdown" The formatting langauge used to parse rich text field values. Present if and only if type of field is "Rich Text." Valid values:
|
Request Body schema: application/json
| name required | string <= 100 characters Asset name. |
| description | string <= 255 characters Asset description. |
| type required | string Asset Type. In addition to the choices below, names of custom field types may also be used. One of: |
required | object |
required | Array of objects |
| locale | string Language of the asset. |
| labels | Array of strings[ items <= 30 characters ] List of text labels for this asset. |
| owner | string ID of the user who owns the asset. |
required | object The content of the asset. |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "type": "complexImage",
- "forEntities": {
- "mappingType": "string",
- "folderId": "string",
- "entityIds": [
- "string"
], - "labelIds": [
- "string"
], - "labelOperator": "AND"
}, - "usage": [
- {
- "type": "string",
- "fieldNames": [
- "string"
]
}
], - "locale": "string",
- "labels": [
- "string"
], - "owner": "string",
- "value": {
- "description": "string",
}
}Response samples
- 201
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0"
}, - "response": {
- "id": "string"
}
}Assets: Get
Get a specific asset.
path Parameters
| accountId required | string |
| assetId required | string |
query Parameters
| v required | string A date in |
| format required | string >= 0 characters Default: "markdown" Present if and only if type of subfield is "Rich Text." Valid values:
|
Responses
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0"
}, - "response": {
- "id": "string",
- "name": "string",
- "description": "string",
- "type": "string",
- "forEntities": {
- "mappingType": "string",
- "folderId": "string",
- "entityIds": [
- "string"
], - "labelIds": [
- "string"
], - "labelOperator": "AND"
}, - "usage": [
- {
- "type": "string",
- "fieldNames": [
- "string"
]
}
], - "locale": "string",
- "labels": [
- "string"
], - "owner": "string"
}
}Assets: Update
Update a specific asset.
NOTE: This endpoint is a true PUT. Fields that are not provided in an update will be cleared. The entire Asset object must be provided in the request, except for its id, which is given in the path.
NOTE:
- If the
vparameter is on or before20190624: only the first folder the Asset is available for will be returned in the legacyfolderIdfield. - If the
vparameter is after20190624: the complete list of folders the Asset is available to will be returned in the newfolderIdsfield.folderIdwill not be returned.
path Parameters
| accountId required | string |
| assetId required | string |
query Parameters
| v required | string A date in |
| format required | string >= 0 characters Default: "markdown" The formatting langauge used to parse rich text field values. Present if and only if type of field is "Rich Text." Valid values:
|
Request Body schema: application/json
| name required | string <= 100 characters Asset name. |
| description | string <= 255 characters Asset description. |
| type required | string Asset Type. In addition to the choices below, names of custom field types may also be used. One of: |
required | object |
required | Array of objects |
| locale | string Language of the asset. |
| labels | Array of strings[ items <= 30 characters ] List of text labels for this asset. |
| owner | string ID of the user who owns the asset. |
required | object The content of the asset. |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "type": "complexImage",
- "forEntities": {
- "mappingType": "string",
- "folderId": "string",
- "entityIds": [
- "string"
], - "labelIds": [
- "string"
], - "labelOperator": "AND"
}, - "usage": [
- {
- "type": "string",
- "fieldNames": [
- "string"
]
}
], - "locale": "string",
- "labels": [
- "string"
], - "owner": "string",
- "value": {
- "description": "string",
}
}Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0"
}, - "response": {
- "id": "string"
}
}