Recent searches

in

DAMs

On this page

Get DAM Details

GET/api/v0/dams/{dam_uuid}
Path parameters:
dam_uuidUUIDRequired#
Example request:
Bash
Copied to clipboard
curl https://app.cloudcannon.com/api/v0/dams/{dam_uuid} \
  -H "X-API-KEY: <your-api-key>"
Responses:
200OK
JSON
Copied to clipboard
{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "id": 0,
  "access_key": "string",
  "base_url": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "dam_type": "string",
  "name": "string",
  "updated_at": "2024-01-01T00:00:00Z",
  "max_upload_size": 0,
  "organisation_uuid": "00000000-0000-0000-0000-000000000000",
  "config": {},
  "extra_params": "string"
}
403Forbidden
JSON
Copied to clipboard
{
  "error": "string"
}

Update DAM details

PUT/api/v0/dams/{dam_uuid}
Path parameters:
dam_uuidUUIDRequired#
Request body:
dam_typeenum#

Allowed values: s3 tenovos cloudinary azure google cloudflare digitalocean bynder

namestring#
configstring#
base_urlstring#
access_keystringNullable#
access_secretstringNullable#
max_upload_sizeintegerNullable#
Example request:
Bash
Copied to clipboard
curl https://app.cloudcannon.com/api/v0/dams/{dam_uuid} \
  -X PUT \
  -H "X-API-KEY: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "dam_type": "s3",
    "name": "string",
    "config": "string",
    "base_url": "string",
    "access_key": "string",
    "access_secret": "string",
    "max_upload_size": 0
  }'
Responses:
200OK
JSON
Copied to clipboard
{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "id": 0,
  "access_key": "string",
  "base_url": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "dam_type": "string",
  "name": "string",
  "updated_at": "2024-01-01T00:00:00Z",
  "max_upload_size": 0,
  "organisation_uuid": "00000000-0000-0000-0000-000000000000",
  "config": {},
  "extra_params": "string"
}
401Unauthorized
JSON
Copied to clipboard
{
  "error": "string"
}
403Forbidden
JSON
Copied to clipboard
{
  "error": "string"
}
422Unprocessable
JSON
Copied to clipboard
{
  "errors": {}
}

Delete DAM

DELETE/api/v0/dams/{dam_uuid}
Path parameters:
dam_uuidUUIDRequired#
Example request:
Bash
Copied to clipboard
curl https://app.cloudcannon.com/api/v0/dams/{dam_uuid} \
  -X DELETE \
  -H "X-API-KEY: <your-api-key>"
Responses:
204Deleted
401Unauthorized
JSON
Copied to clipboard
{
  "error": "string"
}
403Forbidden
JSON
Copied to clipboard
{
  "error": "string"
}
Open in a new tab