Create contact field
POST/api/v1/fields
Creates a field through the same registry used by the interface.
Scope
fields:writeUpdate contact field – the person behind the key must be administrator.
Body
JSON, Content-Type: application/json. Unknown fields return 422.
labelstringrequired- at least 1 characters · at most 100 characters
keystring- at most 40 characters
typestringrequiredtextnumberdatebooleanselectemailphoneurlpersonnummeroptionsarray<string>- at most 100
requiredbooleanshow_in_listbooleanpurpose_confirmedboolean
Retrying a request
Feel free to send the Idempotency-Key header (e.g. a UUID). If the same request is sent again with the same key within 24 hours, the first response is returned, without anything being done twice. Batch and idempotency
Response
201 The created field.
idstringrequired- The field ID.
keystringrequired- The key in fields on a contact, and in merge fields such as {{attr.kundnummer}}.
labelstringrequiredtypestringrequiredtextnumberdatebooleanselectemailphoneurlpersonnummeroptionsarray<string> | nullrequired- The options for a field of type select.
requiredbooleanrequired- Must be provided when a contact is created.
sensitivebooleanrequired- Sensitive field (personal identity number): can be neither read nor written via the API.
inheritedbooleanrequired- The field comes from a level above in the organisation.
Errors
- 400
- bad_request
- 429
- rate_limited