Skip to main content

Change kanban stage

Changes the properties of the existing kanban or My plan stage

Function UpdateKanbansStage(Val URL, Val Name, Val StageID, Val Color = "", Val PrevStageID = 0, Val AsAdmin = False, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
Name--titleStringNew stages name
StageID--stageString, NumberStage ID for change
Color--colorStringHEX of new stage color
PrevStageID--prevstageString, NumberStage ID, after which the selected stage should be inserted
AsAdmin--adminBooleanAllows you to add stages without checking permissions (for administrators)
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: task.stages.update


1C:Enterprise/OneScript code example
    Name    = "New stage name";
Color = "000000";
StageID = "2886";

URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";

Result = OPI_Bitrix24.UpdateKanbansStage(URL, Name, StageID, Color);

Name = "New stage name 2";
Color = "000000";
StageID = "2888";

URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";

Result = OPI_Bitrix24.UpdateKanbansStage(URL, Name, StageID, Color, 6, True, Token);
    oint bitrix24 UpdateKanbansStage \
--url ""b24-ar17wx.bitrix24.by"" \
--title ""New stage name 2"" \
--stage "2928" \
--color ""000000"" \
--prevstage "6" \
--admin "true" \
--token "***"
Result
{
"result": true,
"time": {
"start": 1757976665.96354,
"finish": 1757976666.03461,
"duration": 0.07106614112854,
"processing": 0.0478971004486084,
"date_start": "2025-09-15T22:51:05+00:00",
"date_finish": "2025-09-15T22:51:06+00:00",
"operating_reset_at": 1757977265,
"operating": 0
}
}