Import Authorities
import_authoritiesAdd or update public authority records by slug to route and discover requests. Reimporting the same slug updates name and URL without duplication.
Instructions
Upsert local public authority reference records by slug for request routing and discovery. Use after list_authorities when seeding or refreshing the catalog; do not use for FOI request CRUD (create_request/update_request). Mutating but non-destructive and idempotent: same slug re-import updates name/url without creating duplicates; does not contact remote authority directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authorities | Yes | Authority records to upsert; slug is the primary key, name is required, url is optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imported | Yes | Number of authority records accepted for import or update. |