Add an account membership for a user
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
resourceId
The ID of the resource for which the action is posted.
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
Created
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