Create one responsibility group.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/responsibility-groups"), Content = new StringContent("{ \"Code\": \"example\", \"Name\": \"example\", \"Type\": 0, \"Description\": \"example\", \"ExtendedData\": { \"additionalProperty\": \"example\" }, \"ResponsibilityGroupId\": \"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';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Code":"example","Name":"example","Type":0,"Description":"example","ExtendedData":{"additionalProperty":"example"},"ResponsibilityGroupId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/admin/responsibility-groups \ --header 'Content-Type: application/json' \ --data '{ "Code": "example", "Name": "example", "Type": 0, "Description": "example", "ExtendedData": { "additionalProperty": "example" }, "ResponsibilityGroupId": "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”Create one responsibility group.
object
Optional code-facing identifier.
Display name.
Optional description.
Optional non-secret integration metadata.
object
Optional caller-supplied stable group identifier.
Create one responsibility group.
object
Optional code-facing identifier.
Display name.
Optional description.
Optional non-secret integration metadata.
object
Optional caller-supplied stable group identifier.
Create one responsibility group.
object
Optional code-facing identifier.
Display name.
Optional description.
Optional non-secret integration metadata.
object
Optional caller-supplied stable group identifier.
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"}Conflict
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 } ]}