> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pingmee.co.il/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Task Status

> Creates a custom task status. `title` and `color` are required. Titles must be unique for the business.

`title` and `color` are required. Titles must be unique for the business.


## OpenAPI

````yaml PUT /tasks/status
openapi: 3.1.0
info:
  title: Pingmee API
  description: A complete guide to Pingmee micro service architecture.
  version: 1.0.0
servers:
  - url: https://api.pingmee.co.il
security:
  - cookieAuth: []
    ApiKeyAuth: []
paths:
  /tasks/status:
    servers:
      - url: https://business.pingmee.co.il
        description: Business service
    put:
      summary: Create task status
      description: >-
        Creates a custom task status. `title` and `color` are required. Titles
        must be unique for the business.
      requestBody:
        required: true
        description: Task status to create.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTaskStatus'
      responses:
        '200':
          description: Task status created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatusDefinition'
        '400':
          description: Invalid request, missing fields, or duplicate title
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateTaskStatus:
      type: object
      required:
        - title
        - color
      properties:
        title:
          type: string
          description: Human-readable status title. Must be unique for the business.
        color:
          type: string
          description: Status color (hex, rgb, or named color)
      additionalProperties: false
    TaskStatusDefinition:
      type: object
      required:
        - id
        - title
        - color
        - associatedTo
      properties:
        id:
          type: string
          description: Unique identifier of the status. Can be used as a task `statusCase`.
        title:
          type: string
          description: Human-readable status title
        color:
          type: string
          description: Status color (hex, rgb, or named color)
        associatedTo:
          type: string
          description: Business or account the status is associated with
        isSelected:
          type: boolean
          description: Whether this status is selected in the UI
      additionalProperties: false
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: header
      name: Cookie
      description: Personal access token from Pingmee Settings → Developer Tools
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Business API key from Pingmee Settings → Developer Tools

````