Skip to main content

Update an Account Membership

PUT 

https://useast.api.elasticpath.com/v2/accounts/:accountID/account-memberships/:membershipID

You can update and extend an account member details using core flows. However, you cannot update the account_member_id of an account member.

Request

Responses

OK

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://useast.api.elasticpath.com/v2/accounts/:accountID/account-memberships/:membershipID");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": {\n \"account_member_id\": \"908f7849-60da-4e4a-a3b1-51d4cbe3b953\",\n \"type\": \"account_membership\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
Parameters
— pathrequired
— pathrequired
Body
{
  "data": {
    "account_member_id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
    "type": "account_membership"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!