Contacts

Update contact field

Changed on

Changes a contact field's label, choices, currency or position. Its key and type never change, so stored values stay valid. archived: false restores an archived field.

patch/contacts/fields/{key}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

key, string required

The field's key, its id in GET /contacts/fields.

Request body

ContactFieldUpdateRequest required
label, string
options, union[]

Replaces the choices. A choice contacts still hold can't be dropped: change or clear their values first.

currency, string
position, integer
archived, boolean

true archives the field, false restores it. Archived fields keep their stored values, and a field is restored only when every contact's value fits it.

Response

Field updated

ContactField required
object, string required
id, string required
label, string required
position, number required
created_at, string date-time required
updated_at, string date-time required
type, 'text' | 'number' | 'money' | 'date' | 'boolean' | 'url' | 'email' | 'select' | 'multi_select' required
options, object[] nullable required

The choices of a select or multi_select field. A value is a choice's key.

currency, string nullable required

A money field's ISO currency code, when set.

archived, boolean required

Changes