sources
Link a person to a source with a role
Changed onpost/api/sources/{id}/persons
Request
- The document declares no server URL.
- Authnone declared
Path parameters
id, string required
Source ID
Request body
Link Source Person Request required
person_id, string required
position, integer nullable
role, 'author' | 'editor' | 'translator' | 'contributor' required
Stored as the Postgres enum source_person_role.
Response
Person linked to source
Changes
- breaking
request property
rolewas restricted to a list of enum values - info
added the new
authorenum value to the request propertyrole - info
added the new
contributorenum value to the request propertyrole
2 more changes in this revision
- breaking