---
title: "Update a dealer"
method: POST
path: "/dealers/{id}"
tags: ["Administration"]
---

# Update a dealer

`POST /dealers/{id}`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/dealers/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/dealers/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

Modify the settings of the dealer.

## Path parameters

- `id` string, required: The unique ID of the resource.

## Request body

- object
  - `enabled` boolean: Enable this dealer or not.
  - `email` string: The email address.
  - `display_name` string: The display name of user.
  - `website` string: The website of user.
  - `phone` string: The mobile phone number of user.
  - `address` string: The address.
  - `description` string: The description of dealer.
  - `max_tenants` integer: The maximum number of tenants that the dealer is allowed to create.
  - `max_extensions` integer: The maximum number of extensions that the dealer is allowed to create.
  - `tenant_full_access` boolean: Whether or not the reseller is allowed to have full control over the tenant. This attribute is not valid if not modified by first level dealer.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
