Change a member's permission or answer your own invite
Changed onChange a member's permission, or let an invitee accept or decline their own invite. The role's own user may set status alone to accepted or declined. Anything else, including permission, needs edit rights on the business. A new permission cannot be more privileged than the caller's own role; an owner may assign any.
Request
- Base URLhttps://api.purplegrain.com/api/v1
- URLhttps://api.purplegrain.com/api/v1/organization-roles/{id}
- AuthHTTP bearer
Path parameters
Id of the record
Query parameters
Comma-separated snake_case relationship paths to embed (JSON:API included array, or inlined for application/json). Never embedded by default; a path outside the allowed list is refused with 400 unknown_include (see the 400 response); max 10 paths. Allowed paths: organization, user.
Request body
Response
Update. When the include query parameter is used, the response may contain an included array (JSON:API) or inlined related resources (application/json).
Example response
{
"data": {
"type": "organization_role"
}
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- warning
removed the optional property
from the response with the status (media type: application/json) - warning
removed the optional property
from the response with the status (media type: application/vnd.api+json) - warning
removed the optional property
//from the response with the status (media type: application/json) - warning
removed the optional property
//from the response with the status (media type: application/vnd.api+json) - warning
removed the optional property
from the response with the status (media type: application/json) - warning
removed the optional property
from the response with the status (media type: application/vnd.api+json) - info
added the optional property
//to the response with the status (media type: application/json) - info
added the optional property
//to the response with the status (media type: application/vnd.api+json) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: application/vnd.api+json) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: application/vnd.api+json)
- warning