tenants_domains_update
PUT/api/v3//tenants/domains/:id/
Domain ViewSet
Request
Path Parameters
id integerrequired
A unique integer value identifying this Domain.
- application/json
Bodyrequired
domainstringrequired
Possible values: non-empty
and <= 253 characters
is_primaryboolean
tenantuuidrequired
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
idintegerrequired
domainstringrequired
Possible values: <= 253 characters
is_primaryboolean
tenantuuidrequired
{
"id": 0,
"domain": "string",
"is_primary": true,
"tenant": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
- 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, "/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());