# Update Pipeline

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Update Pipeline"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/api/v1/workspaces/{workspace_name}/pipelines/{pipeline_name}"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Updates the pipeline name, service level (development or production), or status.

Search users have permission to change pipeline status only.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"description":"Name of the pipeline.","in":"path","name":"pipeline_name","required":true,"schema":{"description":"Name of the pipeline.","title":"Pipeline Name","type":"string"}},{"description":"Type the name of the workspace.","in":"path","name":"workspace_name","required":true,"schema":{"description":"Type the name of the workspace.","title":"Workspace Name","type":"string"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"properties":{"gpu_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Enable or disable GPU acceleration for the pipeline. When enabled, the pipeline can automatically use GPU resources for supported operations. Pipelines that don't require GPUs will continue to run on CPU.","title":"GPU Enabled"},"idle_timeout_in_seconds":{"anyOf":[{"exclusiveMinimum":0,"maximum":2592000,"type":"integer"},{"type":"null"}],"description":"Set the time in seconds after which the pipeline is put on standby if it's not used. Must be at least 1 second.","title":"Pipeline Idle Timeout"},"max_query_replica_count":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Set the maximum number of query replicas for the pipeline. Must be at least equal to the minimum replica count. Maximum allowed value is 10.","title":"Maximum Query Replica Count"},"min_query_replica_count":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Set the minimum number of query replicas for the pipeline. Must be at least 1 and cannot exceed the maximum replica count. Maximum allowed value is 10.","title":"Minimum Query Replica Count"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name of the pipeline.","title":"Pipeline Name"},"service_level":{"anyOf":[{"enum":["DEVELOPMENT","PRODUCTION"],"title":"PipelineServiceLevelEnum","type":"string"},{"type":"null"}],"description":"Service level determines the infrastructure and availability requirements for a pipeline. Pipelines at 'PRODUCTION' service level have an extended active period before they enter the standby mode and offer enhanced scalability. 'DEVELOPMENT' pipelines enter standby after 20 minutes and lack scalability in case of any infrastructure issues.","title":"Pipeline Service Level"},"status":{"anyOf":[{"enum":["UNDEPLOYED","DEPLOYED","DEPLOYMENT_IN_PROGRESS","UNDEPLOYMENT_IN_PROGRESS","DEPLOYMENT_FAILED","IDLE","ACTIVATING"],"title":"PipelineStatus","type":"string"},{"type":"null"}],"description":"The current status of a pipeline. ","title":"Query pipeline status (deprecated)."}},"title":"PipelineUpdateRequest","type":"object"}}},"required":true}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The pipeline was successfully renamed."},"400":{"description":"The pipeline name is invalid. Make sure the name only contains valid characters."},"403":{"description":"You don't have permission to update this pipeline."},"404":{"description":"We couldn't find the pipeline you specified. Make sure the name is correct and the pipeline exists in the workspace you specified."},"409":{"description":"Pipeline with the same name already exists, you're trying to activate an undeployed pipeline or you're trying to change the pipeline service level of an undeployed pipeline."},"422":{"content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"}}},"description":"Validation Error"},"424":{"description":"We could not activate the pipeline because the linked index was not found. Please check if the index exists and is linked to the pipeline."}}}
>
  
</StatusCodes>
