Skip to main content

Create Approval Group

Creates a new approval group by copying an existing approval group.

Request URL: /openapi/v1/approval/group/create

Request Method: POST

Before You Begin

  • You can call List Approval Groups to obtain the replicateGroupId to copy from.
  • The new approval group copies the flow configuration from the source approval group and saves it with the new name and description.

Request Parameters

ParameterTypeRequiredDescriptionExample
nameStringYesApproval group name.Production Approval Flow
descriptionStringNoApproval group description.For production SQL task approvals
replicateGroupIdLongYesSource approval group ID.48

How to Use the Returned Value

After the call succeeds, data in the response is the new approval group ID. You can use this value as id when calling Update Approval Group, Delete Approval Group, or Bind or Unbind Approval Group Resources.

Request Example

{
"name": "Production Approval Flow",
"description": "For production SQL task approvals",
"replicateGroupId": 48
}

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID for troubleshooting and tracing.Cl7o7OJC-ioopxKTnomht9GHdkoq6PBL
dataLongID of the new approval group.30044
errorCodeStringError code returned when the call fails.None
messageStringError message returned when the call fails.None

Successful Invocation Example

{
"success": true,
"requestId": "Cl7o7OJC-ioopxKTnomht9GHdkoq6PBL",
"data": 30044
}