Viki Platform
These endpoints are currently restricted to official Viki applications

List Roles

Retrieves a list of roles either by user_id or container_id.

GET /v4/roles.json

Expected body parameters:

- `user_id`
- `container_id` or `container_ids` (comma-separated)
- `role`: role name (optional)
- `roles`: role names (optional, comma-separated)

Add a role

POST /v4/roles.json

Expected body parameters:

Remove a role

Removes a role

DELETE /v4/roles/ROLE_ID.json