# Update Counterparty This endpoint is used to update the status of a counterparty. For example, you can use it to unlink a counterparty that is no longer needed. The request body takes an UpdateCounterpartyRequest object. On success, it returns the updated counterparty object. Endpoint: PATCH /api/v2/counterparties/{counterparty_id}/ Version: Version: fd60d28d Security: CodeBearer ## Path parameters: - `counterparty_id` (string, required) ## Request fields (application/json): - `status` (any) ## Response 422 fields (application/json): - `detail` (array) - `detail.loc` (array, required) - `detail.msg` (string, required) - `detail.type` (string, required)