---
title: "Update a relationship"
method: POST
path: "/apps/{appId}/relationships/{id}"
tags: ["Relationships"]
---

# Update a relationship

`POST /apps/{appId}/relationships/{id}`

Update a relationship by id

## Path parameters

- `appId` integer, required
- `id` integer, required

## Query parameters

- `is_customer` boolean
- `is_supplier` boolean
- `is_prospect` boolean
- `importance_level` integer
- `rating` integer
- `balance_initial_amount` integer
- `is_notifying` boolean
- `note` string
- `reference` string, nullable
- `tags` string, nullable
- `discount` string, nullable
- `details` string, nullable
- `metadata` string[], nullable

## Response `200`

Success

- Relationship
  - `id` integer
  - `is_customer` boolean
  - `is_supplier` boolean
  - `is_prospect` boolean
  - `importance_level` integer, nullable
  - `rating` integer, nullable
  - `is_notifying` boolean
  - `note` string, nullable
  - `accounting_infos` object
    - `balance_initial_amount` integer
    - `reference` string, nullable
    - `customer_id` string
    - `supplier_id` string
  - `metadata` unknown[], nullable
    - unknown

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.net/sinao/apis/sinao-api.md) · [All operations](https://skmtc.net/sinao/apis/sinao-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinao/sinao-api/revisions/436b47b78bf4/schema)
