Adds a user to a platform role in the authenticated org.
Required permission
Os > Admin > Roles > Manage
Path parameters
roleId
string requiredID of the org role
Request body
- {object}
userId
string requiredID of the user to add to this role.
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
POST /v1/org-roles/{roleId}/members
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"userId":"5e6ea4090a1a280001b2d4e3"}' \
https://api.northflank.com/v1/org-roles/{roleId}/membersExample response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}