Storage API

List

get: /v1/environments/{environment_id}/content_types/{content_type}/storage/assets

Retrieves assets associated with content type.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.

Metadata

get: /v1/environments/{environment_id}/content_types/{content_type}/storage/assets/{file_id}

Reads a file metadata.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type
file_idStringThe associated file id

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.

Duplicate

post: /v1/environments/{environment_id}/content_types/{content_type}/storage/duplicate/{file_id}

Duplicates associated file id and returns metadata.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type
file_idStringThe associated file id

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.
x-brightlever-source-idstringThe sourceId associated with a webhook action.

Delete

delete: /v1/environments/{environment_id}/content_types/{content_type}/storage/assets/{file_id}

delete associated file id.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type
file_idStringThe associated file id

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.
x-brightlever-source-idstringThe sourceId associated with a webhook action.

Upload

post: /v1/environments/{environment_id}/content_types/{content_type}/storage/assets/{file_id}

Uploads new file to content types assets.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type

POST Parameters

ParameterTypeDescription
fileFileFile to upload
overwriteString"true" or "false"
filenameStringOptional, desired filename

Headers

ParameterTypeDescription
content-typestring"application/x-www-form-urlencoded"
authorizationstringBearer token set to access_token or API key.
x-brightlever-source-idstringThe sourceId associated with a webhook action.