---
title: "Set who reads the records of a connection"
method: PUT
path: "/v1/sources/{id}/record-roles"
tags: ["Sources"]
---

# Set who reads the records of a connection

`PUT /v1/sources/{id}/record-roles`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/sources/{id}/record-roles`
- Auth: HTTP bearer

With `enabled: true` the `admins` read every record of the source and everyone else reads only the records they own in it: a record is a person's when the source names their mail address as an owner and they are an active member with that address. With `enabled: false` everyone who reads the source reads all of its records. Switching it on needs at least one admin, each an active member, and a source that says whose its records are (`available`). What is built from the source's records follows within minutes; until then it reads as before the change. Allowed to the person who connected it or a member with the Integrations permission.

**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `enabled` boolean, required
  - `admins` string[]: User ids of the admins. At least one when `enabled`.

## Response `200`

The roles as they stand.

- SourceRecordRoles
  - `available` boolean, required: Whether the source says whose each record is. Without that the roles cannot be switched on.
  - `enabled` boolean, required: Whether admins read every record and everyone else their own.
  - `admins` SourceRecordRolePerson[], required
    - `id` string, uuid, required
    - `name` string, nullable
    - `email` string, nullable
  - `owners` object[], required: The owners the source names, most records first (at most 200).
    - `email` string, required
    - `member` SourceRecordRolePerson, nullable, required
      - `id` string, uuid, required
      - `name` string, nullable
      - `email` string, nullable
    - `records` integer, required
  - `unowned` integer, required: Records that name no owner.

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

- **2026-11-30** `59e87f749b62`: 1 info
  - endpoint added

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