tenants_domains_partial_update
PATCH/api/v3//tenants/domains/:id/
Domain ViewSet
Request
Path Parameters
id integerrequired
A unique integer value identifying this Domain.
- application/json
Body
domain string
Possible values: non-empty
and <= 253 characters
is_primary boolean
tenant uuid
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
domain stringrequired
Possible values: <= 253 characters
is_primary boolean
tenant uuidrequired
{
"id": 0,
"domain": "string",
"is_primary": true,
"tenant": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PATCH '/api/v3/tenants/domains/:id/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"domain": "string",
"is_primary": true,
"tenant": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'