Skip to main content

tenants_tenants_create_recovery_key_create

POST 

/api/v3//tenants/tenants/:tenant_uuid/create_recovery_key/

Create recovery key for user.

Request

Path Parameters

    tenant_uuid uuidrequired

    A UUID string identifying this Tenant.

Bodyrequired

    userstringrequired

    Possible values: non-empty

    duration_daysintegerrequired

Responses

Schema
    expirydate-timerequired
    urlstringrequired
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/api/v3/tenants/tenants/:tenant_uuid/create_recovery_key/");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"user\": \"string\",\n \"duration_days\": 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
/api/v3
Parameters
— pathrequired
Body required
{
  "user": "string",
  "duration_days": 0
}