Authorization
Update Organization Role
Update Organization Role — Nirmos Control Plane REST API.
better-auth.session_token<token>
Production cookie uses __Secure- prefix.
In: cookie
Path Parameters
id*string
Length
1 <= length <= 128roleId*string
Length
1 <= length <= 128Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/organizations/string/roles/string" \ -H "Content-Type: application/json" \ -d '{ "permission": { "property1": [ "string" ], "property2": [ "string" ] } }'{ "data": { "id": "string", "organizationId": "string", "role": "string", "permission": { "property1": [ null ], "property2": [ null ] }, "isSystem": true }, "requestId": "string"}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}{ "error": { "code": "string", "message": "string", "details": null, "requestId": "string" }}