Reads one community (UC-CM-38); works while the module is disabled.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/community-memberships/communities/example"), Headers = { { "Authorization", "Bearer <token>" }, },};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/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/community-memberships/communities/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Community identifier.
Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
object
HTTP view of one community (UC-CM-38).
object
Community identifier.
Display name, unique in the workspace.
Description, or null when there is none.
Canonical IANA timezone of the community’s periods, for example Europe/Warsaw.
Whether the community accepts new memberships and renewals.
Version of the stored community; a change sends it back (UC-CM-36).
Community Memberships permissions the caller holds in the scope of a response: the Workspace for a list, one community for that community. The client offers an action only when its permission is granted; the server still checks every command.
object
Granted manifest permission keys, for example community.create, in manifest order.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Not Found
object
object
HTTP view of one community (UC-CM-38).
object
Community identifier.
Display name, unique in the workspace.
Description, or null when there is none.
Canonical IANA timezone of the community’s periods, for example Europe/Warsaw.
Whether the community accepts new memberships and renewals.
Version of the stored community; a change sends it back (UC-CM-36).
Community Memberships permissions the caller holds in the scope of a response: the Workspace for a list, one community for that community. The client offers an action only when its permission is granted; the server still checks every command.
object
Granted manifest permission keys, for example community.create, in manifest order.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}