Skip to main content
PATCH
cURL
Send only the fields you want to change. A change works the same as an edit in Alex:
  • A new email that another of your candidates already has is refused with 409 candidate_email_taken. That is usually a typo. The candidate’s own email, sent again, is never refused.
  • A phone is stored in your company’s phone format where it can be. "phone": null removes it.
  • linkedin must be an http:// or https:// URL. "linkedin": null removes it.
  • A new email or phone clears the old one’s bounce, spam-complaint or delivery failure status, so Alex can contact the candidate at the new one.
  • The candidate’s activity records which fields changed and that the change came from the API. It never records the old or new values.

Authorizations

X-API-Key
string
header
required

Your company's API key, from Settings → Integrations in Alex. The earlier API's api-key header is accepted too; if you send both headers they must carry the same key.

Headers

Idempotency-Key
string

A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.

Required string length: 1 - 255

Path Parameters

id
string
required

The candidate's id.

Body

application/json

Pass at least one field. A field you leave out keeps its value.

first_name
string
Minimum string length: 1
last_name
string
Minimum string length: 1
email
string<email>

Refused with candidate_email_taken when another of your candidates has it, unless it is the candidate's own email. A new address clears the old one's bounce or spam-complaint status.

phone
string | null

10 to 15 digits; stored in your company's phone format where it can be. null removes the phone. A new number clears the old one's delivery failure status.

linkedin
string<uri> | null

The candidate's LinkedIn profile URL, starting http:// or https://. null removes it.

Response

The updated candidate.

object
string
required

Always "candidate".

Allowed value: "candidate"
id
string
required

The candidate's id. The same id the earlier API uses.

Example:

"5d2c7a90-1f4e-4b6a-8c3d-9e0f1a2b3c4d"

first_name
string | null
required
Example:

"Ada"

last_name
string | null
required
Example:

"Lovelace"

email
string | null
required

null when the candidate has no real email, only a placeholder.

phone
string | null
required
Example:

"+14155550123"

linkedin
string | null
required

The candidate's LinkedIn profile URL.

Example:

"https://www.linkedin.com/in/adalovelace"

external_id
string | null
required

Your identifier for the candidate, such as their ATS id.

Example:

"CAND-881"

do_not_contact
boolean
required

true when the candidate opted out of contact, so Alex sends them nothing.

deleted_in_ats
boolean
required

true when the candidate's record was deleted in your ATS. Lists leave such candidates out unless you pass include_deleted=true; GET /candidates/{id} returns them.

custom_fields
object
required

Stored custom field values, by custom field key (see GET /custom-fields). A field with no stored value is left out. A field read live from your ATS (type: ats_field) is never stored, so it never appears here.

Example:
created_at
string<date-time> | null
required

When the candidate was created.

updated_at
string<date-time> | null
required

When the candidate last changed.