Parents
A parent is the person who receives messages. Parents are linked to students through /links. In the High school pack a parent is, for example, “Hawa Kollie”.
PATCHUpdate a parent
Requires contacts:write. Send only what changes — except attributes, which is replaced whole. A body that changes nothing is refused. An address or a number is taken away by sending “”; null, or leaving the key out, leaves it alone. Taking the last number away is only allowed where the instance takes parents with no phone number, and leaves somebody who needs an address, a reference, no WhatsApp number and email as their channel.
200 with the updated parent. Status is not set here; use deactivate. The rules are the ones on create, judged against the record as it will be and refused in the same sentences. 409 if the number or the reference you are moving onto this record already belongs to someone else: find them with ?phone_e164 or ?external_ref= and update that record instead.
One parent: the same fields in every pack. Press Response on the sample to see one whole.
On failure the body is { error, code } instead.