---
title: "Set statuses"
method: PUT
path: "/crm/objects/{objectName}/statuses"
tags: ["crm"]
---

# Set statuses

`PUT /crm/objects/{objectName}/statuses`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/crm/objects/{objectName}/statuses`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Set CRM statuses.

## Path parameters

- `objectName` string, required

## Request body

- object
  - `statuses` object[], required
    - `name` string, required
    - `color` string, required: Hex color.
    - `sortOrder` number
    - `isDefault` boolean
  - `remove` string[]: Status names to delete. Statuses in neither list are kept unchanged.

## Response `200`

Successful response

- object
  - `ok` boolean, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
