Update a lead status Run in API Explorer

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.plannrcrm.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "PlannrCRM MCP server": {
    "url": "https://apidocs.plannrcrm.com/mcp"
  }
}

Close
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.

Headers

  • X-PLANNR-ACCOUNT-UUID string

Path parameters

  • uuid string Required
application/json

Body

  • name string

    Name of the lead status. Must be unique within the firm.

    Maximum length is 255.

  • 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.

    Minimum value is 1.

  • 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 application/json
    Hide response attributes Show response attributes object
    • uuid string
    • name string
    • colour string
    • position integer
    • is_default boolean
    • archived boolean
    • created_at string
    • updated_at string
  • 403 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • message string Required

      A human-readable description of the error.

  • 404 application/json

    Lead status belongs to another firm

    Hide response attribute Show response attribute object
    • message string Required

      A human-readable description of the error.

  • 422 application/json

    Validation error

    Hide response attributes Show response attributes object
    • message string Required

      A human-readable description of the error.

    • errors object

      Validation messages keyed by the field that failed.

      Hide errors attribute Show errors attribute object
      • * array[string] Additional properties
PUT /api/v1/lead-statuses/{uuid}
curl \
 --request PUT 'https://api.plannrcrm.com/api/v1/lead-statuses/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 --data '{
  "name": "Qualified",
  "colour": "#23852B",
  "position": 1,
  "is_default": true,
  "archived": false,
  "replacement_status_uuid": "e4ebccb0-4cce-46e2-839c-ccb7788a55a8"
}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "name": "Qualified",
  "colour": "#23852B",
  "position": 1,
  "is_default": true,
  "archived": false,
  "replacement_status_uuid": "e4ebccb0-4cce-46e2-839c-ccb7788a55a8"
}
Response examples (200)
[
  {
    "uuid": "ee553bb1-ddd3-433d-b636-1b33fd9c12d9",
    "name": "Contacted",
    "colour": "#23852B",
    "position": 2,
    "is_default": false,
    "archived": false,
    "created_at": "2026-11-24T16:44:29+00:00",
    "updated_at": "2026-11-24T16:44:29+00:00"
  }
]
Response examples (403)
{
  "message": "This action is unauthorized."
}
Response examples (404)
{
  "message": "Not found."
}
Response examples (422)
{
  "message": "The name has already been taken.",
  "errors": {
    "name": [
      "The name has already been taken."
    ]
  }
}
{
  "message": "The colour has to be a valid hex color.",
  "errors": {
    "colour": [
      "The colour has to be a valid hex color."
    ]
  }
}
{
  "message": "The position must be at least 1.",
  "errors": {
    "position": [
      "The position must be at least 1."
    ]
  }
}
{
  "message": "Set another status as the default instead.",
  "errors": {
    "is_default": [
      "Set another status as the default instead."
    ]
  }
}
{
  "message": "An archived status cannot be the default.",
  "errors": {
    "is_default": [
      "An archived status cannot be the default."
    ]
  }
}
{
  "message": "Set another status as the default first.",
  "errors": {
    "status": [
      "Set another status as the default first."
    ]
  }
}
{
  "message": "A firm must keep at least one status.",
  "errors": {
    "status": [
      "A firm must keep at least one status."
    ]
  }
}
{
  "message": "A replacement status can only be given when archiving a status.",
  "errors": {
    "replacement_status_uuid": [
      "A replacement status can only be given when archiving a status."
    ]
  }
}
{
  "message": "The replacement status must be a different status.",
  "errors": {
    "replacement_status_uuid": [
      "The replacement status must be a different status."
    ]
  }
}
{
  "message": "The selected replacement status uuid is invalid.",
  "errors": {
    "replacement_status_uuid": [
      "The selected replacement status uuid is invalid."
    ]
  }
}