Full update
Path parameters
ObjectId string of the domain. Returns
400 if not a valid ObjectId format.Request body
Display name of the domain.
CSS color for the domain (e.g.,
"#3B82F6" or "blue").URL to a banner or representative image for the domain.
URL to an icon image for the domain.
Complete list of subdomain names. This replaces the existing list.
Response
Returns the updatedDomain object.
ObjectId string of the domain.
Updated display name.
Updated CSS color.
Updated image URL.
Updated icon URL.
Updated list of subdomain names.
Errors
| Status | Condition |
|---|---|
400 | domain_id is not a valid ObjectId format |
404 | No domain with the given ID exists |
Examples
Sample response
200
Partial update
Path parameters
ObjectId string of the domain. Returns
400 if not a valid ObjectId format.Request body
All fields are optional. Only include fields you want to change.New display name for the domain.
New CSS color for the domain.
New image URL for the domain.
New icon URL for the domain.
New complete list of subdomain names. When provided, this replaces the existing list — the same subdomain removal caveats apply as with
PUT.Response
Returns the updatedDomain object with the same fields as the full update response.
Errors
| Status | Condition |
|---|---|
400 | domain_id is not a valid ObjectId format |
404 | No domain with the given ID exists |
Examples
Sample response
200