Skip to main content

Update Account Membership Settings

PUT 

https://useast.api.elasticpath.com/v2/settings/account-membership

Use this endpoint to update account membership settings.

Request

Body

    data object
    typestring

    Specifies the type of object. Set this value to account_membership_setting.

    Possible values: [account_membership_setting]

    Example: account_membership_setting
    membership_limitinteger

    The number of accounts an account member can be associated with. You can set this value to any number up to 10,000.

    Example: 100

Responses

OK

Schema
    data object
    typestring

    Specifies the type of object. Set this value to account_membership_setting.

    Possible values: [account_membership_setting]

    Example: account_membership_setting
    membership_limitinteger

    The number of accounts an account member can be associated with. You can set this value to any number up to 10,000.

    Example: 100

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://useast.api.elasticpath.com/v2/settings/account-membership");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": {\n \"type\": \"account_membership_setting\",\n \"membership_limit\": 100\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
Body
{
  "data": {
    "type": "account_membership_setting",
    "membership_limit": 100
  }
}
ResponseClear

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