Reorder a pipeline's actions

Sets the order actions run in. Every action id of the pipeline must be listed, once each.

Last updated:

Sets the order actions run in. Every action id of the pipeline must be listed, once each.

PUT /api/v1/pipelines/{pipelineId}/actions/reorder

Authorization

Requires a signed-in person with this scope: pipelines:write.

Parameters

NameInRequiredTypeDescription
X-Workspace-Idheaderyesstring (uuid)The workspace the call acts in. Take it from the workspace list.
pipelineIdpathyesstring (uuid)The pipeline's id.

Request body

FieldTypeRequiredDescription
actionIdslist of string (uuid)yes

Example request:

{
  "actionIds": [
    "4b2c3d4e-5f60-7182-93a4-b5c6d7e8f9a0"
  ]
}

Responses

200

The pipeline with its actions in the new order.

FieldTypeRequiredDescription
idstring (uuid)yes
namestringyes
descriptionstringyes
statusone of DRAFT, VALID, INVALIDyes
statusReasonstringno
schedulestringyes
createdBystringyes
createdAtstring (date-time)yes
updatedAtstring (date-time)yes
actionslist of objectyes
actions[].idstring (uuid)yes
actions[].typeone of COPY, DELETE, TRANSFORM, SCRIPT, EXPORT, IMPORTyes
actions[].writeStrategyone of INSERT, MERGE, CLEANno
actions[].sequenceIndexintegeryes
actions[].sourceEnvironmentIdstring (uuid)no
actions[].targetEnvironmentIdstring (uuid)yes
actions[].statusone of VALID, INCOMPLETE, INVALIDyes
actions[].entitySelectionslist of objectyes
actions[].entitySelections[].selectionIdstringno
actions[].entitySelections[].entityIdentifierstringno
actions[].entitySelections[].entityNamestringno
actions[].entitySelections[].entityDisplayNamestringno
actions[].entitySelections[].filterExpressionstringno
actions[].entitySelections[].transformationslist of objectno
actions[].entitySelections[].transformations[].fieldIdentifierstringno
actions[].entitySelections[].transformations[].fieldNamestringno
actions[].entitySelections[].transformations[].fieldTypestringno
actions[].entitySelections[].transformations[].typestringno
actions[].entitySelections[].transformations[].parametersobjectno
actions[].entitySelections[].transformations[].orderIndexintegerno
actions[].entitySelections[].keyAttributeslist of stringno
actions[].entitySelections[].writeStrategyone of INSERT, MERGE, CLEANno
actions[].entitySelections[].moduleIdentifierstringno
actions[].entitySelections[].moduleNamestringno
actions[].entitySelections[].fieldslist of objectno
actions[].entitySelections[].fields[].identifierstringno
actions[].entitySelections[].fields[].namestringno
actions[].entitySelections[].fields[].typestringno
actions[].entitySelections[].fields[].typeDescriptorstringno
actions[].configobjectyes
actions[].connectorNamestringnoDisplay name of the workspace connector an Export writes through, beside its id in config. Null when the action references no connector or that connector was deleted.

400

Either pipelineId is not a valid id, or the action list does not match the pipeline's actions exactly.

FieldTypeRequiredDescription
messagestringyes
statusintegeryes
errorCodestringyes
timestampstring (date-time)no
pathstringno
detailsobjectno

404

There is no such pipeline.

FieldTypeRequiredDescription
messagestringyes
statusintegeryes
errorCodestringyes
timestampstring (date-time)no
pathstringno
detailsobjectno