Manage permissions
Assign multiple permissions at once
- Can put both regular and partial permission in the payload
post/api/v2/assets/{uid_asset}/permission-assignments/bulk/
Request
- The document declares no server URL.
- Auth: one of:
- HTTP basic
- API key in header Authorization
Path parameters
uid_assetstring required
UID of the parent asset
Request body
Example request
[
{
"user": "https://kf.kobotoolbox.org/api/v2/users/bob/",
"permission": "https://kf.kobotoolbox.org/api/v2/assets/a3C9wWefqZVkChNLKqqXVZ/permission-assignments/pGaXCTDAbdZKLXoXAXd3M4/"
}
]Response
Example response
[
{
"url": "https://kf.kobotoolbox.org/api/v2/assets/a3C9wWefqZVkChNLKqqXVZ/permission-assignments/pGaXCTDAbdZKLXoXAXd3M4/",
"user": "https://kf.kobotoolbox.org/api/v2/users/bob/",
"permission": "https://kf.kobotoolbox.org/api/v2/permissions/change_asset/"
}
]Changes
- breaking
removed the required property
from the response with the status
- breaking
- info
added the required property
to the response with the status
- info