Pixid VMS Pro API Documentation

PATCH /v2/candidates — User Guide

Overview

Changes existing Candidates. Each array element names one Candidate by candidateId and carries only the fields to change.

Status Meaning
200 Every Candidate was updated.
207 Some Candidates were updated, some failed. Read data.failed.
400 No Candidate was updated, or the request itself is invalid. This includes a request where every candidateId was not found: such a request returns 400, never 404.
400, 403, 404 The org parameters could not be resolved. The status is the one org validation reports: 404 an organization was not found, 403 a Vendor acting as another Vendor, 400 an inactive organization, an invalid combination, or a Vendor with no relationship to the Client Region. The same status comes back on create and GET.

An element that names a Candidate but changes nothing is reported as updated and writes nothing.

Before you start

Query parameter Required Rule
clientOrgId No Narrows the call to one Client Region.
vendorOrgId No Narrows the call to one Vendor.

Your Organization comes from your credentials. Every request is authenticated with an API Key and Secret, and each key is tied to one Organization. That Organization is supplied automatically when the request is submitted, and it decides whether the call is a Vendor, Client Region or Parent Client request. You do not send it as a parameter.

Absent, null and a value

Every field except candidateId, updatedByUserId and candidateRates has three states:

You send Result
The field is left out The stored value is kept.
"field": null The stored value is cleared, if the field can be cleared.
"field": value The stored value is replaced.

Fields that cannot be cleared reject null (see the error reference). Enum fields accept only the numeric code from the lookup, as a JSON number (6, not "6" or "Other"). Any other value, including a code the lookup does not list, is refused with 400.

Request body

The body is an array. Field names are camelCase.

Candidate

Field Type Required Rules Where to get values
candidateId integer Yes Greater than 0. Must be within your reach. GET /v2/candidates -> candidateId
updatedByUserId integer Vendor request: Yes. Otherwise recommended Recorded as the user who made the change and as the author of a new comment. A Vendor request must send an active user of its own Vendor. For a Client Region or Parent Client request, a value above 1 must be an active user of the Candidate's Client Region; 0 or omitted keeps the stored user (a comment is then attributed to the system administrator). GET /v2/users -> userId
firstName string No Up to 25 characters. Not blank, not null. Supplied by you
middleInitial string No Up to 1 character. Can be cleared. Supplied by you
lastName string No Up to 50 characters. Not blank, not null. Supplied by you
email string No Up to 100 characters and a valid email address. Cannot be null or empty. Supplied by you
ssn string No Up to 9 characters. null clears it. Supplied by you
interviewDate date-time No Not the minimum date. Can be cleared. Supplied by you
interviewedBy string No Up to 50 characters. Can be cleared. Supplied by you
availability string No Up to 50 characters. Can be cleared. Supplied by you
summaryOfQualifications string No Up to 1024 characters. A blank or null value removes it. Supplied by you
isCandidateCurrentlyEmployedByVendor boolean No Cannot be null. -
isCandidateCurrentlyPaidByVendor boolean No Cannot be null. false needs an employer, either sent in the same request or already stored. -
candidateEmployerIfSubcontractedToVendor string No Up to 50 characters. Can be cleared unless the Candidate is not paid by the Vendor. Supplied by you
isCandidateIndependentContractor boolean No Cannot be null. true requires incorporatedOrSelfEmployed in the same request. false clears the contractor type. -
incorporatedOrSelfEmployed integer No 1 Incorporated, 2 1099/Self-Employed. Cannot be null. GET /v2/lookups/candidate-employment-info-if-independent-contractor-yes
wasCandidateEverEmployedByClient boolean No Cannot be null. false clears the four "if yes" fields below, and none of them may be sent with it. -
ifYesWhatType integer No 1 Temporary, 2 Permanent, 3 Both. Can be cleared. GET /v2/lookups/employment-type
lastEmploymentDate date-time No Not the minimum date and not in the future. Can be cleared. Supplied by you
previousEmploymentReasonEnd integer No 1 Terminated, 2 Terminated for Cause, 3 Resigned, 4 Engagement Fulfilled, 5 Unknown. Can be cleared. GET /v2/lookups/previous-employment-end-reason
previousEmploymentDetails string No Up to 254 characters. Can be cleared. Supplied by you
candidateCitizenshipStatus integer No 1 US Citizen, 2 H1B, 3 K1, 4 Green Card, 5 F1, 6 Other, 12 Authorized Canadian Worker, 13 Canadian Citizen, 14 Landed Immigrant, 15 Authorised UK Worker. Can be cleared, which also clears the explanation. Other needs an explanation, either sent in the same request or already stored. GET /v2/lookups/citizenship-status
ifOtherCitizenExplain string No Up to 254 characters. Can be cleared, but not while the status is Other. Supplied by you
rehireFlag boolean No Cannot be null. -
candidateComments string No Up to 254 characters, not blank. Adds a new comment to the Candidate's comment history. Cannot be cleared. Supplied by you
alternateVendorName string No Up to 25 characters. Can be cleared. Supplied by you
vendorCandidateId string No Up to 20 characters. Can be cleared. Supplied by you
vendorCandidateStatus integer No 2 Available, 3 No longer available. Can be cleared. GET /v2/lookups/vendor-candidate-status
clientCandidateStatus integer No Client Region and Parent Client requests only. One of the statuses listed below. Cannot be null. GET /v2/lookups/client-candidate-status
vendorContactUserId integer No Must be an active user of the Candidate's Vendor; 0, negative values and 1 are refused. null removes the contact. GET /v2/users -> userId
vendorRepUserId integer No Must be an active user of the Candidate's Vendor; 0, negative values and 1 are refused. null removes the representative, except on a Vendor request, which cannot clear it. GET /v2/users -> userId
candidateRates object No See Rates. -
candidateSkills object No See Skills. -
candidateAnswers object No See Answers. -
customFieldsDtos array No See Custom fields. GET /v2/customcontent

