younifyd
Menu

Put V2 Accounts Account ID Account Memberships Membership ID

Update an Account Membership

PUT/v2/accounts/{accountID}/account-memberships/{membershipID}

Use it in a workflow

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

Request

Path parameters

accountIDstring (uuid)required

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

membershipIDstring (uuid)required

The unique identifier of the account membership to update the details of the account member.

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 200 with an object. Read it in later steps with {{putV2AccountsAccountIdAccountMembershipsMembershipId.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.