Skip to main content
POST
Validate a field

Authorizations

x-conveyour-token
string
header
required

Your API key token. Contacts endpoints require a Server-only — Full API key — see Authentication.

Query Parameters

teams[]
string[]

Team scope for the request, as one or more team ObjectIds. The brackets are required: PHP keeps only the last value for a repeated plain key, so teams=A&teams=B silently resolves to B alone. On requests with a JSON body you may send teams (no brackets) in the body instead.

Values that are not valid ObjectIds are silently ignored — a mistyped team ID behaves as if no team was sent. See the teams section of the API conventions guide.

Body

application/json

A candidate field definition. Validation runs the same checks as creating the field, without saving anything. It does not accept or check a contact value.

bucket
integer

Optional. Target bucket ID, defaulting to your org's default bucket when omitted. Unlike POST /api/fields, this endpoint is not restricted to the default bucket — it accepts any bucket in your org. Note the name differs too: validate takes bucket, create takes bucket_id.

label
string

Display label. Used to generate name when name is omitted.

name
string

Machine name. Generated from label when omitted.

type
enum<string>

Field type. One of the types in Field types and formats.

Available options:
string,
int,
bool,
date,
email,
list,
textarea,
time,
related_contacts,
image,
relation,
user_list,
id_number,
related_custom_object,
secret
{key}
any

Any other field-definition key accepted on create.

Response

Success.

The common response envelope shared by all ConveYour endpoints.

status
enum<string>

ok on success, failed on error.

Available options:
ok,
failed
message
string

Human-readable description of the result.

data
any[]

No payload — data is an empty array.