Loading...

PATCH /api/settings

To notify all sub-users of a schedule change, an administrator can update the account’s global message. The notice appears at the top of the application. The same operation can change other shared options, such as the outgoing email sender.

Send an object containing the fields you want to change. For the notice in this example, supply the text in globalMessage. Omitted fields retain their values, and the response lets you check the resulting settings.

Request Details

HTTP method PATCH
Path /api/settings

Request Parameters

Send a JSON object containing the changes. Omitted or null fields retain their values, including within nested objects. An empty string clears a text field. The exception is smtp.password, where an empty string preserves the saved password.

advancedAvailable indicates whether the account’s licence capacity covers at least 100 devices and allows advanced settings to be changed. logoutPage, globalMessage, and smtp can also be changed below that threshold.

Request body parameters

ParameterTypeRequiredDescription
companyNameStringOptionalStringNoCompany name.
primaryColorStringOptionalStringNoPrimary colour, for example #206080.
logoutPageStringOptionalStringNoHTTP or HTTPS address opened after sign-out.
globalMessageStringOptionalStringNoMessage displayed to subusers at the top of the application.
contactEmail
contactInfoStringOptional
StringNoContact email and contact information shown to users.
smartsuppKey
tawkKeyStringOptional
StringNoIdentifiers for the chat integrations.
googleAnalytics
googleTagManagerStringOptional
StringNoIdentifiers for Google Analytics and Google Tag Manager.
domainStringOptionalStringNoDomain configured for the account.
https
defaultStyles
darkModeBooleanOptional
BooleanNoSettings for HTTPS, default styles and dark mode, respectively.
stylesheetDesktop
stylesheetMobileStringOptional
StringNoCustom styles for desktop and mobile.
loginHtmlStringOptionalStringNoSign-in HTML. {{LoginBox}} represents the sign-in form.
loginObjectOptionalObjectNoSign-in page text, background colour and store links.
smtpObjectOptionalObjectNoServer, sender and options for outgoing mail.
mapsObjectOptionalObjectNoMap provider settings.
pushObjectOptionalObjectNoPush notification settings.
whatsAppObjectOptionalObjectNoWhatsApp integration settings.

Fields in login

ParameterTypeRequiredDescription
title
alertMessageStringOptional
StringNoTitle and alert on the sign-in page.
backgroundColorStringOptionalStringNoBackground colour.
upperMessage
lowerMessageStringOptional
StringNoUpper and lower messages.
playStoreLink
appStoreLinkStringOptional
StringNoApp store links.

Fields in smtp

ParameterTypeRequiredDescription
serverStringOptionalStringNoOutgoing mail server.
portIntegerOptionalIntegerNoServer port. When configuring the server, use a port other than 25.
tlsBooleanOptionalBooleanNoEnables STARTTLS.
userStringOptionalStringNoMail server user name.
fromStringOptionalStringNoValid sender email address.
maxDeviceNotificationsIntegerOptionalIntegerNoPer-device notification limit for the configured mail service.
passwordStringOptionalStringNoMail server password. An empty string keeps the saved password.

Fields in maps

ParameterTypeRequiredDescription
hereIdStringOptionalStringNoHERE ID.
yandexBooleanOptionalBooleanNoEnables Yandex maps.
googleKey
bingKey
hereKey
mapboxKey
appleTokenStringOptional
StringNoCredential for the corresponding map provider. Write-only.

Fields in push

ParameterTypeRequiredDescription
firebaseKeyStringOptionalStringNoFirebase key for push notifications. Write-only.

Fields in whatsApp

ParameterTypeRequiredDescription
appId
accountId
phoneNumberIdStringOptional
StringNoApp, account and phone number IDs for WhatsApp Business.
templateNameStringOptionalStringNoWhatsApp template name.
token
appSecretStringOptional
StringNoWhatsApp token and app secret. Write-only.

Manage the logo, icon, backgrounds, email templates, and Telegram from the web.

Authentication Required

You need access to the settings page and must be an administrator of an account that is not licensed by another account. Demo users cannot save changes.

Send a valid bearer token in the Authorization header. See Authentication.

Example Request

PATCH /api/settings HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

{ "globalMessage": "Fleet maintenance on Monday" }

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value.

A successful update is recorded in the history and returns the saved settings in the same structure as GET /api/settings, with success: true.

