Cookies
Add Cookies
Use this API to add cookies.
post/api/cmp/v1/webscans/cookies
Request body
Example request
[
{
"cookieName": "cookieName123",
"lifespan": "SESSION",
"host": "amazon.com",
"description": "This cookie is used for advertising purposes.",
"thirdPartyDescription": "This cookie is used for advertising purposes.",
"length": 5,
"cookieId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"customCategoryName": "C0001",
"domainCookieCategoryList": [
{
"domainId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"customCategoryName": "C0000",
"thirdParty": true,
"description": "this cookies is used for targeting purposes only"
}
]
}
]Response
Created
Example response
[
{
"entityId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"entityType": "SCAN",
"action": "ARCHIVE",
"message": "Scan queued for archival",
"content": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "CookieName123__",
"description": "This cookie is used for advertising purposes.",
"thirdPartyDescription": "This cookie is used for advertising purposes.",
"host": "amazon.com",
"path": "/",
"source": "MANUAL/SCAN",
"cookieLifeSpan": "SESSION",
"httpOnly": true,
"secure": true,
"length": 5,
"durationType": 7
}
}
]