Patch an account membership
Requires the USER.MORTAL.UPDATE permission.
Authentication
X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
version
version
membershipResourceId
The ID of the membership to be patched.
resourceId
The ID of the user to be patched.
Headers
x-platform-id
Platform ID.
Request
This endpoint expects an object.
account_id
The id of the account that this membership is for
type
The type of this membership
Allowed values:
role_ids
The roles assigned through this membership
account
The account that this membership is for
account_referenceDeprecated
The reference of the account that this membership is for
environmentDeprecated
The environment that this membership is for
rolesDeprecated
The roles that belong to this membership
Response
OK
account_id
The id of the account that this membership is for
type
The type of this membership
Allowed values:
role_ids
The roles assigned through this membership
object_type
id
The id of this account membership
account
The account that this membership is for
account_referenceDeprecated
The reference of the account that this membership is for
environmentDeprecated
The environment that this membership is for
rolesDeprecated
The roles that belong to this membership
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error