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

# Create a new ticket status



## OpenAPI

````yaml post /v1/tickets/status
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/tickets/status:
    post:
      tags:
        - Tickets
      description: >-
        This endpoint is only available for standard and enterprise tier
        organizations.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTicketStatusDto'
      responses:
        '201':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonTicketStatusResponse'
        '401':
          description: User is not authenticated!
        '403':
          description: User does not have access to this resource!
        '404':
          description: Resource not found!
        '429':
          description: Too many requests!
        '500':
          description: Something went wrong!
        '503':
          description: This service/resource is currently unavailable.
components:
  schemas:
    CreateTicketStatusDto:
      type: object
      properties:
        displayName:
          type: string
          description: The display name of the ticket status
        description:
          type: string
          description: The description of the ticket status
        isDefault:
          type: boolean
          description: Whether the ticket status is default
        name:
          type: string
          description: The name of the ticket status
        teamId:
          type: string
          description: The team ID of the ticket status
        parentStatusId:
          type: string
          description: The parent status ID of the ticket status
        moveParentTickets:
          type: boolean
          description: Whether to move the parent tickets to the new status
      required:
        - name
        - teamId
        - parentStatusId
    CommonTicketStatusResponse:
      type: object
      properties:
        status:
          type: boolean
          default: true
          description: The status of the response
        message:
          type: string
          default: Success
          description: The message of the response
        timestamp:
          format: date-time
          type: string
          default: '2024-01-01T00:00:00.000Z'
          description: The timestamp of the response
        data:
          description: The response for create/update/delete ticket status operations
          allOf:
            - $ref: '#/components/schemas/TicketStatusResponseDto'
      required:
        - status
        - message
        - timestamp
        - data
    TicketStatusResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the ticket
        name:
          type: string
          description: The name of the ticket status
        displayName:
          type: string
          description: The display name of the ticket status
        description:
          type: string
          description: The description of the ticket status
        isDefault:
          type: boolean
          description: Whether the ticket status is default
        teamId:
          type: string
          description: The team ID of the ticket status
        organizationId:
          type: string
          description: The organization ID of the ticket status
        parentStatusId:
          type: string
          description: The parent status ID of the ticket status
        createdAt:
          type: string
          description: The created date of the ticket status
        updatedAt:
          type: string
          description: The updated date of the ticket status
      required:
        - id
        - name
        - displayName
        - description
        - isDefault
        - teamId
        - organizationId
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````