---
title: "Link a person to a source with a role"
method: POST
path: "/api/sources/{id}/persons"
tags: ["sources"]
---

# Link a person to a source with a role

`POST /api/sources/{id}/persons`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` string, required

## Request body

- LinkSourcePersonRequest
  - `person_id` string, required
  - `position` integer, nullable
  - `role` 'author' | 'editor' | 'translator' | 'contributor', required: Stored as the Postgres enum `source_person_role`.

## Response `200`

Person linked to source

## Other responses

- `400`: Invalid ID
- `401`: Not authenticated
- `403`: Insufficient permissions
- `404`: Source not found

## Changes

- **2026-08-22** `1f567b50f90c`: 1 breaking, 4 info
  - request property `role` was restricted to a list of enum values
  - added the new `author` enum value to the request property `role`
  - added the new `contributor` enum value to the request property `role`
  - added the new `editor` enum value to the request property `role`
  - …1 more
- **2026-07-16** `4473ab073bea`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
- **2026-04-05** `46554ab9860a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/sources/:id/persons/post.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
