Update an Account Membership
PUThttps://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
- 200
- 404
- 409
- default
OK
Not Found
Conflict
Internal server error.
Authorization: http
name: BearerTokentype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear