Creates an enabled community (UC-CM-35).
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/community-memberships/communities"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"OperationId\": \"example\", \"DisplayName\": \"example\", \"Description\": \"example\", \"TimeZoneId\": \"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/community-memberships/communities';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"OperationId":"example","DisplayName":"example","Description":"example","TimeZoneId":"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/community-memberships/communities \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "OperationId": "example", "DisplayName": "example", "Description": "example", "TimeZoneId": "example" }'Authorizations
Section titled “Authorizations”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”Display name, optional description and timezone, and the operation identity.
HTTP body that creates a community (UC-CM-35); the module validates and normalizes every value.
object
Client-chosen identity of this submission. A retry with the same identity and the same values returns the first result; the same identity with other values is rejected.
Display name, unique in the workspace.
Optional description.
Optional IANA timezone, for example Europe/Warsaw; without one the workspace timezone is stored.
Examplegenerated
{ "OperationId": "example", "DisplayName": "example", "Description": "example", "TimeZoneId": "example"}HTTP body that creates a community (UC-CM-35); the module validates and normalizes every value.
object
Client-chosen identity of this submission. A retry with the same identity and the same values returns the first result; the same identity with other values is rejected.
Display name, unique in the workspace.
Optional description.
Optional IANA timezone, for example Europe/Warsaw; without one the workspace timezone is stored.
Examplegenerated
{ "OperationId": "example", "DisplayName": "example", "Description": "example", "TimeZoneId": "example"}HTTP body that creates a community (UC-CM-35); the module validates and normalizes every value.
object
Client-chosen identity of this submission. A retry with the same identity and the same values returns the first result; the same identity with other values is rejected.
Display name, unique in the workspace.
Optional description.
Optional IANA timezone, for example Europe/Warsaw; without one the workspace timezone is stored.
Examplegenerated
{ "OperationId": "example", "DisplayName": "example", "Description": "example", "TimeZoneId": "example"}Responses
Section titled “Responses”OK
object
HTTP result of a Community Memberships command that creates, changes or deletes one record.
object
Identifier of the created, changed or deleted record.
Version after the command, which a later change sends back to detect concurrent changes; after a deletion, the version the record had when it was deleted.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
HTTP result of a Community Memberships command that creates, changes or deletes one record.
object
Identifier of the created, changed or deleted record.
Version after the command, which a later change sends back to detect concurrent changes; after a deletion, the version the record had when it was deleted.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
HTTP result of a Community Memberships command that creates, changes or deletes one record.
object
Identifier of the created, changed or deleted record.
Version after the command, which a later change sends back to detect concurrent changes; after a deletion, the version the record had when it was deleted.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
HTTP result of a Community Memberships command that creates, changes or deletes one record.
object
Identifier of the created, changed or deleted record.
Version after the command, which a later change sends back to detect concurrent changes; after a deletion, the version the record had when it was deleted.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}