Skip to main content

tenants_domains_update

PUT 

/api/v3//tenants/domains/:id/

Domain ViewSet

Request

Path Parameters

    id integerrequired

    A unique integer value identifying this Domain.

Bodyrequired

    domainstringrequired

    Possible values: non-empty and <= 253 characters

    is_primaryboolean
    tenantuuidrequired

Responses

Schema
    idintegerrequired
    domainstringrequired

    Possible values: <= 253 characters

    is_primaryboolean
    tenantuuidrequired
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "/api/v3/tenants/domains/:id/");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"domain\": \"string\",\n \"is_primary\": true,\n \"tenant\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\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
{
  "domain": "string",
  "is_primary": true,
  "tenant": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}