tenants_tenants_create
POST/api/v3//tenants/tenants/
Tenant Viewset
Request
- application/json
Bodyrequired
schema_namestringrequired
Possible values: non-empty
and <= 63 characters
namestringrequired
Possible values: non-empty
readyboolean
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
tenant_uuiduuidrequired
schema_namestringrequired
Possible values: <= 63 characters
namestringrequired
readyboolean
{
"tenant_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"schema_name": "string",
"name": "string",
"ready": true
}
- 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.Post, "/api/v3/tenants/tenants/");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"schema_name\": \"string\",\n \"name\": \"string\",\n \"ready\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());