Edits a type's name and prefix, preserving its identity, kind, payer, binding and availability.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/community-memberships/communities/example/membership-types/example"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"OperationId\": \"example\", \"RowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"DisplayName\": \"example\", \"NumberPrefix\": \"example\", \"Kind\": 0, \"CorporatePaymentMode\": 0, \"Binding\": { \"PersonEntityDefinitionId\": \"example\", \"OrganizationEntityDefinitionId\": \"example\", \"RelationshipKind\": 0, \"ReferenceOwnerKind\": 0, \"ReferenceFieldId\": \"example\", \"AssociationEntityDefinitionId\": \"example\", \"PersonEndpointFieldId\": \"example\", \"OrganizationEndpointFieldId\": \"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/example/membership-types/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"OperationId":"example","RowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","DisplayName":"example","NumberPrefix":"example","Kind":0,"CorporatePaymentMode":0,"Binding":{"PersonEntityDefinitionId":"example","OrganizationEntityDefinitionId":"example","RelationshipKind":0,"ReferenceOwnerKind":0,"ReferenceFieldId":"example","AssociationEntityDefinitionId":"example","PersonEndpointFieldId":"example","OrganizationEndpointFieldId":"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/community-memberships/communities/example/membership-types/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "OperationId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "DisplayName": "example", "NumberPrefix": "example", "Kind": 0, "CorporatePaymentMode": 0, "Binding": { "PersonEntityDefinitionId": "example", "OrganizationEntityDefinitionId": "example", "RelationshipKind": 0, "ReferenceOwnerKind": 0, "ReferenceFieldId": "example", "AssociationEntityDefinitionId": "example", "PersonEndpointFieldId": "example", "OrganizationEndpointFieldId": "example" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Owning community; inaccessible communities are concealed with NotFound.
Stable identity of the type within the community.
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”Complete profile, version read and operation identity; no reason is required.
HTTP body for UC-CM-40; the route supplies community/type IDs and access precedes value validation.
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.
Version the client read; missing and stale versions are rejected.
Required display name, at most 256 characters, unique within the community.
Optional future-number prefix, at most 32 characters; blank removes it.
HTTP values identifying the recipients and optional corporate relationship of a membership type.
object
Person Data definition; required for Personal and Corporate.
Organization Data definition; required for Organization and Corporate.
Stored Reference field or its inverse selection.
Governed Association definition; required only for Association.
Governed Association endpoint targeting the person definition.
Distinct governed Association endpoint targeting the organization definition.
HTTP body for UC-CM-40; the route supplies community/type IDs and access precedes value validation.
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.
Version the client read; missing and stale versions are rejected.
Required display name, at most 256 characters, unique within the community.
Optional future-number prefix, at most 32 characters; blank removes it.
HTTP values identifying the recipients and optional corporate relationship of a membership type.
object
Person Data definition; required for Personal and Corporate.
Organization Data definition; required for Organization and Corporate.
Stored Reference field or its inverse selection.
Governed Association definition; required only for Association.
Governed Association endpoint targeting the person definition.
Distinct governed Association endpoint targeting the organization definition.
HTTP body for UC-CM-40; the route supplies community/type IDs and access precedes value validation.
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.
Version the client read; missing and stale versions are rejected.
Required display name, at most 256 characters, unique within the community.
Optional future-number prefix, at most 32 characters; blank removes it.
HTTP values identifying the recipients and optional corporate relationship of a membership type.
object
Person Data definition; required for Personal and Corporate.
Organization Data definition; required for Organization and Corporate.
Stored Reference field or its inverse selection.
Governed Association definition; required only for Association.
Governed Association endpoint targeting the person definition.
Distinct governed Association endpoint targeting the organization definition.
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 } ]}Not Found
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 } ]}