FieldTypePresenceDescription
companyNameStringConditionalStringConditionalCompany name.
primaryColorStringConditionalStringConditionalPrimary colour, for example #206080.
logoutPageStringConditionalStringConditionalHTTP or HTTPS address opened after sign-out.
globalMessageStringConditionalStringConditionalMessage displayed to subusers at the top of the application.
contactEmail
contactInfoStringConditional
StringConditionalContact email and contact information shown to users.
smartsuppKey
tawkKeyStringConditional
StringConditionalIdentifiers for the chat integrations.
googleAnalytics
googleTagManagerStringConditional
StringConditionalIdentifiers for Google Analytics and Google Tag Manager.
domainStringConditionalStringConditionalDomain configured for the account.
https
defaultStyles
darkModeBooleanAlways
BooleanAlwaysSettings for HTTPS, default styles and dark mode, respectively.
stylesheetDesktop
stylesheetMobileStringConditional
StringConditionalCustom styles for desktop and mobile.
loginHtmlStringConditionalStringConditionalSign-in HTML. {{LoginBox}} represents the sign-in form.
loginObjectAlwaysObjectAlwaysSign-in page text, background colour and store links.
smtpObjectAlwaysObjectAlwaysServer, sender and options for outgoing mail.
mapsObjectAlwaysObjectAlwaysMap provider settings.
pushObjectAlwaysObjectAlwaysPush notification settings.
whatsAppObjectAlwaysObjectAlwaysWhatsApp integration settings.
logo
iconStringConditional
StringConditionalAccount logo and icon, when configured.
telegramObjectAlwaysObjectAlwaysBot name and tokenSet indicator. Manage Telegram from the web.
advancedAvailableBooleanAlwaysBooleanAlwaysIndicates whether licence capacity reaches 100 devices and advanced settings can be changed.
successBooleanAlwaysBooleanAlwaysSet to true on success.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAccount usage for the day before this request is added.

Fields in login

FieldTypePresenceDescription
title
alertMessageStringConditional
StringConditionalTitle and alert on the sign-in page.
backgroundColorStringConditionalStringConditionalBackground colour.
upperMessage
lowerMessageStringConditional
StringConditionalUpper and lower messages.
playStoreLink
appStoreLinkStringConditional
StringConditionalApp store links.

Fields in smtp

FieldTypePresenceDescription
serverStringConditionalStringConditionalOutgoing mail server.
portIntegerConditionalIntegerConditionalServer port. When configuring the server, use a port other than 25.
tlsBooleanAlwaysBooleanAlwaysEnables STARTTLS.
userStringConditionalStringConditionalMail server user name.
fromStringConditionalStringConditionalValid sender email address.
maxDeviceNotificationsIntegerConditionalIntegerConditionalPer-device notification limit for the configured mail service.
passwordSetBooleanAlwaysBooleanAlwaysWhether a password is configured.

Fields in maps

FieldTypePresenceDescription
hereIdStringConditionalStringConditionalHERE ID.
yandexBooleanAlwaysBooleanAlwaysEnables Yandex maps.
googleKeySet
bingKeySet
hereKeySet
mapboxKeySet
appleTokenSetBooleanAlways
BooleanAlwaysEach flag indicates whether credentials for that provider are configured.

Fields in push

FieldTypePresenceDescription
firebaseKeySetBooleanAlwaysBooleanAlwaysWhether the Firebase key is configured.

Fields in whatsApp

FieldTypePresenceDescription
appId
accountId
phoneNumberIdStringConditional
StringConditionalApp, account and phone number IDs for WhatsApp Business.
templateNameStringConditionalStringConditionalWhatsApp template name.
tokenSet
appSecretSetBooleanAlways
BooleanAlwaysWhether the token and app secret are configured.

Fields in telegram

FieldTypePresenceDescription
botNameStringConditionalStringConditionalBot name.
tokenSetBooleanAlwaysBooleanAlwaysWhether the token is configured.

Example Successful Response

HTTP 200.

{ "success": true, "apiUsage": 1, "apiDailyUsage": 24, "https": false, "defaultStyles": false, "darkMode": true, "login": {}, "smtp": { "tls": false, "passwordSet": false }, "maps": { "googleKeySet": false, "bingKeySet": false, "hereKeySet": false, "mapboxKeySet": false, "appleTokenSet": false, "yandex": false }, "push": { "firebaseKeySet": false }, "whatsApp": { "tokenSet": false, "appSecretSet": false }, "telegram": { "tokenSet": false }, "advancedAvailable": false, "globalMessage": "Fleet maintenance on Monday" }

Errors

HTTP statusWhen it occurs
400If a value is invalid, such as a malformed colour, an invalid contact email, or a domain already in use. Check the field named in errors. If the request quota has been reached, error contains the reason.
401A valid bearer token is missing.
403If permission is missing or if an advanced setting is changed without the necessary licence capacity.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message. Field validation failures can appear in the errors object, with a list of messages for each field.

Example Error Response

{ "success": false, "error": "These options are for accounts with 100 devices or more." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:53:47