Menu
Post V2 Accounts Account ID Account Memberships
Create an Account Membership
POST
/v2/accounts/{accountID}/account-membershipsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Post V2 Accounts Account ID Account Memberships action (under Accounts).
- Fill in the fields below, then reference the result from later steps as
{{postV2AccountsAccountIdAccountMemberships.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"account_member_id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
"type": "string"
}
}
Response
Returns 201 with an object. Read it in later steps with {{postV2AccountsAccountIdAccountMemberships.response.data.<field>}}.
{
"data": {
"id": "24e939f6-178f-497b-9d64-5bf2b5a70a2e",
"type": "string",
"meta": {
"timestamps": {
"created_at": "2021-02-23T09:40:33.882Z",
"updated_at": "2021-02-23T09:40:33.882Z"
}
},
"relationships": {
"account_member": {
"data": {
"id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
"type": "string"
}
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/accounts/5b495058-9ffc-4b9b-810a-c9d43ffc6500/account-memberships/24e939f6-178f-497b-9d64-5bf2b5a70a2e"
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/accounts/deb6b25f-8451-4211-9a22-95610333df23/account-memberships/5ac48b3b-825d-43a3-9fcd-962230629d5e"
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?