Client Candidate Status values a Client request can set: 2 Active, 21 Engagement Requested, 5 Interview complete, 22 Make Offer, 4 Need Info, 8 Reject-Duplicate, 12 Reject-Inadequate Info, 13 Reject-Not Available, 9 Reject-Not Qualified, 11 Reject-Rate Issue, 10 Reject-Stronger Cand. Other statuses are set by their own workflows. A Candidate that is Engaged, Engaged - Pending Approval or Engaged - Pending Vend Accept keeps its status; sending the status it already has is accepted.

Employment rules. Sending wasCandidateEverEmployedByClient: false together with ifYesWhatType, lastEmploymentDate, previousEmploymentReasonEnd or a non-blank previousEmploymentDetails is refused. Sending true does not require the "if yes" fields in the same request.

Text fields. Text is cleaned before it is stored. A value with disallowed characters, or markup in a plain-text field, fails the Candidate.

Rates

candidateRates is one object that changes the Candidate's base rate; other rates are recalculated from it. A rate with no value at all means no change. A rate you leave out (null or omitted) keeps its stored value.

Field Type Rules
paymentBasis string Per Hour, Per Week, Per Month, Per Year, Per Day or Per Unit (name or description), or the code 1-5, 7. Optional once the Candidate has a rate; required for a first rate. GET /v2/lookups/payment-basis.
clientRate decimal Not negative.
vendorRate decimal Not negative.
directLaborRate decimal Not negative.
budgetRate decimal Not negative.

Skills

candidateSkills is one object. It carries skillResponse{n}, skillAmountOfExperienceDuration{n}, skillAmountOfExperienceUnits{n} and skillExpertiseRating{n} for n = 1 to 10 (the configured limit may be lower). Slot n answers the Requisition skill whose sequence number is n (a Requisition whose skill sequence numbers skip a value leaves that slot unused).

Answers

candidateAnswers is one object with answer1 to answer5 (the configured limit may be lower). Each answer is up to 1024 characters. An answer can only be mentioned when the Requisition has that question, including when you send it blank. Only the answers you mention change: text sets that answer, null or "" removes it, and an answer you leave out keeps its stored text. "candidateAnswers": null clears all of them, and leaving the field out changes nothing. Any change needs a linked Requisition.

Custom fields

customFieldsDtos is an array of { "fieldNumber": 1, "value": "text" }. Only the fields you send change.

Rules that depend on your organization or permissions

