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

# Update change

> Update a change's title, description, status, link, labels, plan, checklist or custom field values. Fields left out keep their current values.

## Restrictions

| Aspect | Value |
| - | - |
| Rate limits | **300 requests/minute**; **20 requests/second** per account |
| Permissions | None — any valid `app_key` can call this operation |

## Usage

* Send at least one field besides `change_id`; otherwise `InvalidParameter`.
* An unknown `change_id` returns `InvalidParameter`. The caller must be able to write the change's collaboration space, under the same rule as `POST /change/create`; a change with no collaboration space (`channel_id` 0) can be updated only by the account owner and admins. Otherwise the call returns `AccessDenied`. A change's collaboration space can't be changed.
* `change_status` moves follow a fixed flow: `Planned` → `Ready`, `Processing` or `Canceled`; `Ready` → `Processing` or `Canceled`; `Processing` → `Done` or `Failed`; `Done` or `Failed` → `Processing` (reopen). `Canceled` is final. Sending the current status is allowed; any other move returns `InvalidParameter`. `POST /change/info` returns the allowed moves in `next_statuses`.
* `title` and `change_status` can't be empty strings. Any other string field sent as `""` is cleared.
* `labels` adds or overwrites keys, and a key sent with an empty value is removed. `fields` sets values by key, and a key sent as `null` is removed. Keys not sent are kept in both.
* `checklist` replaces the whole list. `by` and `at` are ignored: an item that was already ticked under the same `text` keeps who ticked it and when, and a newly ticked item is recorded as ticked by the caller.
* When the only difference is which checklist items are ticked (same item texts in the same order), the ticks are saved without a timeline entry or a notification, and `last_time` doesn't change.
* `planned_start_time` and `planned_end_time` accept Unix seconds or milliseconds. After the update, `planned_end_time` must not be earlier than `planned_start_time`.
* Required fields of the change form are checked against the change as the update leaves it. Only fields this update leaves empty are refused (`InvalidParameter` with `required fields missing or empty: <keys>`); a required field that was already empty doesn't block the update.
* For changes created in the console or through `POST /change/create`, a status move sends a status notification to the change form's bound group, and other edits to fields on the change form send an edit notification. Changes reported by an integration are not notified when updated here.
* Every call is recorded in the account audit log.


## OpenAPI

````yaml /api-reference/on-call.openapi.en.json post /change/update
openapi: 3.1.0
info:
  title: Flashduty Open API
  description: >-
    Public HTTP API for the Flashduty incident management platform — incidents,
    notification templates, channels, schedules, monitors, RUM, and platform
    administration. Every operation is authenticated with an `app_key` query
    parameter created in the Flashduty console under My → APP Key (or sent in
    the `Fd-App-Key` header). Responses follow a uniform envelope: `{
    request_id, data }` on success, `{ request_id, error }` on failure.
  version: 1.0.0
servers:
  - url: https://api.flashcat.cloud
    description: Flashduty Open API
security:
  - AppKeyAuth: []
tags:
  - name: On-call/Incidents
    description: ''
  - name: On-call/Channels
    description: ''
  - name: On-call/Alerts
    description: >-
      Search, inspect, and act on alerts. Manage card views and alert processing
      pipelines.
  - name: On-call/Integrations
    description: ''
  - name: On-call/IM integrations
    description: IM integration queries, such as which integrations have war room enabled.
  - name: On-call/Schedules
    description: ''
  - name: On-call/Licenses
    description: ''
  - name: On-call/Calendars
    description: ''
  - name: On-call/Notification templates
    description: ''
  - name: On-call/Alert enrichment
    description: Custom fields, enrichment rules, and data mapping (schema, data, API).
  - name: On-call/Analytics
    description: ''
  - name: On-call/Status pages
    description: ''
  - name: On-call/Changes
    description: ''
  - name: On-call/Dedicated integrations
    description: Manage alert integrations owned by individual channels.
