Storage Items
Create storage item
Storage Items
Create storage item
Create a new storage item
POST
/
storage-items
curl --request POST \
--url https://cookiechimp.com/api/v1/storage-items \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"company_name": "<string>",
"domain": "<string>",
"duration": "<string>",
"partitioned": true,
"path": "<string>",
"same_site": "<string>",
"category_id": "<string>"
}'
{
"company_name": "Example Company Name",
"description": "Tracks user preferences.",
"domain": "www.example.com",
"duration": "1 year",
"last_seen_at": "2023-03-23T12:34:56Z",
"name": "user-pref-cookie",
"partitioned": false,
"path": "/",
"same_site": "Lax",
"category_id": "cat1",
"status": "finalised",
"approved_by_type": "AI",
"wildcard_cookie_id": null,
"id": "user-pref-cookie",
"is_wildcard_cookie": false
}
Authorizations
Body
application/json
Storage item to create
The body is of type object
.
Response
201
application/json
Created storage item
The response is of type object
.
curl --request POST \
--url https://cookiechimp.com/api/v1/storage-items \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"company_name": "<string>",
"domain": "<string>",
"duration": "<string>",
"partitioned": true,
"path": "<string>",
"same_site": "<string>",
"category_id": "<string>"
}'
{
"company_name": "Example Company Name",
"description": "Tracks user preferences.",
"domain": "www.example.com",
"duration": "1 year",
"last_seen_at": "2023-03-23T12:34:56Z",
"name": "user-pref-cookie",
"partitioned": false,
"path": "/",
"same_site": "Lax",
"category_id": "cat1",
"status": "finalised",
"approved_by_type": "AI",
"wildcard_cookie_id": null,
"id": "user-pref-cookie",
"is_wildcard_cookie": false
}