Bulk create grants for a user
Changed onCreate multiple grants for a user in a single request. This operation is additive: it adds new grants without affecting existing ones.
The operation is transactional: if any grant fails validation, no grants are created.
You can use either role_id or role_slug for each grant in the request.
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/user/{id}/grant
- AuthHTTP bearer
Path parameters
The unique identifier for the user receiving the grants.
Request body
Example request
[
{
"nrn": "organization=1:account=2",
"role_slug": "developer"
}
]Response
All grants were created successfully.
Example response
[
{
"id": 12345,
"nrn": "organization=1:account=2",
"user_id": 789,
"role_id": 700317756,
"role_slug": "developer",
"status": "active"
}
]Changes
- breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
response property
messagedeprecated - info
response property
messagedeprecated - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info