Dealer

Retrieve current dealer

get

Get details of current dealer.

Authorizations
Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/dealer' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "enabled": true,
  "level": "DISTRIBUTOR",
  "name": "text",
  "email": "example@example.com",
  "display_name": "text",
  "website": "text",
  "phone": "text",
  "address": "text",
  "description": "text",
  "max_tenants": 1,
  "max_extensions": 1
}

Update current dealer

post

Modify the settings of the current dealer.

Authorizations
Body
emailall ofoptional

The email address of user.

The email address.

display_namestring · max: 1024optional

The display name of user.

websitestringoptional

The website of user.

phonestring · max: 32optional

The mobile phone number of user.

addressstring · max: 128optional

The address.

descriptionstringoptional

The description of dealer.

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/dealer' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "example@example.com",
    "display_name": "text",
    "website": "text",
    "phone": "text",
    "address": "text",
    "description": "text"
  }'

No body

Was this helpful?