Skip to main content

Change settings for own user

PATCH 

https://api.aleph-alpha.com/users/me

This route currently only supports changing the out_of_credits_threshold.

Request

Responses

OK

Authorization: http

name: tokentype: httpscheme: bearerdescription: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://api.aleph-alpha.com/users/me");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"out_of_credits_threshold\": 0\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://api.aleph-alpha.com
Auth
Body required
{
  "out_of_credits_threshold": 0
}
ResponseClear

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