Replace users assigned to one responsibility group.
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/responsibility-groups/example/users"), Content = new StringContent("{ \"UserIds\": [ \"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/responsibility-groups/example/users';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"UserIds":["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/responsibility-groups/example/users \ --header 'Content-Type: application/json' \ --data '{ "UserIds": [ "example" ] }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path 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”Replace users assigned to a responsibility group.
object
User identifiers to assign.
Examplegenerated
{ "UserIds": [ "example" ]}Replace users assigned to a responsibility group.
object
User identifiers to assign.
Examplegenerated
{ "UserIds": [ "example" ]}Replace users assigned to a responsibility group.
object
User identifiers to assign.
Examplegenerated
{ "UserIds": [ "example" ]}Responses
Section titled “Responses”OK
object
Full responsibility-group detail.
object
Group identifier.
Optional code-facing identifier.
Display name.
Optional description.
Assigned users.
Member assigned to a responsibility group.
object
User identifier.
Login user name.
Optional email address.
First name.
Optional last name.
Canonical effective display name.
Whether the user is blocked.
Avatar presentation for a responsibility-group member.
object
Avatar initials.
Avatar background color.
Avatar text color.
Concurrency token.
Non-secret integration metadata.
object
object
object
object
object
Example
{ "Data": { "Type": 0, "Users": [ { "UserType": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Full responsibility-group detail.
object
Group identifier.
Optional code-facing identifier.
Display name.
Optional description.
Assigned users.
Member assigned to a responsibility group.
object
User identifier.
Login user name.
Optional email address.
First name.
Optional last name.
Canonical effective display name.
Whether the user is blocked.
Avatar presentation for a responsibility-group member.
object
Avatar initials.
Avatar background color.
Avatar text color.
Concurrency token.
Non-secret integration metadata.
object
object
object
object
object
Example
{ "Data": { "Type": 0, "Users": [ { "UserType": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Full responsibility-group detail.
object
Group identifier.
Optional code-facing identifier.
Display name.
Optional description.
Assigned users.
Member assigned to a responsibility group.
object
User identifier.
Login user name.
Optional email address.
First name.
Optional last name.
Canonical effective display name.
Whether the user is blocked.
Avatar presentation for a responsibility-group member.
object
Avatar initials.
Avatar background color.
Avatar text color.
Concurrency token.
Non-secret integration metadata.
object
object
object
object
object
Example
{ "Data": { "Type": 0, "Users": [ { "UserType": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}