paths:
  /change/update:
    post:
      tags:
        - On-call/Changes
      summary: Update change
      description: >-
        Update a change's title, description, status, link, labels, plan,
        checklist or custom field values. Fields left out keep their current
        values.
      operationId: change-write-update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateChangeRequest'
            example:
              change_id: 664a1b2c3d4e5f6a7b8c9d0e
              change_status: Processing
              labels:
                version: v3.2.0
                env: ''
              fields:
                risk_level: null
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/UpdateChangeResponse'
              example:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                data:
                  change_id: 664a1b2c3d4e5f6a7b8c9d0e
                  change_key: CHG-20261126-7Q2K
                  change_status: Processing
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    UpdateChangeRequest:
      type: object
      required:
        - change_id
      properties:
        change_id:
          type: string
          pattern: ^[0-9a-fA-F]{24}$
          description: ID of the change to update, a 24-character hex string.
        title:
          type: string
          minLength: 1
          description: Change title, non-empty.
        description:
          type: string
          description: >-
            Change description. Omit to keep the current value; send an empty
            string to clear it.
          x-flashduty-preserve-absence: true
        change_status:
          type: string
          enum:
            - Planned
            - Ready
            - Processing
            - Canceled
            - Done
            - Failed
          description: >-
            New status; must be the current status or one it may move to (see
            `next_statuses` in `POST /change/info`).

            | Value | Meaning |

            |---|---|

            | `Planned` | Planned, not started. |

            | `Ready` | Ready for execution. |

            | `Processing` | Being executed. |

            | `Canceled` | Canceled. |

            | `Done` | Completed. |

            | `Failed` | Failed. |
        link:
          type: string
          description: >-
            External link to the change record: an absolute `http` or `https`
            URL, or empty. Omit to keep the current value; send an empty string
            to clear it.
          x-flashduty-preserve-absence: true
        labels:
          type: object
          additionalProperties:
            type: string
          description: >-
            Labels to add or overwrite; a key with an empty value is removed.
            Keys not sent are kept.
        planned_start_time:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Planned start, Unix timestamp in seconds or milliseconds. Omit to
            keep the current value; send `0` to clear it.
          x-flashduty-preserve-absence: true
        planned_end_time:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Planned end, Unix timestamp in seconds or milliseconds; not earlier
            than `planned_start_time`. Omit to keep the current value; send `0`
            to clear it.
          x-flashduty-preserve-absence: true
        operator:
          type: string
          description: >-
            Person performing the change, as a member email or a free-form name.
            Omit to keep the current value; send an empty string to clear it.
          x-flashduty-preserve-absence: true
        impact:
          type: string
          description: >-
            Impact of the change, as Markdown. Omit to keep the current value;
            send an empty string to clear it.
          x-flashduty-preserve-absence: true
        backout_plan:
          type: string
          description: >-
            Rollback plan of the change, as Markdown. Omit to keep the current
            value; send an empty string to clear it.
          x-flashduty-preserve-absence: true
        checklist:
          type: array
          items:
            $ref: '#/components/schemas/ChangeChecklistItem'
          description: >-
            Full execution checklist, replacing the stored one. `by` and `at`
            are ignored; an item already ticked under the same `text` keeps who
            ticked it, and a newly ticked item is recorded as ticked by the
            caller. Omit to keep the current list; send an empty list to clear
            it.
          x-flashduty-preserve-absence: true
        fields:
          type: object
          additionalProperties: true
          description: >-
            Custom field values to set, keyed by field name; a `null` value
            removes the key. Keys not sent are kept.
    SuccessEnvelope:
      type: object
      description: >-
        Success response envelope. On every 2xx response, `request_id`
        identifies the call (also mirrored in the `Flashcat-Request-Id` header)
        and `data` holds the endpoint-specific payload. Failure responses use a
        different shape — see `ErrorResponse`.
      properties:
        request_id:
          type: string
          description: >-
            Unique ID for this request. Mirrored in the Flashcat-Request-Id
            response header. Include it when reporting issues.
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
        data:
          description: >-
            Operation-specific payload, documented in each operation's 200
            response. Operations without a payload return `{}` or omit `data`
            entirely.
      required:
        - request_id
    UpdateChangeResponse:
      type: object
      description: The change after the update.
      required:
        - change_id
        - change_key
        - change_status
      properties:
        change_id:
          type: string
          pattern: ^[0-9a-fA-F]{24}$
          description: Change ID.
        change_key:
          type: string
          description: Change key.
        change_status:
          type: string
          enum:
            - Planned
            - Ready
            - Processing
            - Canceled
            - Done
            - Failed
          description: |-
            Status of the change after the update.
            | Value | Meaning |
            |---|---|
            | `Planned` | Planned, not started. |
            | `Ready` | Ready for execution. |
            | `Processing` | Being executed. |
            | `Canceled` | Canceled. |
            | `Done` | Completed. |
            | `Failed` | Failed. |
    ChangeChecklistItem:
      type: object
      description: One entry of the change's execution checklist.
      required:
        - text
      properties:
        text:
          type: string
          description: Checklist item text.
        done:
          type: boolean
          description: Whether the item has been ticked off.
        by:
          type: string
          description: >-
            Display name of the member who ticked it; omitted when the item is
            not ticked.
        at:
          type: integer
          format: int64
          description: >-
            Unix timestamp in seconds when the item was ticked; omitted when the
            item is not ticked.
    ErrorResponse:
      type: object
      description: Response envelope for errors. `error` is required; `data` is absent.
      properties:
        request_id:
          type: string
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          description: >-
            Unique trace ID of this request; include it when reporting issues so
            logs can be located.
        error:
          $ref: '#/components/schemas/DutyError'
      required:
        - request_id
        - error
    DutyError:
      type: object
      description: >-
        Error payload inside the response envelope. Present only on non-2xx
        responses.
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            Human-readable error message in the response language (`locale` /
            `lang` query parameter or `Accept-Language` header). May name the
            offending field; do not parse it.
          example: The specified parameter template_id is not valid.
      required:
        - code
        - message
    ErrorCode:
      type: string
      description: >-
        Error code. Every failed response sets `error.code` to one of these
        stable strings; branch on it rather than on the HTTP status.


        | Code | HTTP | Meaning |

        |---|---|---|

        | `OK` | 200 | Reserved; never returned on a failed request. |

        | `InvalidParameter` | 400 | A parameter is missing, has the wrong type,
        or failed validation; `message` usually names the field. |

        | `BadRequest` | 400 | The request breaks a business rule or conflicts
        with the current state of an object; `message` says which. |

        | `InvalidContentType` | 400 | The body is not sent as
        `application/json`. |

        | `ResourceNotFound` | 400 | The referenced object does not exist in
        this account or was deleted. Returned as HTTP 400, not 404. |

        | `NoLicense` | 400 | The account's plan does not include the feature, a
        plan quota is used up, the plan has expired, or credits are
        insufficient. |

        | `ReferenceExist` | 400 | The object is still referenced by other
        objects, so it cannot be deleted. |

        | `Unauthorized` | 401 | The APP Key is missing, invalid, or deleted. |

        | `BalanceNotEnough` | 402 | Console-only (billing); not returned by
        Open API operations. |

        | `AccessDenied` | 403 | The APP Key's permission scope or the creator's
        role does not allow this operation or object. |

        | `RouteNotFound` | 404 | No operation matches the HTTP method and path.
        |

        | `MethodNotAllowed` | 405 | The path exists but not for this HTTP
        method. |

        | `UndonedOrderExist` | 409 | Console-only (billing); not returned by
        Open API operations. |

        | `EntityTooLarge` | 413 | The request body exceeds the size limit. |

        | `RequestLocked` | 423 | Console-only (sign-in protection); not
        returned by Open API operations. |

        | `RequestVerifyRequired` | 428 | Console-only (verification code); not
        returned by Open API operations. |

        | `DangerousOperation` | 428 | Console-only (MFA for high-risk actions);
        not returned by Open API operations. |

        | `RequestTooFrequently` | 429 | A rate limit was hit; wait for the
        `Flashcat-Request-Rate-Limit-Delay` response header (seconds) before
        retrying. |

        | `InternalError` | 500 | Unexpected server error; retry with backoff
        and include `request_id` when reporting. |

        | `ServiceUnavailable` | 503 | A backend dependency is overloaded or
        unavailable; retry with backoff. |
      enum:
        - OK
        - InvalidParameter
        - BadRequest
        - InvalidContentType
        - ResourceNotFound
        - NoLicense
        - ReferenceExist
        - Unauthorized
        - BalanceNotEnough
        - AccessDenied
        - RouteNotFound
        - MethodNotAllowed
        - UndonedOrderExist
        - EntityTooLarge
        - RequestLocked
        - RequestVerifyRequired
        - DangerousOperation
        - RequestTooFrequently
        - InternalError
        - ServiceUnavailable
      x-enumDescriptions:
        OK: Reserved; never returned on a failed request.
        InvalidParameter: >-
          A parameter is missing, has the wrong type, or failed validation;
          `message` usually names the field.
        BadRequest: >-
          The request breaks a business rule or conflicts with the current state
          of an object; `message` says which.
        InvalidContentType: The body is not sent as `application/json`.
        ResourceNotFound: >-
          The referenced object does not exist in this account or was deleted.
          Returned as HTTP 400, not 404.
        NoLicense: >-
          The account's plan does not include the feature, a plan quota is used
          up, the plan has expired, or credits are insufficient.
        ReferenceExist: >-
          The object is still referenced by other objects, so it cannot be
          deleted.
        Unauthorized: The APP Key is missing, invalid, or deleted.
        BalanceNotEnough: Console-only (billing); not returned by Open API operations.
        AccessDenied: >-
          The APP Key's permission scope or the creator's role does not allow
          this operation or object.
        RouteNotFound: No operation matches the HTTP method and path.
        MethodNotAllowed: The path exists but not for this HTTP method.
        UndonedOrderExist: Console-only (billing); not returned by Open API operations.
        EntityTooLarge: The request body exceeds the size limit.
        RequestLocked: >-
          Console-only (sign-in protection); not returned by Open API
          operations.
        RequestVerifyRequired: Console-only (verification code); not returned by Open API operations.
        DangerousOperation: >-
          Console-only (MFA for high-risk actions); not returned by Open API
          operations.
        RequestTooFrequently: >-
          A rate limit was hit; wait for the `Flashcat-Request-Rate-Limit-Delay`
          response header (seconds) before retrying.
        InternalError: >-
          Unexpected server error; retry with backoff and include `request_id`
          when reporting.
        ServiceUnavailable: A backend dependency is overloaded or unavailable; retry with backoff.
      example: InvalidParameter
  responses:
    BadRequest:
      description: Invalid request — usually a missing or malformed parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingParameter:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InvalidParameter
                  message: The specified parameter is not valid.
    Unauthorized:
      description: Missing or invalid app_key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingAppKey:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: Unauthorized
                  message: You are unauthorized.
    Forbidden:
      description: >-
        The app_key is valid, but its permission scope or the creator's role
        does not allow this operation or object.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            noEditPermission:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: AccessDenied
                  message: Access Denied.
    TooManyRequests:
      description: >-
        Rate limit hit. Wait for the number of seconds in
        `Flashcat-Request-Rate-Limit-Delay`, then retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rateLimited:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: RequestTooFrequently
                  message: Request too frequently.
      headers:
        Flashcat-Request-Rate-Limit-Delay:
          description: >-
            Seconds until the current rate-limit window resets. Absent when the
            request was rejected by the gateway's global protection limit.
          schema:
            type: integer
            minimum: 0
    ServerError:
      description: Unexpected server-side error. Include the request_id when reporting.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InternalError
                  message: >-
                    We encountered an internal error, and it has been reported.
                    Please try again later.
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: app_key
      description: >-
        APP Key created in the Flashduty console under My → APP Key. Send it as
        the `app_key` query parameter or in the `Fd-App-Key` request header. Its
        effective access is the intersection of the key's permission scope and
        the creator's current role permissions. Keep it secret.

````

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