Assets: List

List assets in an account.

path Parameters
accountId
required
string
query Parameters
v
required
string

A date in YYYYMMDD format.

offset
integer
Default: 0

Number of results to skip. Used to page through results. Cannot be used together with pageToken.

limit
integer <= 1000
Default: 100

Number of results to return.

pageToken
string

If a response to a previous request contained the pageToken field, pass that field's value as the pageToken parameter to retrieve the next page of data.

format
required
string >= 0 characters
Default: "markdown"

Present if and only if type of subfield is "Rich Text."

Valid values:

  • markdown
  • html
  • none

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": {
    }
}

Assets: Create

Creates a new asset in an account.

NOTE:

  • If the v parameter is on or before 20190624: only the first folder the Asset is available for will be returned in the legacy folderId field.
  • If the v parameter is after 20190624: the complete list of folders the Asset is available to will be returned in the new folderIds field. folderId will not be returned.
path Parameters
accountId
required
string
query Parameters
v
required
string

A date in YYYYMMDD format.

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:

  • markdown
  • html
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

Content type
application/json
Example
{
  • "name": "string",
  • "description": "string",
  • "type": "complexImage",
  • "forEntities": {
    },
  • "usage": [
    ],
  • "locale": "string",
  • "labels": [
    ],
  • "owner": "string",
  • "value": {}
}

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": {
    }
}

Assets: Get

Get a specific asset.

path Parameters
accountId
required
string
assetId
required
string
query Parameters
v
required
string

A date in YYYYMMDD format.

format
required
string >= 0 characters
Default: "markdown"

Present if and only if type of subfield is "Rich Text."

Valid values:

  • markdown
  • html
  • none

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": {
    }
}

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 v parameter is on or before 20190624: only the first folder the Asset is available for will be returned in the legacy folderId field.
  • If the v parameter is after 20190624: the complete list of folders the Asset is available to will be returned in the new folderIds field. folderId will not be returned.
path Parameters
accountId
required
string
assetId
required
string
query Parameters
v
required
string

A date in YYYYMMDD format.

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:

  • markdown
  • html
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

Content type
application/json
Example
{
  • "name": "string",
  • "description": "string",
  • "type": "complexImage",
  • "forEntities": {
    },
  • "usage": [
    ],
  • "locale": "string",
  • "labels": [
    ],
  • "owner": "string",
  • "value": {}
}

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": {
    }
}

Assets: Delete

Delete a specific asset.

path Parameters
accountId
required
string
assetId
required
string
query Parameters
v
required
string

A date in YYYYMMDD format.

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": { }
}
Feedback