> For the complete documentation index, see [llms.txt](https://apidocs.plannrcrm.com/llms.txt)

# Update a lead status

> PUT /api/v1/lead-statuses/{uuid}
> 
> Making a status the default clears the previous default. Positions stay contiguous when one changes. Archiving with
> a replacement_status_uuid moves the status's leads to the replacement, except promoted and disqualified leads.



## Servers
- https://api.plannrcrm.com: https://api.plannrcrm.com


## Authentication methods
- Personal access token & O auth2


## Parameters
### Headers

- **X-PLANNR-ACCOUNT-UUID** (string)


### Path parameters

- **uuid** (string)



### Body: application/json (object)

- **name** (string)
  Name of the lead status. Must be unique within the firm.

- **colour** (string)
  Hex colour of the lead status.

- **position** (integer)
  New position within the firm's list. A position past the end moves the status to the end. Other statuses shift to keep positions contiguous.

- **is_default** (boolean)
  Only true is accepted. Makes this the firm's default status, given to leads created without a status, and clears the previous default. An archived status cannot be made the default.

- **archived** (boolean)
  Archive or unarchive the lead status. Archived statuses are hidden from the default list and cannot be chosen for a lead. The default status and the firm's last unarchived status cannot be archived.

- **replacement_status_uuid** (string(uuid))
  Only with archived true. UUID of another unarchived status of the firm. Leads on the archived status move to it, except promoted and disqualified leads, which keep their status. Omit it to leave leads on the archived status.



## Responses
### 200


#### Body: application/json (object)
- **uuid** (string)

- **name** (string)

- **colour** (string)

- **position** (integer)

- **is_default** (boolean)

- **archived** (boolean)

- **created_at** (string)

- **updated_at** (string)


### 403
Unauthorized

#### Body: application/json (object)
- **message** (string)
  A human-readable description of the error.


### 404
Lead status belongs to another firm

#### Body: application/json (object)
- **message** (string)
  A human-readable description of the error.


### 422
Validation error

#### Body: application/json (object)
- **message** (string)
  A human-readable description of the error.

- **errors** (object)
  Validation messages keyed by the field that failed.



[Powered by Bump.sh](https://bump.sh)
