---
title: "Correct the relationship directory"
method: PUT
path: "/v1/collections/directory"
tags: ["Collections"]
---

# Correct the relationship directory

`PUT /v1/collections/directory`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/collections/directory`
- Auth: HTTP bearer

Sets entries as a person's correction (they outrank configuration, records and conversations for their identifier) and removes entries by id. The documents of every identifier touched are relabelled; `wait` waits up to 60 seconds and `pending` counts what is still to follow. Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.

## Request body

- object
  - `entries` object[]
    - `match_value` string, required: A typed identifier: `domain:acme.com`, `email:jane@acme.com`, `phone:…`, `handle:…` or `entity:…`.
    - `relationship` string, required: A relationship kind of the workspace (its slug), or `own` / `other`.
  - `remove` string[]
  - `wait` boolean: Wait up to 60 seconds for the documents to be relabelled.

## Response `200`

OK

- object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-30** `a35fbf7a8ecf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/collections/directory/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)
