Create a new image collection
PUT https://{{host}}/imaging/v2/imagecollections
Create a new image collection.
Body
PARAM
Key | Datatype | Required | Description |
accountSwitchKey
|
string | (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). |
HEADERS
Key | Datatype | Required | Description |
Contract
|
string | Unique identifier for the Akamai Contract containing the policy sets. Required if you have access to more than one contract with Image & Video Manager. | |
Policy-Set
|
string | (Required) Unique identifier for the Image & Video Manager policy set. | |
Content-Type
|
string | ||
Accept
|
string |
RESPONSES
status OK
{
"description": "Image Collection SKU-26684355 was created",
"id": "SKU-26684355",
"o Curl curl -X PUT 'https://host/imaging/v2/imagecollections?accountSwitchKey=' -H 'Contract: ' -H 'Policy-Set: Policy-Set' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"definition":{"items":[{"mime":"image/jpeg","tags":["red"],"type":"image","url":"https://example.com/bikes/sport-bike.jpg"},{"mime":"image/jpeg","tags":["green"],"type":"image","url":"https://example.com/bikes/road-bike.jpg"}]},"description":"A collection for bikes","id":"SKU-26684355"}' ENDPOINTS |