# Upsert default pipeline

Associate a default pipeline with a provisioner operation

Endpoint: PUT /iacm/api/orgs/{org}/projects/{project}/settings/default-pipelines
Version: 1.0
Security: x-api-key

## Path parameters:

  - `org` (string, required)
    Example: "In quidem assumenda necessitatibus fugiat porro."

  - `project` (string, required)
    Example: "Reprehenderit praesentium."

## Header parameters:

  - `Harness-Account` (string, required)
    Example: "Laboriosam molestias neque."

## Request fields (application/json):

  - `operation` (string, required)
    The default pipeline is associated with this operation
    Enum: "plan", "apply", "destroy", "drift", "synth", "diff", "deploy"

  - `pipeline` (string, required)
    The default pipeline associated with the provisioner operation
    Example: "testpipeline"

  - `provisioner` (string, required)
    The default pipeline is associated with this provisioner
    Enum: "terraform", "opentofu", "terragrunt", "awscdk"

  - `updated` (integer, required)
    Time the default pipeline was last updated
    Example: 1636669297674

  - `workspace` (string)
    The default pipeline is associated with this workspace if specified
    Example: "plan"

## Response 400 fields (application/vnd.goa.error):

  - `fault` (boolean, required)
    Is the error a server-side fault?
    Example: true

  - `id` (string, required)
    ID is a unique identifier for this particular occurrence of the problem.
    Example: "123abc"

  - `message` (string, required)
    Message is a human-readable explanation specific to this occurrence of the problem.
    Example: "parameter 'p' must be an integer"

  - `name` (string, required)
    Name is the name of this class of errors.
    Example: "bad_request"

  - `temporary` (boolean, required)
    Is the error temporary?
    Example: true

  - `timeout` (boolean, required)
    Is the error a timeout?
    Example: true


## Response 200 fields
