Reference / Tags and custom fields

Set a custom field on a member

set_custom_fieldocmgr custom-fields setPOST /v1/members/{id}/custom-fieldsWRITE

Write one custom-field value for a person, replacing whatever was there — a custom field is a current value, not a history. A key nobody has used defines the field. Pass value: null to clear it. These are values somebody asserted about a real person: they are erased with the rest of their data on a redaction request, and they never take part in matching.

Parameters

subject"member" | "both"
member_idstring (uuid)REQUIRED

A member id as returned by search_members or get_member. Ids of merged members keep working: the survivor is returned instead.

fieldstringREQUIRED

The field’s key or id. A key nobody has used yet defines the field.

valuestring | nullREQUIRED

The value. Null clears it, which is what omitting a custom field means to a push.

value_type"string" | "url" | "int" | "number" | "date" | "boolean" | "enum"

Only used when this call defines the field; an existing field keeps its type.

namestring

Only used when this call defines the field.

CLI flags

--subject <subject>

member or both; both shares the definition

--name <name>

Display name, used only when this call defines the field

--type <type>

string, url, int, number, date, boolean or enum (new fields only)

Also in Tags and custom fields