# Validate Pipeline

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

<MethodEndpoint
  method={"post"}
  path={"/api/v1/workspaces/{workspace_name}/pipeline_validations"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Validates a pipeline YAML. Use this endpoint to validate your pipeline configuration before saving it.

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

<ParamsDetails
  parameters={[{"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":{"additionalProperties":false,"properties":{"deepset_cloud_version":{"default":"v2","description":"The version of deepset the pipeline was created with.","title":"deepset Version","enum":["v2"],"type":"string"},"indexing_yaml":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The deepset pipeline YAML configuration for indexing.","title":"Indexing YAML"},"pipeline_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Unique identifier of a pipeline used for tracking events.","title":"Pipeline ID"},"pipeline_index_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Unique identifier of the pipeline index.","title":"Pipeline Index ID"},"query_yaml":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The deepset pipeline YAML configuration for querying.","title":"Query YAML"}},"title":"ValidatePipelineYaml","type":"object"}}},"required":true}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"Your pipeline is valid."},"400":{"description":"Check the pipeline configuration and make sure the components and parameters are correct. Additionally, make sure third-party models are accessible. You can connect Haystack Enterprise Platform to model providers using Connections or by passing the provider's API key."},"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"}}}
>
  
</StatusCodes>
