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

# Change a status template

> Renames a status template or changes its statuses, as the app's Templates page does; only what is sent changes. The global template cannot be renamed. `statuses` is the whole list, in order, by group (not_started, then active, done, archived): a status with an `id` keeps it, renamed or recolored; one without is new; one left out is removed, unless tasks or projects are in it (a 409). A template answers with its `statuses` in order (each with `id`, `name`, `color` and `group`: not_started, active, done or archived) and `used_by`, where it is set: on a project, a project's tasks, a task type, or a project template's projects or tasks. `is_global` marks the workspace's global template, used where none is set.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/status_templates/{template_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/status_templates/{template_id}:
    patch:
      tags:
        - status_templates
      summary: Change a status template
      description: >-
        Renames a status template or changes its statuses, as the app's
        Templates page does; only what is sent changes. The global template
        cannot be renamed. `statuses` is the whole list, in order, by group
        (not_started, then active, done, archived): a status with an `id` keeps
        it, renamed or recolored; one without is new; one left out is removed,
        unless tasks or projects are in it (a 409). A template answers with its
        `statuses` in order (each with `id`, `name`, `color` and `group`:
        not_started, active, done or archived) and `used_by`, where it is set:
        on a project, a project's tasks, a task type, or a project template's
        projects or tasks. `is_global` marks the workspace's global template,
        used where none is set.
      operationId: status_templates_update
      parameters:
        - in: path
          name: template_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                name:
                  anyOf:
                    - maxLength: 255
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  title: Name
                statuses:
                  anyOf:
                    - items:
                        $ref: '#/components/schemas/StatusBody'
                      maxItems: 100
                      type: array
                    - type: 'null'
                  default: null
                  description: 'All its statuses, in order: one left out is removed'
                  title: Statuses
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusTemplateRecord'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    StatusBody:
      additionalProperties: false
      properties:
        color:
          anyOf:
            - pattern: ^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$
              type: string
            - type: 'null'
          default: null
          description: A hex color; a new status defaults to the app's grey
          title: Color
        group:
          enum:
            - not_started
            - active
            - done
            - archived
          title: Group
          type: string
        id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            An existing status's id keeps it (renamed or recolored); none: a new
            status
          title: Id
        name:
          maxLength: 100
          minLength: 1
          title: Name
          type: string
      required:
        - name
        - group
      title: StatusBody
      type: object
    StatusTemplateRecord:
      properties:
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Created At
        id:
          title: Id
          type: string
        is_global:
          description: The workspace's global template, used where no other is set
          title: Is Global
          type: boolean
        name:
          title: Name
          type: string
        statuses:
          items:
            $ref: '#/components/schemas/Status'
          title: Statuses
          type: array
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Updated At
        used_by:
          items:
            $ref: '#/components/schemas/Usage'
          title: Used By
          type: array
      required:
        - id
        - name
        - is_global
        - statuses
      title: StatusTemplateRecord
      type: object
    Status:
      properties:
        color:
          title: Color
          type: string
        group:
          anyOf:
            - enum:
                - not_started
                - active
                - done
                - archived
              type: string
            - type: 'null'
          description: not_started, active, done or archived
          title: Group
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
        - color
        - group
      title: Status
      type: object
    Usage:
      properties:
        id:
          description: That record's id (a task type's name for task_type)
          title: Id
          type: string
        object:
          description: >-
            What uses it: project, project_task (a project's tasks), task_type,
            project_template (its projects) or project_template_task (its tasks)
          title: Object
          type: string
      required:
        - object
        - id
      title: Usage
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.