POST /v2/candidates — User Guide
1. Overview
POST /v2/candidates submits one or more Candidates against Requisitions. Each Candidate is one person submitted for one Requisition. The body is an array, and each item succeeds or fails on its own.
| Who can call it | What they can submit |
|---|---|
| Vendor | Candidates for Requisitions it has been given access to, in Client Regions it is linked to. |
| Client Region | Candidates for its own Requisitions: a Direct Candidate, or a Candidate for a linked Vendor (vendorOrgId). |
| Parent Client | Candidates for Requisitions of its Client Regions, the same two ways as a Client Region. |
- Batch limit: 100 Candidates per request.
- The Requisition must be Open.
- A new Candidate starts in Client Candidate Status New. If the Requisition has skills and you send no
candidateSkills, it starts in Incomplete instead. - The person is linked to a user login. An existing login with the same name and email is reused; otherwise one is created. The same person sent twice in one request gets one login.
- A Candidate with the same name and email as an existing Candidate for the same Client Region and Vendor is still created and flagged as a possible duplicate. It is not rejected.
| Status | When |
|---|---|
201 Created |
Every Candidate was created. |
207 Multi-Status |
Some Candidates were created and some failed. |
400 Bad Request |
Nothing was created: the whole request was rejected (section 5), the query-string Organizations are not a valid combination, or every item failed. |
403 Forbidden |
A Vendor sent a different Vendor's id in vendorOrgId together with clientOrgId. |
404 Not Found |
Your Organization cannot be found. |
2. Before you start
- 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 this is a Parent Client, Client Region or Vendor request. You do not send it as a parameter.
- In error messages,
{keyOrgId}is the id of the Organization tied to your API Key and Secret. clientOrgId(query, optional) narrows the request to one Client Region. A Parent Client or Vendor can send it, and every Requisition in the body must then belong to that Client Region. A Client Region leaves it out.vendorOrgId(query, optional) is for Parent Client and Client Region requests. It submits the Candidates for that Vendor, which must be linked to the Requisition's Client Region. Leave it out to submit Direct Candidates. A Vendor request does not send it.- The body is a JSON array, even for one Candidate.
- Item error messages name the item by its position in your array, counting from zero:
Candidates[0]: ...,Candidates[1]: .... - Fields that take a code (
engagementType,candidateCitizenshipStatus,incorporatedOrSelfEmployed,typeOfClientEmployment,whyEmploymentEndReason) take the number only. Text such as"US Citizen"or"1"is rejected.
3. Request body
Candidate (each array item)
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
requisitionId |
integer | Yes | Greater than 0. The Requisition must be Open and belong to a Client Region you can submit to (section 4). | GET /v2/requisitions → requisitionId |
firstName |
text | Yes | Up to 25 characters. Plain text. | Supplied by you |
middleInitial |
text | No | 1 character. Plain text. | Supplied by you |
lastName |
text | Yes | Up to 50 characters. Plain text. | Supplied by you |
email |
text | Yes | A valid email address, up to 100 characters. | Supplied by you |
ssn |
text | No | Up to 9 characters. Stored encrypted. | Supplied by you |
availability |
text | No | Up to 50 characters. Plain text. | Supplied by you |
vendorCandidateId |
text | No | Up to 20 characters. Your own reference for the Candidate. | Supplied by you |
engagementType |
integer | Yes | 1 Contract, 2 Contract To Permanent, 3 Permanent. It must be enabled for the Client Region and for the Requisition. |
GET /v2/lookups/engagement-type → value |
isCandidateCurrentlyEmployedByVendor |
true/false | No | Omitted means false. |
Supplied by you |
isCandidateCurrentlyPaidByVendor |
true/false | No | Omitted means false. When false, candidateEmployerIfSubcontractedToVendor is required. |
Supplied by you |
candidateEmployerIfSubcontractedToVendor |
text | When isCandidateCurrentlyPaidByVendor is false |
Up to 50 characters. Plain text. | Supplied by you |
isCandidateIndependentContractor |
true/false | No | Omitted means false. When true, incorporatedOrSelfEmployed is required. |
Supplied by you |
incorporatedOrSelfEmployed |
integer | When an independent contractor | 1 Incorporated, 2 1099/Self-Employed. Not stored when the Candidate is not an independent contractor. |
GET /v2/lookups/candidate-employment-info-if-independent-contractor-yes → value |
wasCandidateEverEmployedByClient |
true/false | No | Omitted means false. When true, the next four fields are required. When false, they must be left out. |
Supplied by you |
typeOfClientEmployment |
integer | When previously employed by the client | 1 Temporary, 2 Permanent, 3 Both. |
GET /v2/lookups/employment-type → value |
lastEmploymentDate |
date | When previously employed by the client | Must be in the past. | Supplied by you |
whyEmploymentEndReason |
integer | When previously employed by the client | 1 Terminated, 2 Terminated for Cause, 3 Resigned, 4 Engagement Fulfilled, 5 Unknown. |
GET /v2/lookups/previous-employment-end-reason → value |
previousEmploymentDetails |
text | When previously employed by the client | Up to 254 characters. Plain text. | Supplied by you |
candidateCitizenshipStatus |
integer | Yes | A number from Citizenship status values. | GET /v2/lookups/citizenship-status → value |
ifOtherCitizenExplain |
text | When candidateCitizenshipStatus is 6 (Other) |
Up to 254 characters. Plain text. | Supplied by you |
summaryOfQualifications |
text | No | Up to 1024 characters. Plain text. | Supplied by you |
candidateComments |
text | No | Up to 254 characters. Plain text. | Supplied by you |
candidateRates |
object | Depends on the Requisition | See candidateRates. |
— |
candidateSkills |
object | No (see candidateSkills) |
See candidateSkills. |
— |
candidateAnswers |
object | When the Requisition has questions | See candidateAnswers. |
— |
customFieldsDtos |
array | When the Client Region has required custom fields | See customFieldsDtos. |
— |
Every text value, including those inside candidateSkills, candidateAnswers and customFieldsDtos, is rejected if it has disallowed characters or markup, and otherwise cleaned before lengths are checked and it is stored. ssn is not changed.
Citizenship status values
| Number | Text |
|---|---|
| 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 |
candidateRates
One rate for the Candidate. It is the rate of the Requisition's base billing rule; you do not name a billing rule.
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
paymentBasis |
text | See below | The number ("1"), the name (PerHour) or the text (Per Hour), not case-sensitive. Values: 1 Per Hour, 2 Per Week, 3 Per Month, 4 Per Year, 5 Per Day, 7 Per Unit. |
GET /v2/lookups/payment-basis |
clientRate |
number | See below | Not negative. | Supplied by you |
vendorRate |
number | See below | Not negative. | Supplied by you |
directLaborRate |
number | See below | Not negative. | Supplied by you |
budgetRate |
number | See below | Not negative. | Supplied by you |
What you send depends on the Requisition and on the request:
| Requisition | Parent Client or Client Region request | Vendor request |
|---|---|---|
| Has a rate structure | candidateRates is required, with paymentBasis. Send every rate the base billing rule enters at candidate submission. Do not send a rate the rule calculates. |
candidateRates is required. Send every rate the Client Region shares with Vendors that the base billing rule enters, and no rate it does not share. paymentBasis is optional and defaults to the base billing rule's basis. If none of the shared rates is entered by the base billing rule, candidateRates may be left out. |
| Has no rate structure | candidateRates is optional. paymentBasis defaults to Per Hour. |
candidateRates is optional. If you send it, include every rate the Client Region shares with Vendors, and no others. paymentBasis defaults to Per Hour. |
- When a Client Region shares no rates with Vendors, a Vendor sends
vendorRateanddirectLaborRate. - A rate a Vendor cannot send is stored as
0.00. The other billing rules are calculated from the base billing rule's rate. - If the Requisition names a rate structure with no active billing rules,
candidateRatesis required as one complete rate: a Parent Client or Client Region request sendspaymentBasisand all four rates; a Vendor request sends every rate the Client Region shares with Vendors. - If the Requisition has a Not to Exceed rate in the same payment basis,
clientRatemust not be above it.
candidateSkills
One object with up to ten skill slots. Slot 1 answers the Requisition's skill number 1, slot 2 its skill number 2, and so on.
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
skillResponse1 ... skillResponse10 |
text | For a skill the Requisition marks as Required | Not At All, Close, Meets or Exceeds; the name (NotAtAll) or the number ("1"–"4"). |
GET /v2/lookups/skill-experience-response |
skillAmountOfExperienceDuration1 ... 10 |
integer | No | When greater than 0, the matching units field is required. |
Supplied by you |
skillAmountOfExperienceUnits1 ... 10 |
text | When a duration is sent | Days, Weeks, Months or Years, or the number. |
GET /v2/lookups/skill-experience-duration |
skillExpertiseRating1 ... 10 |
integer | No | Supplied by you |
- A slot can carry a value only if the Requisition has a skill with that number.
- If the Requisition has skills and you leave
candidateSkillsout, the Candidate is created in status Incomplete. Fill in the skills later withPATCH /v2/candidates. - When the service runs strict skill matching, the units must match the Requisition's units and the duration must meet its minimum.
candidateAnswers
| Field | Type | Required | Rules |
|---|---|---|---|
answer1 ... answer5 |
text | — | Up to 1024 characters each. answer1 answers the Requisition's question number 1, and so on. |
- When the Requisition has questions,
candidateAnswersmust contain at least one answer. - An answer slot can carry a value only if the Requisition has a question with that number.
customFieldsDtos
An array of { "fieldNumber": ..., "value": ... }.
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
fieldNumber |
integer | Yes | A Candidate custom field defined for the Requisition's Client Region. Each number at most once. | GET /v2/customcontent?entityTypeCode=1&activeOnly=true |
value |
text | For required fields | List field: the text of one of the list's items, not case-sensitive. Date field: a date after 1900. Other fields: up to 254 characters. A blank value counts as not sent. | List items: GET /v2/customcontent/listitems?entityTypeCode=1 |
Every required custom field of the Client Region needs a value, even when you leave customFieldsDtos out.
4. Rules that depend on your Organization or permissions
| If ... | Then ... | What to change |
|---|---|---|
| The Organization tied to your API Key and Secret cannot be found | 404 Organization not found. |
Check your API Key and Secret. |
| Your Organization is not active | 400 Organization is not active. |
Ask an administrator. |
clientOrgId / vendorOrgId are not a valid combination for your Organization |
400 with the reason, for example Invalid keyOrgId & clientOrgId combo., The provided clientOrgId {clientOrgId} is not a valid region under parent organization {keyOrgId}. or A vendor request cannot filter on VendorOrgId. Try filtering via ClientOrgId. |
Fix or remove the parameter. |
A Vendor request sends another Vendor's id in vendorOrgId with clientOrgId |
403 Vendors cannot specify a different vendorOrgId. |
Remove vendorOrgId. |
| The Requisition does not exist | Item fails: Requisition {requisitionId} does not exist. |
Check requisitionId. |
| The Requisition belongs to a Client Region you cannot reach | Item fails: Requisition {requisitionId} does not belong to an organisation accessible on this request. |
Vendor: you must be linked to the Client Region. Parent Client: it must be one of your Client Regions. Client Region: it must be your own Requisition. |
You sent clientOrgId and the Requisition is in another Client Region |
Item fails: Requisition {requisitionId} is not under ClientOrgId {clientOrgId}. |
Remove clientOrgId, or send the item in a separate request. |
| A Vendor request and the Requisition has not been released to you | Item fails: Vendor {keyOrgId} does not have access to Requisition {requisitionId}. |
Ask the client to release the Requisition to you. |
| The Requisition is not Open | Item fails: Requisition {requisitionId} is in {status} status and cannot accept candidates. |
Submit when the Requisition is Open. |
You sent vendorOrgId and that Vendor is not linked to the Requisition's Client Region |
Item fails: VendorOrgId {vendorOrgId} is not related to your organisation. |
Pick a Vendor linked to the Client Region. |
| No active relationship exists for the Client Region and Vendor (for a Direct Candidate: the Client Region with itself) | Item fails: No active organisation relationship for ClientOrgId {clientOrgId} / VendorOrgId {vendorOrgId}. |
Ask an administrator to set up the relationship. |
| The engagement type is not enabled for the Client Region | Item fails: The EngagementType {engagementType} is not enabled for the given ClientOrgId {clientOrgId}. |
Send an engagement type the Client Region uses. |
| The engagement type is not enabled on the Requisition | Item fails: The EngagementType {engagementType} is not enabled for RequisitionId {requisitionId}. |
Send an engagement type the Requisition allows. |
| A Vendor request sends a rate the Client Region does not share with Vendors | Item fails: {rate} is not enabled for Vendor requests under the client's rate configuration. |
Remove that rate. |
| A Vendor request leaves out a rate the Client Region shares with Vendors | Item fails: {rate} is required in CandidateRates for a Vendor request that supplies a rate. |
Add that rate. |
| The Requisition's rate structure calculates a rate you sent | Item fails: {rate} for billing rule '{rule name}' ({rule id}) is calculated ({factor type}) and cannot be supplied. |
Remove that rate. |
| The Requisition's rate structure enters a rate you left out | Item fails: {rate} is required for billing rule '{rule name}' ({rule id}). |
Add that rate. |
| The Requisition's rate structure enters no rate at candidate submission, and you sent a rate | Item fails: The requisition's rate structure has no billing rule with rates entered at candidate submission, so CandidateRates must be empty. |
Leave candidateRates out. |
The Requisition has a Not to Exceed rate and clientRate is above it |
Item fails: The ClientRate {clientRate} in CandidateRates is above the Not to Exceed rate {limit} of Requisition {requisitionId}. |
Lower clientRate. |
| The Client Region has no Candidate custom fields, and you sent values | Item fails: No custom fields are configured for instance {clientOrgId}, but {count} field(s) were submitted. |
Leave customFieldsDtos out. |
| The Client Region has a required Candidate custom field | Item fails without it: Custom field {fieldNumber} ({label}) is required. |
Send a value for it. |
5. Error reference
Whole request rejected (nothing created)
These return before any item is processed.
Plain-text body, 400:
| 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 empty. | Send at least one Candidate. |
Cannot process more than 100 candidates in a single request. |
The array has more than 100 items. | Split the request. |
Validation problem body, 400 (title One or more validation errors occurred., with an errors object keyed by item position and field):
| Cause | How to fix |
|---|---|
firstName, lastName or email is missing, null or "". |
Send it. |
A code field has text, a decimal or an unknown number. The message is '{value}' is not a valid {type} code. Accepted: ... or Unexpected String value for {type}; send the numeric code. Accepted: ..., listing every accepted number and its text. |
Send a number from the list. |
The body is not valid JSON, is not an array, or a value has the wrong type (for example text in requisitionId). |
Correct the JSON. |
One bad item rejects the whole request here, including valid items in the same array.
Organization could not be resolved (400, 403 or 404)
{ "data": null, "success": false, "message": "Organization not found.", "statusCode": 404, "errors": null, "count": null }
The messages are listed in section 4.
Item errors (207, or 400 when every item fails)
Every message starts with the item's position, for example Candidates[2]: . One item can return several messages. Checks run in stages; an item that fails a stage reports only that stage's messages, so fixing them can reveal later ones.
Field values
| Message | What it means | How to fix |
|---|---|---|
Duplicate field '{field}' in request. |
The item has the same field twice. | Send each field once. |
{field} contains characters that are not allowed. |
A text field has control or other disallowed characters. Nested fields are named like CandidateSkills.SkillResponse1 or CustomFieldsDtos[0].Value. |
Remove them. |
{field} must be plain text and cannot contain markup. |
A text field contains HTML or similar markup. | Send plain text. |
RequisitionId is required and must be greater than 0. |
requisitionId is missing, 0 or negative. |
Send the Requisition id. |
EngagementType is required. |
engagementType is missing, 0 or negative. |
Send 1, 2 or 3. |
The Engagement type is not valid. |
engagementType is not 1, 2 or 3. |
Send 1, 2 or 3. |
FirstName is required. / LastName is required. / Email is required. |
The value is blank after cleaning. | Send a value. |
FirstName cannot exceed 25 characters. |
Too long. | Shorten it. |
MiddleInitial cannot exceed 1 character. |
Too long. | Send one character. |
LastName cannot exceed 50 characters. |
Too long. | Shorten it. |
Email cannot exceed 100 characters. |
Too long. | Shorten it. |
Email is not a valid email address. |
Not an email address. | Correct it. |
SSN cannot exceed 9 characters. |
Too long. | Send digits only. |
Availability cannot exceed 50 characters. |
Too long. | Shorten it. |
VendorCandidateId cannot exceed 20 characters. |
Too long. | Shorten it. |
CandidateEmployerIfSubcontractedToVendor cannot exceed 50 characters. |
Too long. | Shorten it. |
PreviousEmploymentDetails cannot exceed 254 characters. |
Too long. | Shorten it. |
IfOtherCitizenExplain cannot exceed 254 characters. |
Too long. | Shorten it. |
SummaryOfQualifications cannot exceed 1024 characters. |
Too long. | Shorten it. |
CandidateComments cannot exceed 254 characters. |
Too long. | Shorten it. |
Employment and citizenship
| Message | What it means | How to fix |
|---|---|---|
CandidateEmployerIfSubcontractedToVendor is required when candidate is not currently paid by vendor. |
isCandidateCurrentlyPaidByVendor is false or missing. |
Send the employer, or set the flag to true. |
A IncorporatedOrSelfEmployed value is required when candidate is an independent contractor. |
isCandidateIndependentContractor is true without a type. |
Send incorporatedOrSelfEmployed. |
TypeOfClientEmployment is required when candidate was previously employed by client. |
Missing while wasCandidateEverEmployedByClient is true. |
Send it. |
LastEmploymentDate is required when candidate was previously employed by client. |
Missing. | Send it. |
LastEmploymentDate must be in the past. |
The date is now or later. | Send an earlier date. |
EmploymentEndReason is required when candidate was previously employed by client. |
whyEmploymentEndReason is missing. |
Send it. |
PreviousEmploymentDetails is required when candidate was previously employed by client. |
Missing or blank. | Send it. |
{field} must not be supplied unless WasCandidateEverEmployedByClient is true. |
TypeOfClientEmployment, LastEmploymentDate, WhyEmploymentEndReason or PreviousEmploymentDetails was sent while the flag is false or missing. |
Remove the field, or set the flag to true. |
CandidateCitizenshipStatus is required. Accepted values: US Citizen, H1B, K1, Green Card, F1, Other, Authorized Canadian Worker, Canadian Citizen, Landed Immigrant, Authorised UK Worker. |
candidateCitizenshipStatus is missing or null. |
Send the number from the table in section 3. |
IfOtherCitizenExplain is required when citizenship status is OTHER. |
Status 6 (Other) without an explanation. |
Send ifOtherCitizenExplain. |
Requisition and Organizations
| Message | What it means | How to fix |
|---|---|---|
Requisition {requisitionId} does not exist. and the other Requisition, Organization and engagement type messages |
See section 4. | See section 4. |
Skills and answers
| Message | What it means | How to fix |
|---|---|---|
SkillResponse{n} is required when the requisition skill type is mandatory. |
Skill n of the Requisition is Required and has no response. |
Send skillResponse{n}. |
SkillResponse{n} has an invalid value. |
Not one of the four responses. | Send Not At All, Close, Meets or Exceeds. |
SkillAmountOfExperienceUnits{n} is required when SkillAmountOfExperienceDuration{n} is provided. |
A duration without units. | Send the units. |
SkillAmountOfExperienceUnits{n} has an invalid value. |
Units not recognized. | Send Days, Weeks, Months or Years. |
Skill {n} ('{skill}'): experience must be submitted in {units} but {sent units} was provided. |
Strict skill matching only: the units differ from the Requisition's. | Send the Requisition's units. |
Skill {n} ('{skill}'): a minimum of {minimum} {units} of experience is required but {sent} {units} was submitted. |
Strict skill matching only: below the Requisition's minimum. | Check the duration. |
SkillResponse{n} was submitted but the requisition defines only {count} skill(s). |
Slot n has a value and the Requisition has no skill n. |
Remove the slot. |
Candidate Answers are required for all Requisition questions. |
The Requisition has questions and candidateAnswers is missing or has no answer. |
Send candidateAnswers. |
Answer{n} exceeds the maximum length of 1024 characters. |
An answer is too long. | Shorten it. |
Answer{n} was submitted but the requisition defines only {count} question(s). |
Slot n has a value and the Requisition has no question n. |
Remove the slot. |
Rates
| Message | What it means | How to fix |
|---|---|---|
Invalid or missing PaymentBasis in CandidateRates. |
On a Requisition with a rate structure, paymentBasis is missing (Parent Client or Client Region request) or not recognized. |
Send a value from the candidateRates table. |
PaymentBasis '{value}' in CandidateRates is not a valid payment basis. |
On a Requisition with no rate structure, paymentBasis is not recognized. |
Send a value from the candidateRates table. |
Rate values in CandidateRates must not be negative. |
A rate is below zero. | Send 0 or more. |
CandidateRates must contain a rate when the requisition has a rate structure. |
candidateRates is missing or empty. |
Send it. |
CandidateRates must contain one rate when the requisition has no rate structure. |
The Requisition's rate structure has no active billing rules and candidateRates is missing or empty. |
Send one complete rate. |
{rate} is required in CandidateRates when the requisition has no rate structure. |
As above, and a Parent Client or Client Region request left out one of the four rates. | Send all four rates. |
| The rate structure and Vendor rate messages | See section 4. | See section 4. |
Custom fields
| Message | What it means | How to fix |
|---|---|---|
Custom field {fieldNumber} was submitted more than once. |
Duplicate fieldNumber. |
Send each field once. |
Custom field {fieldNumber} is not defined for this organization. |
No such Candidate custom field in the Client Region. | Check fieldNumber. |
Too many custom fields submitted. Client has {defined} field(s) configured, but {sent} field(s) were provided. |
More values than fields. | Remove the extras. |
Custom field {fieldNumber} ({label}) value '{value}' is not a valid option. Valid options are: '{option}', ... |
Not one of the list's items. | Send one of the listed options. |
Custom field '{label}' has an invalid or unparseable date value '{value}'. |
A date field has a value that is not a date. | Send a date. |
Custom field '{label}' value is {length} characters; the maximum is 254. |
Too long. | Shorten it. |
Custom field {fieldNumber} ({label}) is required. |
A required custom field has no value. | Send a value. |
Creation
| Message | What it means | How to fix |
|---|---|---|
Failed to create user account: {reason} |
The person's user login could not be created. | Retry; if it repeats, contact support. |
Failed to create candidate: {reason} |
The Candidate could not be saved. | Retry; if it repeats, contact support. |
The item could not be processed because of an unexpected error. |
An unexpected fault. Other items are not affected. | Retry the item; if it repeats, contact support. |
6. Examples
Minimal valid request (Direct Candidate)
A Client Region submitting to its own Open Requisition, which has no rate structure, skills, questions or required custom fields.
POST /v2/candidates
Content-Type: application/json
[
{
"requisitionId": 3001,
"firstName": "Jane",
"lastName": "Sample",
"email": "jane.sample@example.com",
"engagementType": 1,
"isCandidateCurrentlyEmployedByVendor": true,
"isCandidateCurrentlyPaidByVendor": true,
"candidateCitizenshipStatus": 1
}
]
201 Created
{
"data": {
"succeeded": [
{ "userId": 4001, "requestIndex": 0, "id": 5001, "outcome": "created" }
],
"failed": [],
"succeededCount": 1,
"failedCount": 0
},
"success": true,
"message": "All 1 items succeeded.",
"statusCode": 201,
"errors": null,
"count": null
}
id is the new candidateId; userId is the person's user login.
Vendor submission with rates, skills, answers and a custom field
Vendor 2001 submitting to a Requisition in Client Region 1001. The Client Region shares the Client Rate and Vendor Rate with Vendors, and the Requisition has one skill, one question and custom field 1.
POST /v2/candidates?clientOrgId=1001
[
{
"requisitionId": 3002,
"firstName": "Sam",
"lastName": "Example",
"email": "sam.example@example.com",
"vendorCandidateId": "V-123",
"engagementType": 1,
"isCandidateCurrentlyEmployedByVendor": true,
"isCandidateCurrentlyPaidByVendor": true,
"candidateCitizenshipStatus": 4,
"summaryOfQualifications": "Ten years of .NET development.",
"candidateRates": { "paymentBasis": "Per Hour", "clientRate": 95.00, "vendorRate": 80.00 },
"candidateSkills": {
"skillResponse1": "Meets",
"skillAmountOfExperienceDuration1": 5,
"skillAmountOfExperienceUnits1": "Years"
},
"candidateAnswers": { "answer1": "Available from 1 December." },
"customFieldsDtos": [ { "fieldNumber": 1, "value": "B-77" } ]
}
]
201 Created, same shape as above.
Previously employed by the client
[
{
"requisitionId": 3001,
"firstName": "Alex",
"lastName": "Sample",
"email": "alex.sample@example.com",
"engagementType": 1,
"isCandidateCurrentlyEmployedByVendor": true,
"isCandidateCurrentlyPaidByVendor": false,
"candidateEmployerIfSubcontractedToVendor": "Example Subcontractor Ltd",
"wasCandidateEverEmployedByClient": true,
"typeOfClientEmployment": 1,
"lastEmploymentDate": "2024-06-30",
"whyEmploymentEndReason": 4,
"previousEmploymentDetails": "Six-month contract",
"candidateCitizenshipStatus": 6,
"ifOtherCitizenExplain": "Work permit holder"
}
]
Partial success (207)
Two items. The second targets a Requisition that does not exist.
207 Multi-Status
{
"data": {
"succeeded": [
{ "userId": 4001, "requestIndex": 0, "id": 5001, "outcome": "created" }
],
"failed": [
{
"firstName": "Alex",
"lastName": "Sample",
"vendorOrgId": null,
"clientOrgId": null,
"requestIndex": 1,
"id": null,
"errors": [ "Candidates[1]: Requisition 9999 does not exist." ]
}
],
"succeededCount": 1,
"failedCount": 1
},
"success": true,
"message": "1 of 2 items succeeded.",
"statusCode": 207,
"errors": [ "Candidates[1]: Requisition 9999 does not exist." ],
"count": null
}
errors at the top level repeats every item message, in item order. vendorOrgId and clientOrgId on a failed item are filled in only once the item got past the Requisition and Organization checks.
Every item fails (400)
One item with isCandidateCurrentlyPaidByVendor left out and no employer.
400 Bad Request
{
"data": {
"succeeded": [],
"failed": [
{
"firstName": "Jane",
"lastName": "Sample",
"vendorOrgId": null,
"clientOrgId": null,
"requestIndex": 0,
"id": null,
"errors": [ "Candidates[0]: CandidateEmployerIfSubcontractedToVendor is required when candidate is not currently paid by vendor." ]
}
],
"succeededCount": 0,
"failedCount": 1
},
"success": false,
"message": "No items succeeded.",
"statusCode": 400,
"errors": [ "Candidates[0]: CandidateEmployerIfSubcontractedToVendor is required when candidate is not currently paid by vendor." ],
"count": null
}
Whole request rejected
The minimal body with "candidateCitizenshipStatus": "US Citizen" returns 400 with a validation problem body naming candidateCitizenshipStatus on item [0]. No item is created, including valid items in the same array.
7. Differences
By request type
| Parent Client | Client Region | Vendor | |
|---|---|---|---|
| Requisitions it can use | Those of its Client Regions | Its own | Those released to it, in Client Regions it is linked to |
clientOrgId |
Optional; every Requisition must then be in that Client Region | Leave out | Optional; every Requisition must then be in that Client Region |
vendorOrgId |
Optional: submits for that Vendor. Left out: Direct Candidate | Same as Parent Client | Do not send |
candidateRates on a Requisition with a rate structure |
Rates the base billing rule enters, with paymentBasis |
Same as Parent Client | Rates the Client Region shares with Vendors; paymentBasis optional |
| Engagement types checked against | The Requisition's Client Region and the Requisition | The Client Region and the Requisition | The Requisition's Client Region and the Requisition |
POST compared with PATCH
| POST | PATCH | |
|---|---|---|
| Identifies the Candidate by | requisitionId (a new Candidate) |
candidateId |
| Required custom fields | Every required field needs a value, even when customFieldsDtos is left out |
Only required fields you send must be non-blank |
paymentBasis |
Required for a Parent Client or Client Region request against a rate structure | Optional once the Candidate has a rate |
| Mandatory skills | Checked against the skills you send | Checked against the skills stored after your change |
Single item compared with a batch
There is no single-object form; send an array of one. Items are checked independently, and one bad item never blocks the others, except for the whole-request checks in section 5.