---
title: "Update a relationship descriptor in the dataset schema"
method: POST
path: "/dataset/update_relationship"
tags: ["dataset"]
---

# Update a relationship descriptor in the dataset schema

`POST /dataset/update_relationship`

## Request body

- UpdateRelationshipRequest
  - `dataset_name` string, required
  - `new_description` string, nullable
  - `new_merge_strategy` RelationshipMergeStrategy
    - `source_cardinality_given_target_match` integer, nullable — Describes the expected cardinality of the source table when a match is found in the target table For example, if we have a source company and a target funding round, we expect the source company to appear in multiple funding rounds, but not *too* many. So if we have a funding round match, the expected number of unique companies is relatively small. This is an estimate of that number.
    - `target_cardinality_given_source_match` integer, nullable — Describes the expected cardinality of the target table when a match is found in the source table For example, if we have a source company and a target funding round, we usually expect some number of funding rounds to be associated with a single company but not *too* many. So if we have a company match, the expected number of unique funding rounds is relatively small. This is an estimate of that number.
  - `relationship_name` string, required

## Response `200`

Relationship updated successfully

---

[API](https://skmtc.net/structifyai/apis/structify.md) · [All operations](https://skmtc.net/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/structifyai/structify/versions/1364930b6980/schema)
