younifyd
Menu

Post V2 Accounts Account ID Account Memberships

Create an Account Membership

POST/v2/accounts/{accountID}/account-memberships

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Post V2 Accounts Account ID Account Memberships action (under Accounts).
  3. Fill in the fields below, then reference the result from later steps as {{postV2AccountsAccountIdAccountMemberships.response.data}}.

Request

Path parameters

accountIDstring (uuid)required

The unique identifier of the account that the account is associated with.

Request body

Enter the body as JSON in the step's Body field.

dataobject
account_member_idstring (uuid)

Specifies the unique identifier of the account member that the membership is associated with.

typestring

Specifies the type of the object. Set this value to `account_membership`.

json
{
  "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>}}.

dataobject
idstring (uuid)

Represents the unique identifier for the account membership.

typestring

Represents the type of the object returned.

metaobject1 fields
relationshipsobject1 fields
linksobject1 fields
linksobject
selfstring

A URL to the specific resource.

json
{
  "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.