Skip to main content
Send an exported pipeline document containing name and graph, up to 2 MiB. Returns the new pipeline. Returns 400 for an invalid graph or a reference to a secret missing from the project.

Signature

Method signature on client.pipelines:

Parameters

string
required
Project ID with prefix pp..
string
required
Name of the pipeline.
PipelineGraphV1
required
Pipeline graph in version 1 of the public graph format.

Returns

Promise<Pipeline> A pipeline within a project.
PipelineId
required
Pipeline ID with prefix pl..
ProjectId
required
Project ID with prefix pp..
string
required
Name of the pipeline.
number
required
Pipeline version number; copying a pipeline increments the source version.
string
required
Time the pipeline was created, as an ISO 8601 timestamp.
string
required
Time the pipeline was last updated, as an ISO 8601 timestamp.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: POST /projects/{projectId}/pipelines/import.