> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pragmatiks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Path

> Check if a dependency path exists between two resources.

Returns whether the source resource transitively depends on the target
resource via depends_on edges, with every intermediate hop constrained
to live in the URL project. Two same-project endpoints connected only
through cross-project intermediates return ``exists=false``.

Returns:
    PathExistsResponse with exists=True if a path was found.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /projects/{project_id}/graph/path
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /projects/{project_id}/graph/path:
    get:
      tags:
        - graph
      summary: Check Path
      description: |-
        Check if a dependency path exists between two resources.

        Returns whether the source resource transitively depends on the target
        resource via depends_on edges, with every intermediate hop constrained
        to live in the URL project. Two same-project endpoints connected only
        through cross-project intermediates return ``exists=false``.

        Returns:
            PathExistsResponse with exists=True if a path was found.
      operationId: graph-check_path
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: from_provider
          in: query
          required: true
          schema:
            type: string
            description: Provider name of the source resource
            title: From Provider
          description: Provider name of the source resource
        - name: from_resource
          in: query
          required: true
          schema:
            type: string
            description: Resource type of the source resource
            title: From Resource
          description: Resource type of the source resource
        - name: from_name
          in: query
          required: true
          schema:
            type: string
            description: Name of the source resource
            title: From Name
          description: Name of the source resource
        - name: to_provider
          in: query
          required: true
          schema:
            type: string
            description: Provider name of the target resource
            title: To Provider
          description: Provider name of the target resource
        - name: to_resource
          in: query
          required: true
          schema:
            type: string
            description: Resource type of the target resource
            title: To Resource
          description: Resource type of the target resource
        - name: to_name
          in: query
          required: true
          schema:
            type: string
            description: Name of the target resource
            title: To Name
          description: Name of the target resource
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PathExistsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PathExistsResponse:
      properties:
        exists:
          type: boolean
          title: Exists
      type: object
      required:
        - exists
      title: PathExistsResponse
      description: |-
        Response for path existence check.

        Attributes:
            exists: Whether a dependency path exists between the two resources.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````