Configure a field's metadata-extraction source + mode
PUT /fields/{id}/extraction
Sets which extraction-source canonical field this field-definition receives values from + the apply mode. Empty source clears extraction. Empty mode defaults to skip_if_set. Edits invalidate the metadata.extraction_ config cache so the next extract job sees the new wiring.
Gated on the same admin capability as updateField.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”Per-field extraction wiring. Empty source clears extraction; the operator can then re-attach it later without losing the field-definition’s other settings.
object
Canonical field name the extractor produces (e.g. capture_datetime, camera_make, gps_coordinates). Empty disables extraction for this field.
Apply behaviour. Empty defaults to skip_if_set — the conservative choice that never clobbers operator work.
Responses
Section titled “ Responses ”Updated field definition.
object
Federation-stable slug. Globally unique.
What the field describes. asset definitions apply to
individual assets; collection definitions apply to whole
collections. One row is one or the other — operators who
want a field on both kinds create two rows.
Type-dependent constraints / values. Shape per ADR 0012.
object
Resource type refs this field applies to. Empty = all. Ignored when subject_kind = ‘collection’.
Auto-extraction source, e.g. {“type”:“exif”,“tag”:“DateTimeOriginal”}.
object
CanonicalField the metadata-extraction pipeline writes into this field. Empty = no extraction (the field stays operator-managed). Edited via the dedicated PUT …/extraction endpoint.
Write behaviour when extraction has a value. Empty = default (skip_if_set).
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completedResource not found
object
Human-readable error summary
Example
the request could not be completed