Set Reference Fields
PUT/api/v1/connectors/:connector_id/reference-fields
Set an Odoo connector's config["reference_fields"] โ and nothing else.
A dedicated endpoint because the mapping is checked (below), and because
until the PR #912 review PATCH /connectors/{id} REPLACED config
wholesale (it now merges; POST still replaces). This one replaces the one
key and keeps every other key as it is. Sending no target removes the
setting.
What it maps is read from the next poll on; an invoice already sent keeps what it was sent with. A poll already running when it is set does not put the old setting back: the poller writes only its own keys.
400 for a field that can never be a reference, because it is filed with the Tax Authority: the portal's access_token and access_url, a name that marks a secret (token, password, secret) and one that names a person (partner_id, invoice_user_id, an email or phone field).
Requestโ
Responsesโ
- 200
- 422
Successful Response
Validation Error