Pipelines - Create

Create a pipeline.

POST https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.1-preview.1

URI Parameters

Name In Required Type Description
organization
path True

string

The name of the Azure DevOps organization.

project
path True

string

Project ID or project name

api-version
query True

string

Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.

Request Body

Name Type Description
configuration

CreatePipelineConfigurationParameters

Configuration parameters of the pipeline.

folder

string

Folder of the pipeline.

name

string

Name of the pipeline.

Responses

Name Type Description
200 OK

Pipeline

successful operation

Security

accessToken

Personal access token. Use any value for the user name and the token as the password.

Type: basic

Definitions

Name Description
ConfigurationType

Type of configuration.

CreatePipelineConfigurationParameters

Configuration parameters of the pipeline.

CreatePipelineParameters

Parameters to create a pipeline.

Pipeline

Definition of a pipeline.

PipelineConfiguration
ReferenceLinks

The class to represent a collection of REST reference links.

ConfigurationType

Type of configuration.

Name Type Description
designerHyphenJson

string

Designer-JSON.

designerJson

string

Designer JSON.

justInTime

string

Just-in-time.

unknown

string

Unknown type.

yaml

string

YAML.

CreatePipelineConfigurationParameters

Configuration parameters of the pipeline.

Name Type Description
type

ConfigurationType

Type of configuration.

CreatePipelineParameters

Parameters to create a pipeline.

Name Type Description
configuration

CreatePipelineConfigurationParameters

Configuration parameters of the pipeline.

folder

string

Folder of the pipeline.

name

string

Name of the pipeline.

Pipeline

Definition of a pipeline.

Name Type Description
_links

ReferenceLinks

The class to represent a collection of REST reference links.

configuration

PipelineConfiguration

folder

string

Pipeline folder

id

integer

Pipeline ID

name

string

Pipeline name

revision

integer

Revision number

url

string

URL of the pipeline

PipelineConfiguration

Name Type Description
type

ConfigurationType

The class to represent a collection of REST reference links.

Name Type Description
links

object

The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.