Appearance
site-settings
3 endpoints.
GET /api/v1/settings/site
Get Site Settings
200 — Successful Response
json
{}PUT /api/v1/settings/site
Update Site Settings
Request body
json
{
"properties": {
"customer_facing": {
"type": "boolean",
"title": "Customer Facing"
},
"customer_scoping": {
"type": "boolean",
"title": "Customer Scoping"
},
"is_customer_portal_site": {
"type": "boolean",
"title": "Is Customer Portal Site"
},
"parent_site": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Parent Site"
}
},
"type": "object",
"required": [
"customer_facing",
"customer_scoping",
"is_customer_portal_site"
],
"title": "SiteSettingsIn"
}200 — Successful Response
json
{}422 — Validation Error
json
{
"properties": {
"detail": {
"items": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}POST /api/v1/settings/site/children/{child_site}/login
Login To Child Site
Mint a one-time login link to open a linked child site's own front door, already signed in as this superuser there (not as any particular customer — see app.services.impersonation.issue_superuser_login). Only ever offered for sites whose parent_site is this one (see _linked_children above and the sidebar shortcuts that call this).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
child_site | path | yes | string |
200 — Successful Response
json
{
"properties": {
"url": {
"type": "string",
"title": "Url"
}
},
"type": "object",
"required": [
"url"
],
"title": "ChildLoginOut"
}422 — Validation Error
json
{
"properties": {
"detail": {
"items": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}