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

# Update Resource Hierarchy Edge

> Update a resource hierarchy edge (e.g., change cascade mode)

## Path Parameters

<ParamField path="parentResourceId" type="string" required>
  The parent resource ID
</ParamField>

<ParamField path="childResourceId" type="string" required>
  The child resource ID
</ParamField>

## Request Body

<ParamField body="cascade" type="string">
  Cascade mode: `inherit` or `none`
</ParamField>

<ParamField body="relationshipType" type="string">
  Type of relationship (e.g., `contains`, `references`)
</ParamField>

## Response

Returns the updated hierarchy edge.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH 'https://api.example.com/resource-hierarchy/resource_folder_123/resource_doc_456' \
    -H 'Authorization: Bearer YOUR_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
      "cascade": "none"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "parentResourceId": "resource_folder_123",
    "childResourceId": "resource_doc_456",
    "relationshipType": "contains",
    "cascade": "none",
    "createdAt": "2024-01-15T10:30:00Z"
  }
  ```
</ResponseExample>