If ... then ... Message What to change
You are a Vendor clientCandidateStatus cannot be changed. ClientCandidateStatus can only be changed by a client request. Leave it out, or call as a Client Region or Parent Client.
You are a Vendor updatedByUserId is required. UpdatedByUserId is required for a Vendor request and must be an active user of the Vendor organization. Send a user of your Vendor.
You are a Vendor vendorRepUserId cannot be cleared. VendorRepUserId cannot be cleared on a Vendor request. Send another user, or leave it out.
You are a Vendor and your Client Region enables only some rate columns for Vendors Only the enabled rate columns can be changed. {Column} is not enabled for Vendor requests under the client's rate configuration. Send only the enabled columns.
The Candidate's Requisition has a rate structure and the Candidate has no stored rate yet The first rate needs paymentBasis and every rate the structure collects at submission. A Vendor sends the columns its Client Region enables and the rest is derived. PaymentBasis is required in CandidateRates when the candidate has no stored rate yet.; {Column} is required for billing rule '{Label}' ({Id}).; {Column} is required in CandidateRates for a Vendor request that supplies a rate. Send the missing values.
The Candidate's Requisition has a rate structure Rates the structure calculates cannot be sent. {Column} for billing rule '{Label}' ({Id}) is calculated ({Factor}) and cannot be supplied. Send only the rates the structure collects.
The rate structure collects no rates at submission A rate cannot be sent. The requisition's rate structure has no billing rule with rates entered at candidate submission, so CandidateRates must be empty. Remove candidateRates.
The Requisition has no rate structure and the Candidate has no stored rate The first rate needs paymentBasis and all four rates. A Vendor sends the columns its Client Region enables instead. PaymentBasis is required in CandidateRates when the candidate has no stored rate yet.; {Column} is required in CandidateRates when the requisition has no rate structure. Send all four rates.
The Candidate already has a rate Only the rates you send change; paymentBasis is optional. - -
The Candidate is Engaged, Engaged - Pending Approval or Engaged - Pending Vend Accept clientCandidateStatus cannot be moved to another status. Candidate {id}'s ClientCandidateStatus cannot be changed while in status '{Status}'. Change the status through the Engagement.
Your request cannot see the Candidate The Candidate fails as not found. The specified CandidateId does not exist in the given ClientOrgId. Use a Candidate in your scope.
The Client Region has required custom fields A required field you send cannot be blank. Required fields you do not send are not checked. Custom field {n} ({Name}) is required. Send a value.

The Not to Exceed rate check that applies when a Candidate is created is not applied here.

Error reference

Per-Candidate messages start with Candidates[n]: , where n is the zero-based position in your array. They appear in data.failed[].errors, and each failed item carries the id (the candidateId you sent). Request-level messages come back as plain text with 400.

Request

Message What it means How to fix
KeyOrgId is required and must be greater than 0. The request reached the API without your Organization id. Check your API Key and Secret.
No Candidate data provided. The array is missing or empty. Send at least one element.
Cannot process more than {n} candidates in a single request. The array is over the maximum. Split into several requests.
Failed to retrieve organization data. (400, 403 or 404) The org parameters do not resolve. A more specific message replaces this when one is available. Check clientOrgId and vendorOrgId.
Candidate {id} is also submitted by Candidates[{n}]; a PATCH names each candidate once. The same candidateId appears twice; the first valid element wins. Send one element per Candidate.
'{value}' is not a valid {Type} code. Accepted: {list}. or Unexpected String value for {Type}; send the numeric code. Accepted: {list}. A code field holds text, a decimal or a number the lookup does not list. The whole request is refused with a validation problem body. Send a number from the list.
Candidates[n]: Duplicate field '{field}' in request. The element has the same field twice. Only that element fails. Send each field once.

Candidate and users

