Skip to main content

kobana dashboards portal-settings

Get portal settings

Commands of kobana dashboards portal-settings. Every global option (Global options) applies here.

CommandHTTPDescription
portal-settingsGET /v1/portal_settingsGet portal settings
portal-settings domain check-slugGET /v1/portal_settings/domain/check_slugCheck address availability
portal-settings domain updatePATCH /v1/portal_settings/domainSet portal address
portal-settings logo createPOST /v1/portal_settings/logoUpload portal image
portal-settings logo deleteDELETE /v1/portal_settings/logoDelete portal image
portal-settings updatePATCH /v1/portal_settingsUpdate portal settings
portal-settings verify-senderPOST /v1/portal_settings/verify_senderVerify the notifications sender e-mail

portal-settings​

Get portal settings

kobana dashboards portal-settings [OPTIONS] [COMMAND]

GET /v1/portal_settings

Returns the workspace portal's configuration: branding, page language, colors, address, login and SSO options, notifications and sender, and site settings (security headers, SEO, trackers, chat and custom code).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The workspace portal's configuration, with defaults applied.
404Resource not found in the current organization.

portal-settings domain check-slug​

Check address availability

kobana dashboards portal-settings domain check-slug [OPTIONS]

GET /v1/portal_settings/domain/check_slug

Tells whether slug is free under domain for this workspace's portal within the organization (its own current address counts as free).

Query parameters

NameTypeRequiredDescription
slugstringyesWorkspace slug; the address is {organization_slug}-{slug}.{domain} (a single label, up to 63 characters): 3 to 50 lowercase letters, digits and hyphens (no hyphen at either end). null to remove.
domainstringyesOne of the platform domains (available_domains). null to remove.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Result of the check.
400Invalid request (missing or malformed parameter).
404Resource not found in the current organization.

portal-settings domain update​

Set portal address

kobana dashboards portal-settings domain update [OPTIONS]

PATCH /v1/portal_settings/domain

Sets the portal's platform address, https://{organization_slug}-{slug}.{domain} (the organization slug is fixed here), or removes it when both are null.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
slugstringyesWorkspace slug; the address is {organization_slug}-{slug}.{domain} (a single label, up to 63 characters): 3 to 50 lowercase letters, digits and hyphens (no hyphen at either end). null to remove.
domainstringyesOne of the platform domains (available_domains). null to remove.

More fields and nested objects: kobana schema dashboards.portal-settings.domain.update.

Responses

HTTPDescription
200Address updated.
400Request body failed validation.
404Resource not found in the current organization.
422Refused by a business rule (address taken or reserved, file too large or of an unaccepted type…).

portal-settings logo create​

Upload portal image

kobana dashboards portal-settings logo create [OPTIONS]

POST /v1/portal_settings/logo

Uploads the portal's logo, dark-background logo or favicon, as base64 in the JSON body. Replaces the previous image.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
filenamestringyes
content_typestringyesimage/png, image/jpeg or image/webp; the favicon also accepts image/x-icon. SVG is not accepted.
content_base64stringyesFile content in base64 (up to 500 KB once decoded).
variantstringnoWhich image: logo (default), logo_light (logo for dark backgrounds) or favicon. Values: logo, logo_light, favicon.

More fields and nested objects: kobana schema dashboards.portal-settings.logo.create.

Responses

HTTPDescription
201Image saved; url is its public address.
400Request body failed validation.
404Resource not found in the current organization.
422Refused by a business rule (address taken or reserved, file too large or of an unaccepted type…).

portal-settings logo delete​

Delete portal image

kobana dashboards portal-settings logo delete [OPTIONS]

DELETE /v1/portal_settings/logo

Removes the logo, dark-background logo or favicon; the portal falls back to its default.

Query parameters

NameTypeRequiredDescription
variantstringnoWhich image: logo (default), logo_light (logo for dark backgrounds) or favicon. Values: logo, logo_light, favicon.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Image removed.
400Invalid request (missing or malformed parameter).
404Resource not found in the current organization.

portal-settings update​

Update portal settings

kobana dashboards portal-settings update [OPTIONS]

PATCH /v1/portal_settings

Updates the workspace portal's configuration. Partial: only the fields sent change. Returns the full configuration.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
company_namestringno
titlestringno
subtitlestringno
html_langstringnoThe portal language: it goes in the lang of the pages' <html> and translates the login screens. Values: pt-BR, en-US, es-ES.
light_colorsobjectnoTheme colors, in HSL without the hsl() wrapper (e.g. 210 40% 98%). Omitted keys use the default.
dark_colorsobjectnoTheme colors, in HSL without the hsl() wrapper (e.g. 210 40% 98%). Omitted keys use the default.
enable_loginbooleanno
enable_email_loginbooleanno
allow_password_changebooleanno
sso_enabledbooleanno
sso_public_keystringno
sso_algorithmstringnoValues: RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512.
sso_issuerstringno
notification_type_statusesobjectnoStatus of each portal notification: ACTIVE (sent), INACTIVE (silenced) or DISABLED (unavailable).
notification_bcc_emailsarray<object>noReplaces the whole list (up to 20).
notification_sender_namestringno
notification_sender_emailstringnoA new address starts its AWS SES verification, which e-mails it a confirmation link. "" reverts to the platform sender.
notification_reply_to_emailstringno
hsts_include_subdomainsbooleanno
hsts_preloadbooleanno
secure_frame_headersbooleanno
seo_indexing_enabledbooleanno
seo_robots_txtstringno
seo_sitemap_enabledbooleanno
seo_google_site_verificationstringnoOnly the content of the Google verification meta tag.
seo_canonical_urlstringno
tracking_integrationsobjectnoTrackers per provider (google_tag_manager, google_analytics, …): { provider: { enabled, ...ids } }. Unknown providers and fields are dropped.
chat_integrationsobjectnoChat widgets per provider (intercom, hubspot, zendesk, …), same shape as tracking_integrations.
custom_codestringno

More fields and nested objects: kobana schema dashboards.portal-settings.update.

Responses

HTTPDescription
200The workspace portal's configuration, with defaults applied.
400Request body failed validation.
404Resource not found in the current organization.
422Refused by a business rule (address taken or reserved, file too large or of an unaccepted type…).

portal-settings verify-sender​

Verify the notifications sender e-mail

kobana dashboards portal-settings verify-sender [OPTIONS]

POST /v1/portal_settings/verify_sender

Requests or re-checks the AWS SES verification of the portal's notification sender e-mail. When the address was never submitted to SES or its verification failed, it asks SES to verify it (SES e-mails the address a link); otherwise it polls the current state. Returns status (pending, active or failed) and verification_requested. Replaces POST /portal_settings/sender_identity.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Verification status.
404Resource not found in the current organization.