POST
/
storage-items
Create storage item
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

Authorization
string
header
required

Body

application/json

Storage item to create

name
string
required

Name of the storage item

description
string

Description of the storage item that is displayed to users

company_name
string

Name of the company that owns the storage item

domain
string

Domain of the storage item

duration
string

Duration of the storage item

partitioned
boolean

Whether the storage item is partitioned

path
string

Path of the storage item

same_site
string

SameSite attribute of the storage item

category_id
string

ID of the storage item category

Response

Created storage item

name
string
required

Name of the storage item

id
string

Unique identifier for the storage item

last_seen_at
string<date-time>
status
enum<string>
default:draft
Available options:
draft,
processing,
in_review,
finalised
approved_by_type
string | null
approved_by_id
string | null
description
string

Description of the storage item that is displayed to users

company_name
string

Name of the company that owns the storage item

domain
string

Domain of the storage item

duration
string

Duration of the storage item

partitioned
boolean

Whether the storage item is partitioned

path
string

Path of the storage item

same_site
string

SameSite attribute of the storage item

category_id
string

ID of the storage item category