---
title: "Set Relationship"
method: PATCH
path: "/api/v1/assistant/gems/{gem_id}/relationship"
tags: ["Collection Assistant"]
---

# Set Relationship

`PATCH /api/v1/assistant/gems/{gem_id}/relationship`

## Request

- Base URL: `https://api.gemstoneaiapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gemstoneaiapp.com/api/v1/assistant/gems/{gem_id}/relationship`
- Auth: HTTP bearer

Yours, considering, no longer yours; worn daily; no shopping
suggestions. Only the fields sent change.

## Path parameters

- `gem_id` integer, required

## Request body

- RelationshipIn
  - `status` 'owned' | 'considering' | 'wishlist' | 'researching' | 'previously_owned', nullable
  - `use` 'daily' | 'occasional' | 'special_occasion' | 'display' | 'storage', nullable
  - `commerce` 'browsing' | 'buying' | 'selling' | 'none', nullable
  - `shopping` boolean, nullable

## Response `200`

Successful Response

- UnderstandingOut
  - `gem_id` integer, required
  - `facts` FactOut[], required
    - `key` string, required
    - `label` string, required
    - `value` string, required
    - `basis` string, nullable
    - `at` string, nullable
    - `note` string, nullable
    - `quote` string, nullable
    - `ids` integer[]
    - `editable` boolean
  - `uncertain` OpenQuestionOut[], required
    - `about` string, required
    - `text` string, required
    - `settle` string, nullable
    - `species` string, nullable
    - `scan_said` string, nullable
    - `ids` integer[]
  - `relationship` RelationshipRowOut[], required
    - `key` string, required
    - `value` string, required
    - `text` string, required
    - `quote` string, nullable
    - `basis` string, nullable
    - `ids` integer[]
  - `learned` LearnedOut[], required
    - `ids` integer[], required
    - `text` string, required
    - `field` string, required
    - `source` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api.md) · [All operations](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/revisions/fcb441f55161?raw)
