Skip to content

Promote customer into production state

Request

Promotes customer into production. Production customers have monitoring enabled, and their data can no longer be deleted via the API.

POST https://partners.zoined.com/api/customers/{id}/promote

Security
partnerToken
Path
idstringrequired

id of customer

Example:dm_company
curl -i -X POST \
  https://zone-api.zoined.com/_mock/api/customers/dm_company/promote \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Customer was promoted successfully.

Bodyapplication/json
keystring

Company's key

Example:"dm_company"
namestring

Company name

Example:"Demo company"
createdAtstring

12-10T12:12:30Z (string) - Customer creation time stamp

Example:"2019"
disabledboolean

Customers's processing state. Disabled customers don't poll for new data

Example:false
productionboolean

Whether customer is in production mode

Example:true
customerTypestring

Customer Type

Example:"other"
tokenstring

ZAPI access token for customer if applicable

Example:"abcdefghijklmn"
statusstring

Status for the customer

Example:"ok"
licensesArray of strings

Customer product licenses

Example:
[ "standard" ]
dataUpdatedobject(DataUpdated)
dataSourceobject(DataSourceConfigurationResponse)
ssoSecretstring

SSO token if defined

Example:"asdajksdajdsjsdadjsasodaj"
Response
{ "key": "dm_company", "name": "Demo company", "createdAt": "2019", "disabled": false, "production": true, "customerType": "other", "token": "abcdefghijklmn", "status": "ok", "licenses": [ "standard" ], "dataUpdated": { "visitors": "2016-03-22T13:02:36.000+02:00" }, "dataSource": { "host": "db-host", "port": 3306, "database": "database_name", "username": "db-username", "password": "db-XXXXXXXX" }, "ssoSecret": "asdajksdajdsjsdadjsasodaj" }