Update Account Authentication Settings
PUThttps://useast.api.elasticpath.com/v2/settings/account-authentication
Use this endpoint to update account authentication settings
Request
Responses
- 200
- 400
- default
OK
Bad Request
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/settings/account-authentication");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": {\n \"type\": \"account_authentication_settings\",\n \"enable_self_signup\": true,\n \"auto_create_account_for_account_members\": true,\n \"account_member_self_management\": \"disabled\",\n \"account_management_authentication_token_timeout_secs\": 86400\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear