Skip to Content
Pipelines Steps

Update an existing Pipeline Step

PUT
/pipelines/{pipeline_id}/steps/{step_id}

Path Parameters

pipeline_id*integer

The ID of the pipeline.

Range1 <= value
step_id*integer

The ID of the step.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
id*integer

The unique ID of the given Pipeline Step.

name?string

Name/short description of the script. Must be at least 4 characters. Must not be greater than 60 characters.

description?string

A short text describing the command. Can be helpful for other team members to understand why a pipeline step is needed. Must not be greater than 255 characters.

type?string

The pipeline step's type. Must not be greater than 20 characters.

command*string

A command line or multiline bash script. Must be at least 10 characters. Must not be greater than 300 characters.

runner*PipelineStepRunnerName

Name of the script runner that will run the script

Value in"composer""custom""npm""pip""yarn"
run_as_user?string

The name of the Unix user on behalf of which the script will be executed. Must not be greater than 60 characters.

trigger_after?integer

Repositions the pipeline step after the step with the given trigger_order. Must be at least 0. Must not be greater than 16777214.

Response Body

No Content

Example Request
curl -X PUT 'https://api.devopness.com/pipelines/123/steps/123' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "id": 1,  "command": "echo '\''Deploy with devopness is a breeze!'\'' | tee -a /tmp/build-started.log",  "runner": "pip"}'
Example Response
Empty