For the complete documentation index, see llms.txt. This page is also available as Markdown.

Permissions

Cached consent preferences for communication channels

Update cached user permission flags

post

Stores communication permission flags for a basket/user pair.

Throttling scope: user-permissions.

Header parameters
CookiestringRequired

Session cookie header (e.g. sessionid=abc123)

X-CSRFTokenstringRequired

CSRF token header for unsafe methods (POST/PUT/PATCH/DELETE)

Body
uidstringRequired

User identifier used by permission cache

basketintegerRequired

Active basket identifier

sms_allowedbooleanOptional

SMS communication consent

call_allowedbooleanOptional

Call communication consent

email_allowedbooleanOptional

Email communication consent

whatsapp_allowedbooleanOptional

WhatsApp communication consent

Responses
200

Permissions updated

No content

post/users/permissions/
POST /users/permissions/ HTTP/1.1
Host: sandbox.akinon.com
Cookie: text
X-CSRFToken: text
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "uid": "text",
  "basket": 1,
  "sms_allowed": true,
  "call_allowed": true,
  "email_allowed": true,
  "whatsapp_allowed": true
}

No content

Last updated

Was this helpful?