Storage API
List
get: /v1/environments/{environment_id}/content_types/{content_type}/storage/assets
Retrieves assets associated with content type.
Path Parameters
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer 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
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
file_id | String | The associated file id |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer 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
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
file_id | String | The associated file id |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer token set to access_token or API key. |
x-brightlever-source-id | string | The 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
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
file_id | String | The associated file id |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer token set to access_token or API key. |
x-brightlever-source-id | string | The 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
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
POST Parameters
Parameter | Type | Description |
---|---|---|
file | File | File to upload |
overwrite | String | "true" or "false" |
filename | String | Optional, desired filename |
Headers
Parameter | Type | Description |
---|---|---|
content-type | string | "application/x-www-form-urlencoded" |
authorization | string | Bearer token set to access_token or API key. |
x-brightlever-source-id | string | The sourceId associated with a webhook action. |