Auth
Add Permissions
Use this API to add permissions to a user for various resources like organizations, folders, documents, etc.
- Can add permissions for multiple resources in a single API call
- The expiresAt field is optional
Access Control: Set accessRole to viewer (read-only) or editor (read/write) for each resource.
post/auth/permissions/add
Request
- Base URLhttps://api.velt.dev/v2
- AuthAPI key in header x-velt-api-key and API key in header x-velt-auth-token
Request body
Example request
{
"data": {
"permissions": {
"resources": [
{
"type": "organization",
"id": "org_123",
"organizationId": "org_123",
"accessRole": "editor",
"expiresAt": 1640995200
}
]
}
}
}Response
Permissions added successfully
Example response
{
"result": {
"status": "success",
"message": "Operation completed successfully"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.