- You can add permissions for multiple resources in a single API call.
- The
expiresAt
field is optional. If provided, the permission will expire at the given timestamp.
Access Control
- Set
accessRole
toviewer
(read-only) oreditor
(read/write) on each resource to define the user’s capabilities for that resource. accessRole
can only be set via the v2 Users and Auth Permissions REST APIs. Frontend SDK methods do not accept or changeaccessRole
.- Relevant endpoints:
/v2/users/add
,/v2/users/update
,/v2/auth/permissions/add
,/v2/auth/generate_token
. - See the Access Control overview for concepts and detailed guidance.
Endpoint
POST https://api.velt.dev/v2/auth/permissions/add
Headers
Your API key.
Your Auth Token.