---
title: "Replace the workspace's own companies"
method: PUT
path: "/v1/parties/group-companies"
tags: ["Contract Party Management"]
---

# Replace the workspace's own companies

`PUT /v1/parties/group-companies`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/parties/group-companies`
- Auth: HTTP bearer

Replaces the whole list. Entries are trimmed to 300 characters and duplicate names are dropped. Every `parent` names another entry of the same request.

## Request body

- object
  - `companies` object[], required
    - `name` string, required
    - `parent` string, nullable: The name of another entry in this list.
    - `relation` 'subsidiary' | 'sister' | 'parent', nullable

## Response `200`

The stored companies.

- object
  - `data` PartiesGroupCompany[]
    - `id` string, uuid
    - `customer_id` string, uuid
    - `name` string
    - `parent_id` string, uuid, nullable
    - `relation` 'subsidiary' | 'sister' | 'parent', nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.
- `422`: The request is well-formed but violates the declared task contract.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/parties/group-companies/put.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
