Replace role assignments for Entitlement Operations global module permissions.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/admin/entitlement-operations/permissions"), Content = new StringContent("{ \"Assignments\": [ { \"RoleId\": \"example\", \"PermissionKeys\": [ \"example\" ] } ] }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/entitlement-operations/permissions';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"Assignments":[{"RoleId":"example","PermissionKeys":["example"]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/workspace/admin/entitlement-operations/permissions \ --header 'Content-Type: application/json' \ --data '{ "Assignments": [ { "RoleId": "example", "PermissionKeys": [ "example" ] } ] }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request to replace role assignments inside a bounded permission scope.
object
Role assignments to apply inside the scope.
Replacement role assignment for a bounded permission scope.
object
Workspace role identifier.
Normalized permission keys assigned to the role inside this scope.
Examplegenerated
{ "Assignments": [ { "RoleId": "example", "PermissionKeys": [ "example" ] } ]}Request to replace role assignments inside a bounded permission scope.
object
Role assignments to apply inside the scope.
Replacement role assignment for a bounded permission scope.
object
Workspace role identifier.
Normalized permission keys assigned to the role inside this scope.
Examplegenerated
{ "Assignments": [ { "RoleId": "example", "PermissionKeys": [ "example" ] } ]}Request to replace role assignments inside a bounded permission scope.
object
Role assignments to apply inside the scope.
Replacement role assignment for a bounded permission scope.
object
Workspace role identifier.
Normalized permission keys assigned to the role inside this scope.
Examplegenerated
{ "Assignments": [ { "RoleId": "example", "PermissionKeys": [ "example" ] } ]}Responses
Section titled “Responses”OK
object
Bounded permission scope with role assignments.
object
Permissions that can be managed in this scope.
Defines a permission that can be assigned to roles.
object
Group identifier used to categorize permissions.
Permission code within the group.
Optional display name or localization key.
Optional description or localization key.
Defines how a permission is presented when roles are configured.
Role assignments inside this scope.
Role assignment for a bounded permission scope.
object
Workspace role identifier.
Workspace role display name.
Whether the role assignment is system-managed and cannot be edited here.
Normalized permission keys assigned or inherited inside this scope.
object
object
object
object
Example
{ "Data": { "Permissions": [ { "PresentationKind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Bounded permission scope with role assignments.
object
Permissions that can be managed in this scope.
Defines a permission that can be assigned to roles.
object
Group identifier used to categorize permissions.
Permission code within the group.
Optional display name or localization key.
Optional description or localization key.
Defines how a permission is presented when roles are configured.
Role assignments inside this scope.
Role assignment for a bounded permission scope.
object
Workspace role identifier.
Workspace role display name.
Whether the role assignment is system-managed and cannot be edited here.
Normalized permission keys assigned or inherited inside this scope.
object
object
object
object
Example
{ "Data": { "Permissions": [ { "PresentationKind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}