Skip to main content
POST
Update change

Restrictions

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.

Authorizations

app_key
string
query
required

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.

Body

application/json
change_id
string
required

ID of the change to update, a 24-character hex string.

Pattern: ^[0-9a-fA-F]{24}$
title
string

Change title, non-empty.

Minimum string length: 1
description
string

Change description. Omit to keep the current value; send an empty string to clear it.

change_status
enum<string>

New status; must be the current status or one it may move to (see next_statuses in POST /change/info).

Available options:
Planned,
Ready,
Processing,
Canceled,
Done,
Failed

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.

labels
object

Labels to add or overwrite; a key with an empty value is removed. Keys not sent are kept.

planned_start_time
integer<int64>

Planned start, Unix timestamp in seconds or milliseconds. Omit to keep the current value; send 0 to clear it.

Required range: x >= 0
planned_end_time
integer<int64>

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.

Required range: x >= 0
operator
string

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.

impact
string

Impact of the change, as Markdown. Omit to keep the current value; send an empty string to clear it.

backout_plan
string

Rollback plan of the change, as Markdown. Omit to keep the current value; send an empty string to clear it.

checklist
object[]

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.

fields
object

Custom field values to set, keyed by field name; a null value removes the key. Keys not sent are kept.

Response

Success

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.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object

The change after the update.