Create change
curl --request POST \
--url 'https://api.flashcat.cloud/change/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_status": "Planned",
"link": "https://ci.example.com/pipelines/4821",
"channel_id": 5001,
"labels": {
"service": "payment-service",
"env": "prod"
},
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": false
},
{
"text": "Verify error rate after rollout",
"done": false
}
],
"fields": {
"risk_level": "medium"
}
}
'import requests
url = "https://api.flashcat.cloud/change/create?app_key="
payload = {
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_status": "Planned",
"link": "https://ci.example.com/pipelines/4821",
"channel_id": 5001,
"labels": {
"service": "payment-service",
"env": "prod"
},
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": False
},
{
"text": "Verify error rate after rollout",
"done": False
}
],
"fields": { "risk_level": "medium" }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Upgrade payment-service to v3.2.0',
description: 'Rolling upgrade of payment-service in the production cluster.',
change_status: 'Planned',
link: 'https://ci.example.com/pipelines/4821',
channel_id: 5001,
labels: {service: 'payment-service', env: 'prod'},
planned_start_time: 1764147600,
planned_end_time: 1764151200,
operator: 'alice@example.com',
impact: 'Payments may be retried for up to 30 seconds per pod.',
backout_plan: 'Roll back the deployment to v3.1.4.',
checklist: [
{text: 'Notify the support team', done: false},
{text: 'Verify error rate after rollout', done: false}
],
fields: {risk_level: 'medium'}
})
};
fetch('https://api.flashcat.cloud/change/create?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/change/create?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Upgrade payment-service to v3.2.0',
'description' => 'Rolling upgrade of payment-service in the production cluster.',
'change_status' => 'Planned',
'link' => 'https://ci.example.com/pipelines/4821',
'channel_id' => 5001,
'labels' => [
'service' => 'payment-service',
'env' => 'prod'
],
'planned_start_time' => 1764147600,
'planned_end_time' => 1764151200,
'operator' => 'alice@example.com',
'impact' => 'Payments may be retried for up to 30 seconds per pod.',
'backout_plan' => 'Roll back the deployment to v3.1.4.',
'checklist' => [
[
'text' => 'Notify the support team',
'done' => false
],
[
'text' => 'Verify error rate after rollout',
'done' => false
]
],
'fields' => [
'risk_level' => 'medium'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/change/create?app_key="
payload := strings.NewReader("{\n \"title\": \"Upgrade payment-service to v3.2.0\",\n \"description\": \"Rolling upgrade of payment-service in the production cluster.\",\n \"change_status\": \"Planned\",\n \"link\": \"https://ci.example.com/pipelines/4821\",\n \"channel_id\": 5001,\n \"labels\": {\n \"service\": \"payment-service\",\n \"env\": \"prod\"\n },\n \"planned_start_time\": 1764147600,\n \"planned_end_time\": 1764151200,\n \"operator\": \"alice@example.com\",\n \"impact\": \"Payments may be retried for up to 30 seconds per pod.\",\n \"backout_plan\": \"Roll back the deployment to v3.1.4.\",\n \"checklist\": [\n {\n \"text\": \"Notify the support team\",\n \"done\": false\n },\n {\n \"text\": \"Verify error rate after rollout\",\n \"done\": false\n }\n ],\n \"fields\": {\n \"risk_level\": \"medium\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/change/create?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Upgrade payment-service to v3.2.0\",\n \"description\": \"Rolling upgrade of payment-service in the production cluster.\",\n \"change_status\": \"Planned\",\n \"link\": \"https://ci.example.com/pipelines/4821\",\n \"channel_id\": 5001,\n \"labels\": {\n \"service\": \"payment-service\",\n \"env\": \"prod\"\n },\n \"planned_start_time\": 1764147600,\n \"planned_end_time\": 1764151200,\n \"operator\": \"alice@example.com\",\n \"impact\": \"Payments may be retried for up to 30 seconds per pod.\",\n \"backout_plan\": \"Roll back the deployment to v3.1.4.\",\n \"checklist\": [\n {\n \"text\": \"Notify the support team\",\n \"done\": false\n },\n {\n \"text\": \"Verify error rate after rollout\",\n \"done\": false\n }\n ],\n \"fields\": {\n \"risk_level\": \"medium\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/change/create?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Upgrade payment-service to v3.2.0\",\n \"description\": \"Rolling upgrade of payment-service in the production cluster.\",\n \"change_status\": \"Planned\",\n \"link\": \"https://ci.example.com/pipelines/4821\",\n \"channel_id\": 5001,\n \"labels\": {\n \"service\": \"payment-service\",\n \"env\": \"prod\"\n },\n \"planned_start_time\": 1764147600,\n \"planned_end_time\": 1764151200,\n \"operator\": \"alice@example.com\",\n \"impact\": \"Payments may be retried for up to 30 seconds per pod.\",\n \"backout_plan\": \"Roll back the deployment to v3.1.4.\",\n \"checklist\": [\n {\n \"text\": \"Notify the support team\",\n \"done\": false\n },\n {\n \"text\": \"Verify error rate after rollout\",\n \"done\": false\n }\n ],\n \"fields\": {\n \"risk_level\": \"medium\"\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"change_id": "664a1b2c3d4e5f6a7b8c9d0e",
"change_key": "CHG-20261126-7Q2K"
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Changes
Create change
Create a change in a collaboration space. The change is recorded as written by the caller, and its change key is generated by the platform.
POST
/
change
/
create
Create change
curl --request POST \
--url 'https://api.flashcat.cloud/change/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_status": "Planned",
"link": "https://ci.example.com/pipelines/4821",
"channel_id": 5001,
"labels": {
"service": "payment-service",
"env": "prod"
},
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": false
},
{
"text": "Verify error rate after rollout",
"done": false
}
],
"fields": {
"risk_level": "medium"
}
}
'import requests
url = "https://api.flashcat.cloud/change/create?app_key="
payload = {
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_status": "Planned",
"link": "https://ci.example.com/pipelines/4821",
"channel_id": 5001,
"labels": {
"service": "payment-service",
"env": "prod"
},
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": False
},
{
"text": "Verify error rate after rollout",
"done": False
}
],
"fields": { "risk_level": "medium" }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Upgrade payment-service to v3.2.0',
description: 'Rolling upgrade of payment-service in the production cluster.',
change_status: 'Planned',
link: 'https://ci.example.com/pipelines/4821',
channel_id: 5001,
labels: {service: 'payment-service', env: 'prod'},
planned_start_time: 1764147600,
planned_end_time: 1764151200,
operator: 'alice@example.com',
impact: 'Payments may be retried for up to 30 seconds per pod.',
backout_plan: 'Roll back the deployment to v3.1.4.',
checklist: [
{text: 'Notify the support team', done: false},
{text: 'Verify error rate after rollout', done: false}
],
fields: {risk_level: 'medium'}
})
};
fetch('https://api.flashcat.cloud/change/create?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/change/create?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Upgrade payment-service to v3.2.0',
'description' => 'Rolling upgrade of payment-service in the production cluster.',
'change_status' => 'Planned',
'link' => 'https://ci.example.com/pipelines/4821',
'channel_id' => 5001,
'labels' => [
'service' => 'payment-service',
'env' => 'prod'
],
'planned_start_time' => 1764147600,
'planned_end_time' => 1764151200,
'operator' => 'alice@example.com',
'impact' => 'Payments may be retried for up to 30 seconds per pod.',
'backout_plan' => 'Roll back the deployment to v3.1.4.',
'checklist' => [
[
'text' => 'Notify the support team',
'done' => false
],
[
'text' => 'Verify error rate after rollout',
'done' => false
]
],
'fields' => [
'risk_level' => 'medium'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/change/create?app_key="
payload := strings.NewReader("{\n \"title\": \"Upgrade payment-service to v3.2.0\",\n \"description\": \"Rolling upgrade of payment-service in the production cluster.\",\n \"change_status\": \"Planned\",\n \"link\": \"https://ci.example.com/pipelines/4821\",\n \"channel_id\": 5001,\n \"labels\": {\n \"service\": \"payment-service\",\n \"env\": \"prod\"\n },\n \"planned_start_time\": 1764147600,\n \"planned_end_time\": 1764151200,\n \"operator\": \"alice@example.com\",\n \"impact\": \"Payments may be retried for up to 30 seconds per pod.\",\n \"backout_plan\": \"Roll back the deployment to v3.1.4.\",\n \"checklist\": [\n {\n \"text\": \"Notify the support team\",\n \"done\": false\n },\n {\n \"text\": \"Verify error rate after rollout\",\n \"done\": false\n }\n ],\n \"fields\": {\n \"risk_level\": \"medium\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/change/create?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Upgrade payment-service to v3.2.0\",\n \"description\": \"Rolling upgrade of payment-service in the production cluster.\",\n \"change_status\": \"Planned\",\n \"link\": \"https://ci.example.com/pipelines/4821\",\n \"channel_id\": 5001,\n \"labels\": {\n \"service\": \"payment-service\",\n \"env\": \"prod\"\n },\n \"planned_start_time\": 1764147600,\n \"planned_end_time\": 1764151200,\n \"operator\": \"alice@example.com\",\n \"impact\": \"Payments may be retried for up to 30 seconds per pod.\",\n \"backout_plan\": \"Roll back the deployment to v3.1.4.\",\n \"checklist\": [\n {\n \"text\": \"Notify the support team\",\n \"done\": false\n },\n {\n \"text\": \"Verify error rate after rollout\",\n \"done\": false\n }\n ],\n \"fields\": {\n \"risk_level\": \"medium\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/change/create?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Upgrade payment-service to v3.2.0\",\n \"description\": \"Rolling upgrade of payment-service in the production cluster.\",\n \"change_status\": \"Planned\",\n \"link\": \"https://ci.example.com/pipelines/4821\",\n \"channel_id\": 5001,\n \"labels\": {\n \"service\": \"payment-service\",\n \"env\": \"prod\"\n },\n \"planned_start_time\": 1764147600,\n \"planned_end_time\": 1764151200,\n \"operator\": \"alice@example.com\",\n \"impact\": \"Payments may be retried for up to 30 seconds per pod.\",\n \"backout_plan\": \"Roll back the deployment to v3.1.4.\",\n \"checklist\": [\n {\n \"text\": \"Notify the support team\",\n \"done\": false\n },\n {\n \"text\": \"Verify error rate after rollout\",\n \"done\": false\n }\n ],\n \"fields\": {\n \"risk_level\": \"medium\"\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"change_id": "664a1b2c3d4e5f6a7b8c9d0e",
"change_key": "CHG-20261126-7Q2K"
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 300 requests/minute; 20 requests/second per account |
| Permissions | None — any valid app_key can call this operation |
Usage
channel_idmust be a collaboration space of the account; otherwiseInvalidParameter. The caller must be able to write changes there: the account owner or an admin, the space’s creator, a member of its owning or managing teams, or any member for a public space. Otherwise the call returnsAccessDenied.change_statusdefaults toPlanned; any of the six statuses can be set on create.- The returned
change_keyhas the formCHG-<yyyyMMdd>-<4 characters>. To address a change by a key of your own, report it through a change integration instead. planned_start_timeandplanned_end_timeaccept Unix seconds or milliseconds (milliseconds are stored as seconds).planned_end_timemust not be earlier thanplanned_start_time.linkmust be empty or an absolutehttporhttpsURL.- Label keys that don’t match
[a-zA-Z_][a-zA-Z0-9_]*are stored with spaces and punctuation replaced by_. - Each
fieldskey must be an enabled custom field available to changes, and its value must fit the field’s type and options; otherwiseInvalidParameternamingfields.<name>. - Fields the account’s change form marks as required, including fields required only under conditions, must be filled; otherwise
InvalidParameterwithrequired fields missing or empty: <keys>. - In
checklist,byandatare ignored: an item sent withdone: trueis recorded as ticked by the caller at the time of the call. - When the change form binds a notification group for the collaboration space, a notification is sent to it.
- Every call is recorded in the account audit log.
Authorizations
Body
application/json
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.
Was this page helpful?