Update user document with new field via the API

Hello Medic team,

As the title says I want to update a contact document with a new value that I get from a third party system. Is there a way to do this via the api?

Hi @njuguna,

Usually when doing contact updates as part of a user migration or role change, the document is updated directly in couchDB as these are normally seen as one-off type of updates. Iā€™m not aware of any API endpoint for updating contacts but if these updates are informed by a third party system it may be worthwhile to build an endpoint specifically for it so that other useful features like data integrity checks or rate limiting can be added if needed.