Message What it means How to fix
CandidateId is required and must be greater than 0. candidateId is 0 or missing. Send the id.
The specified CandidateId does not exist in the given ClientOrgId. No such Candidate in your reach (including another Vendor's Candidate for a Vendor request). Check the id and org parameters.
The specified UpdatedByUserId does not exist in the given ClientOrgId. Client request: the user is not an active user of the Candidate's Client Region. Use a user from GET /v2/users.
The specified UpdatedByUserId is not an active user of the calling organization. Vendor request: the user is not an active user of your Vendor. Use a user of your Vendor.
UpdatedByUserId is required for a Vendor request and must be an active user of the Vendor organization. Vendor request with updatedByUserId missing, 0 or 1. Send a user of your Vendor.
VendorRepUserId cannot be cleared on a Vendor request. Vendor request with vendorRepUserId: null. Send another user, or leave it out.
The specified VendorContactUserId does not exist in the given VendorOrgId. Not an active user of the Vendor (0, negatives and 1 always fail). Use a user of the Vendor.
The specified VendorRepUserId does not exist in the given VendorOrgId. Not an active user of the Vendor (0, negatives and 1 always fail). Use a user of the Vendor.
Failed to update candidate {id}: {reason} The save failed; nothing was kept. Fix the reason and resend.
Failed to update candidate {id}: Custom fields were not written: {reasons} A custom value was refused when written. The whole Candidate is rolled back. In data.failed[].errors the text reads Candidates[n]: Failed to update candidate {id}: Custom fields were not written: {reason1}; {reason2}, with the reasons joined by ; . The reasons are listed under Custom fields below. Fix the values.
The item could not be processed because of an unexpected error. Unexpected failure for that Candidate. Resend; contact support if it repeats.
Candidates[n]: {Field} contains characters that are not allowed. The text holds disallowed characters. Remove them.
Candidates[n]: {Field} must be plain text and cannot contain markup. Markup found in a plain-text field. Send plain text.

Fields

Message What it means How to fix
{Field} cannot be null; send a value or omit it. null sent for firstName, lastName, isCandidateCurrentlyEmployedByVendor, isCandidateCurrentlyPaidByVendor, isCandidateIndependentContractor, incorporatedOrSelfEmployed, wasCandidateEverEmployedByClient, rehireFlag or clientCandidateStatus. Send a value or leave it out.
{Field} cannot be blank. Blank FirstName, LastName or CandidateComments. Send text.
{Field} cannot exceed {n} characters. A text field is too long. Shorten it.
CandidateComments cannot be cleared through PATCH. candidateComments is null. Leave it out.
Email is not a valid email address. email is not a valid address. Send a valid address.
Email cannot be null or empty. email is null or empty. Send an address or leave it out.
IfOtherCitizenExplain is required when citizenship status is OTHER. The status is (or becomes) Other with no explanation, sent or stored. Send ifOtherCitizenExplain.
CandidateEmployerIfSubcontractedToVendor is required when candidate is not currently paid by vendor. The Candidate is (or becomes) not paid by the Vendor with no employer, sent or stored. Send candidateEmployerIfSubcontractedToVendor.
InterviewDate of {date} is invalid. The minimum date. Send a real date.
A IncorporatedOrSelfEmployed value is required when candidate is an independent contractor. isCandidateIndependentContractor is true without incorporatedOrSelfEmployed. Send it.
{Field} must not be supplied unless WasCandidateEverEmployedByClient is true. {Field} is IfYesWhatType, LastEmploymentDate, PreviousEmploymentReasonEnd or PreviousEmploymentDetails, sent with wasCandidateEverEmployedByClient: false. Remove it, or set the flag to true.
LastEmploymentDate of {date} is invalid. The minimum date, or a date in the future. Send a past date.
ClientCandidateStatus '{Status}' cannot be set through PATCH /candidates. Allowed values: {list}. The status is not one a Client request can set here. Use an allowed value.

Rates

Message What it means How to fix
PaymentBasis '{value}' in CandidateRates is not a valid payment basis. Not recognized. Use the lookup.
Rate values in CandidateRates must not be negative. A negative rate. Send 0 or more.

The other rate messages are in the organization table above.

Skills and answers

Message What it means How to fix
Skill responses were submitted but the candidate is not linked to a requisition. The Candidate has no Requisition. Do not send skills.
Question responses were submitted but the candidate is not linked to a requisition. The Candidate has no Requisition. Do not send answers.
CandidateSkills cannot be cleared because the candidate has no linked requisition. candidateSkills is null on a Candidate with no Requisition. Leave it out.
CandidateAnswers cannot be cleared because the candidate has no linked requisition. candidateAnswers is null on a Candidate with no Requisition. Leave it out.
SkillResponse{n} was submitted but the requisition defines only {m} skill(s). The slot is beyond the Requisition's skills (the slot has no skill with that sequence number), even when sent blank. Remove it.
SkillAmountOfExperienceDuration{n}, SkillAmountOfExperienceUnits{n} and SkillExpertiseRating{n} need a SkillResponse{n} value; ... The slot has a duration, units or rating but skillResponse{n} is blank or left out. Send skillResponse{n} with a value, or null to remove the skill.
Answer{n} was submitted but the requisition defines only {m} question(s). The slot is beyond the Requisition's questions, even when sent blank. Remove it.
SkillResponse{n} is required when the requisition skill type is mandatory. Mandatory skill unanswered. Answer it.
SkillResponse{n} has an invalid value. Not a response value. Use the lookup.
SkillAmountOfExperienceUnits{n} is required when SkillAmountOfExperienceDuration{n} is provided. Duration without units. Send units.
SkillAmountOfExperienceUnits{n} has an invalid value. Not a unit. Use the lookup.
Answer{n} exceeds the maximum length of 1024 characters. Too long. Shorten.

When the deployment enforces strict skill submission, Skill {n} ('{Name}'): experience must be submitted in {Required} but {Submitted} was provided. and Skill {n} ('{Name}'): a minimum of {Min} {Unit} of experience is required but {Submitted} {Unit} was submitted. also apply.

Custom fields

Message What it means How to fix
CustomFieldsDtos cannot be cleared through PATCH. Send a field with a null value to clear that field. customFieldsDtos is null. Clear single fields instead.
Custom field {n} was submitted more than once. Duplicate fieldNumber. Send each once.
No custom fields are configured for instance {id}, but {n} field(s) were submitted. The Client Region has none. Remove them.
Too many custom fields submitted. Client has {n} field(s) configured, but {m} field(s) were provided. More values than fields. Send fewer.
Custom field {n} is not defined for this organization. Unknown fieldNumber. Use the customcontent lookup.
Custom field {n} ({Name}) value '{value}' is not a valid option. Valid options are: {list} Value not in the list. Use an option.
Custom field {n} ({Name}) is required. A required field was sent blank. Send a value.

A value can still be refused when it is written, after the checks above. The reasons then appear in the Custom fields were not written: ... message, for example:

{label} is the field's name in quotes, or field {n} when it has no name.

Examples

IDs are placeholders.

Minimal valid request

PATCH /v2/candidates

[
  { "candidateId": 9001, "updatedByUserId": 3001, "availability": "Immediately" }
]

200:

{
  "success": true,
  "statusCode": 200,
  "message": "All 1 items succeeded.",
  "data": {
    "succeeded": [ { "requestIndex": 0, "id": 9001, "outcome": "updated" } ],
    "failed": [],
    "succeededCount": 1,
    "failedCount": 0
  }
}

Clear a value and change a status

[
  {
    "candidateId": 9001,
    "updatedByUserId": 3001,
    "interviewedBy": null,
    "clientCandidateStatus": 5,
    "candidateComments": "Interview went well."
  }
]

Change a rate

[ { "candidateId": 9001, "updatedByUserId": 3001, "candidateRates": { "clientRate": 85.00 } } ]

A Vendor request sends only the columns its Client Region enables for Vendors.

Not previously employed

[ { "candidateId": 9001, "wasCandidateEverEmployedByClient": false } ]

Clears the previous-employment fields.

Change skills and answers

[
  {
    "candidateId": 9001,
    "candidateSkills": { "skillResponse1": "Meets", "skillAmountOfExperienceDuration1": 3, "skillAmountOfExperienceUnits1": "Years" },
    "candidateAnswers": { "answer1": "Available in two weeks." }
  }
]

Sets skill 1 and answer 1 and leaves every other skill and answer as stored. To remove only skill 2 and answer 2:

[
  {
    "candidateId": 9001,
    "candidateSkills": { "skillResponse2": null },
    "candidateAnswers": { "answer2": null }
  }
]

Partial success 207

The second element sets wasCandidateEverEmployedByClient to false and also sends lastEmploymentDate.

{
  "success": true,
  "statusCode": 207,
  "message": "1 of 2 items succeeded.",
  "errors": [
    "Candidates[1]: LastEmploymentDate must not be supplied unless WasCandidateEverEmployedByClient is true."
  ],
  "data": {
    "succeeded": [ { "requestIndex": 0, "id": 9001, "outcome": "updated" } ],
    "failed": [
      {
        "firstName": null,
        "lastName": null,
        "vendorOrgId": 2001,
        "clientOrgId": 1001,
        "requestIndex": 1,
        "id": 9002,
        "errors": [ "Candidates[1]: LastEmploymentDate must not be supplied unless WasCandidateEverEmployedByClient is true." ]
      }
    ],
    "succeededCount": 1,
    "failedCount": 1
  }
}

Failure 400

No Candidate updated: message is No items succeeded., data.succeeded is empty and every element is in data.failed. A failure while resolving the org parameters returns 400, 403 or 404.

Create vs PATCH, single vs batch, request types

API v2 · Last updated 2026-11-25