POST /v2/engagements — User Guide
1. Overview
POST /v2/engagements engages one or more Candidates. Each item creates one Engagement for one Candidate on one Requisition. The body is an array, and each item succeeds or fails on its own.
| Who can call it | What they can engage |
|---|---|
| Client Region | Its own Candidates, on its own Requisitions. |
| Parent Client | Candidates of its Client Regions, on their Requisitions. |
| Vendor | Nothing. A Vendor request returns 403. |
- Batch limit: 100 Engagements per request.
- A new Engagement starts in Engagement Status Engt Pending Approval.
- On success the Candidate's Client Candidate Status becomes Engaged, and the Requisition is marked Filled.
- A Candidate can have only one Engagement.
- The Engagement's engagement type is the Requisition's.
| Status | When |
|---|---|
201 Created |
Every Engagement was created. |
207 Multi-Status |
Some Engagements were created and some failed. |
400 Bad Request |
No Engagement was created. Either the whole request was rejected before any item was checked, or every item failed. |
403 Forbidden |
Your Organization is a Vendor. Nothing was checked. |
404 Not Found |
Your Organization could not be resolved. Nothing was checked. |
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 or Client Region request, and which Candidates and Requisitions you can use. 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. - There are no other query parameters. The Client Region and Vendor of each Engagement come from its Candidate.
- The body is a JSON array, even for one Engagement.
- Error messages name each item by its position in your array, counting from zero:
Engagements[0]: ...,Engagements[1]: .... - In error messages, instance and Client followed by a number mean the Candidate's Client Region, unless the row says otherwise.
3. Request body
Engagement (each array item)
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
candidateId |
integer | Yes | Greater than 0. The Candidate must not already be engaged or have an Engagement, and must not appear twice in the request. |
GET /v2/candidates → candidateId |
requisitionId |
integer | Yes | Greater than 0. The Requisition must be Open, Engagement Pending or Filled, and have an engagement type. |
GET /v2/requisitions → requisitionId |
engagedByUserId |
integer | Yes | Greater than 0. An active user of the Candidate's Client Region. Recorded as the user who created the Engagement. |
GET /v2/users → userId |
reportsToUserId |
integer | Yes | Greater than 0. An active user of the Candidate's Client Region. |
GET /v2/users → userId |
clientContactUserId |
integer | Yes | Greater than 0. An active user of the Candidate's Client Region. |
GET /v2/users → userId |
additionalContacts |
list of integers | No | Each value greater than 0; no null entries. Each an active user of the Candidate's Client Region. |
GET /v2/users → userId |
locationId |
integer | Yes | Greater than 0. A Location of your Parent Client. |
GET /v2/locations → locationId |
engagedStartDate |
date | Yes | A valid date. | Supplied by you |
engagedThroughDate |
date | Yes | A valid date after engagedStartDate. |
Supplied by you |
originalStartDate |
date | Yes | A valid date. | Supplied by you |
engagedDecisionDate |
date | Yes | A valid date. | Supplied by you |
timesheetStartDate |
date | No | Supplied by you | |
engagementHours |
number | No | Hours per day, 0 to 24, at most 2 decimal places. Left out: 0. |
Supplied by you |
engagementDays |
integer | No | Working days per week. With engagementHours, both dates and a Client Rate, the Requisition's budget is recalculated. |
Supplied by you |
engagementPONumber |
text | No | Plain text. | Supplied by you |
engagementPOBudget |
number | No | Supplied by you | |
clientCandidateId |
text | No | Up to 50 characters. Plain text. Your own reference for the worker. | Supplied by you |
socialSecurityNumber |
text | No | Up to 254 characters. Replaces the Candidate's stored value. | Supplied by you |
engagementBuilding |
text | No | Up to 50 characters. Plain text. | Supplied by you |
engagementFloor |
text | No | Up to 50 characters. Plain text. | Supplied by you |
engagementCube |
text | No | Up to 50 characters. Plain text. | Supplied by you |
engagementPhone |
text | No | Up to 50 characters. Plain text. | Supplied by you |
engagementOtherLogistics |
text | No | Up to 255 characters. Plain text. | Supplied by you |
infoAppearsOnEachTS |
text | No | Plain text shown on every Timesheet. | Supplied by you |
timesheetFrequency |
integer | Yes | 1 Weekly, 2 Monthly, 3 BiMonthly. |
GET /v2/lookups/timesheet-frequency |
timesheetFormType |
integer | Yes | 1 Standard, 2 AdvancedDetail. |
GET /v2/lookups/timesheet-type |
timesheetApproverUserId |
integer | No | An active user of the Candidate's Client Region. Becomes a Time/Expense Approver. | GET /v2/users → userId |
timesheetProxyUserId |
integer | No | An active user of the Candidate's Client Region. Becomes a Time/Expense Proxy. | GET /v2/users → userId |
canCandidateSubmitTimesheets |
true/false | No | Omitted means false. |
Supplied by you |
canCandidateSubmitExpenses |
true/false | No | Omitted means false. |
Supplied by you |
timesheetBreak1, timesheetBreak2, timesheetBreak3 |
true/false | No | Omitted means false. Turns on each break on Timesheets. |
Supplied by you |
meals1, meals2 |
true/false | No | Omitted means false. Turns on each meal break on Timesheets. |
Supplied by you |
vendorProxyAllowed |
true/false | No | Omitted means false. Lets Vendor users enter time as Time/Expense Proxy. |
Supplied by you |
canCandidateApplyBillingRules |
true/false | No | Omitted means false. |
Supplied by you |
canCandidateAssociateProjectsToTimesheet |
true/false | No | Omitted means false. |
Supplied by you |
isCandidateTimesheetApprover |
true/false | No | Omitted means false. Lets the worker approve time. |
Supplied by you |
isCandidateTimeEntryProxy |
true/false | No | Omitted means false. Lets the worker enter time as a proxy. |
Supplied by you |
canClientTerminate, canVendorTerminate |
true/false | No | Omitted means false. |
Supplied by you |
clientNoticeRequiredDays, vendorNoticeRequiredDays |
integer | No | Days of notice, 0 or more. Omitted means 0. |
Supplied by you |
rateStructureId |
integer | No | Left out: the Requisition's Rate Structure. Must belong to the Candidate's Client Region, be active and have active Billing Rules. | GET /v2/ratestructures → rateStructureId |
rates |
object | Yes | See rates. |
|
costCenterIds |
list of integers | No | Each greater than 0. Cost Centers available to the Candidate's Client Region. Duplicates are ignored. |
GET /v2/costcenters → costCenterId |
generalLedgerIds |
list of integers | No | Each greater than 0. General Ledger codes of your Parent Client. Duplicates are ignored. |
GET /v2/generalledgers → generalLedgerId |
projectIds |
list of integers | No | Each greater than 0. Projects of the Candidate's Client Region. Duplicates are ignored. |
GET /v2/projects → projectId |
customFields |
array | No | See customFields. |
rates
The rates of the Rate Structure's base Billing Rule. Every other Billing Rule's rates are calculated from them.
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
paymentBasis |
text | Yes | A name, description or number: PerHour / Per Hour / 1, PerWeek / 2, PerMonth / 3, PerYear / 4, PerDay / 5, PerUnit / 7. Not case-sensitive. If the Requisition sets a payment basis for its maximum pay rate, it must match. |
GET /v2/lookups/payment-basis |
clientRate |
number | When the base rule enters it | 0 or more. |
Supplied by you |
vendorRate |
number | When the base rule enters it | 0 or more. |
Supplied by you |
directLaborRate |
number | When the base rule enters it | 0 or more. |
Supplied by you |
budgetRate |
number | When the base rule enters it | 0 or more. |
Supplied by you |
A rate is "entered" when the base Billing Rule says it is entered at Candidate submission or at Engagement. Send every entered rate and no other. The base rule is the one marked as base in the Rate Structure, otherwise the first rule with an entered rate.
customFields
| Field | Type | Required | Rules | Where to get values |
|---|---|---|---|---|
fieldNumber |
integer | Yes | A custom field defined for the scope in the Candidate's Client Region. | GET /v2/customcontent?entityTypeCode=4 (Detail), 3 (CandidateEngagement) or 5 (Logistics) → customFieldNumber |
value |
text | Yes | Plain text. A date field takes a date after 1900; other text fields up to 254 characters. A blank value is skipped. | Supplied by you; for a list-backed field, one of its list items |
scope |
integer | No | 0 Detail (default), 1 CandidateEngagement, 2 Logistics. |
GET /v2/lookups/engagement-custom-field-scope |
An unknown fieldNumber, a date that is not a date, or a value that is too long fails the item, when the Candidate's Client Region has custom fields in that scope. A value that is not one of a list field's items is not saved and not reported; the Engagement is still created. Check list values with GET /v2/engagements afterward.
4. Rules that depend on your Organization or permissions
| If ... | Then ... | What to change |
|---|---|---|
| Your Organization is a Vendor | 403 Only CLIENT instances can create Engagements. |
Call as a Client Region or Parent Client. |
| Your Organization cannot be resolved | 404 with the reason, for example Organization not found. or Organization is not active. |
Check your API Key and Secret. |
| The Candidate is not one of yours | Item fails: Candidate {candidateId} does not exist for client {keyOrgId}. |
Check candidateId. |
| The Requisition is not one of yours | Item fails: Requisition {requisitionId} does not exist in instance {keyOrgId}. |
Check requisitionId. |
| A user is not active in the Candidate's Client Region | Item fails: {role} user {userId} does not exist in instance {clientRegionId}. |
Pick an active user of that Client Region. As a Parent Client, a user of the Parent Client also counts. |
| The Rate Structure's base rule enters a rate you left out | Item fails: {rate} is required for billing rule '{rule name}' ({rule id}). |
Add that rate. |
| The Rate Structure's base rule 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 sets a payment basis for its maximum pay rate | paymentBasis must match: Payment Basis {sent} does not match Requisition {requisitionId}'s expected Payment Basis {expected}. |
Send the Requisition's payment basis. |
| Your Organization has a default timesheet approval type | The Engagement uses it. | Nothing to send. |
{clientRegionId} is the Candidate's Client Region.
5. Error reference
Whole request rejected (400, nothing created)
These return before any item is processed.
Plain-text body:
| 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. |
Request body cannot be null or empty. |
The array is empty or missing. | Send at least one Engagement. |
Cannot process more than 100 engagements in a single request. |
The array has more than 100 items. | Split the request. |
Validation problem body (title One or more validation errors occurred., with an errors object keyed by the item and field, for example [0].Rates):
| Cause | How to fix |
|---|---|
rates is missing or null. |
Send rates. |
clientCandidateId is longer than 50 characters, or socialSecurityNumber longer than 254. |
Shorten it. |
The body is not valid JSON, is not an array, or a value has the wrong type (for example text in candidateId or an invalid date). |
Correct the JSON. |
One bad item rejects the whole request here.
Organization could not be resolved (404) or Vendor caller (403)
{ "data": null, "success": false, "message": "Only CLIENT instances can create Engagements.", "statusCode": 403, "errors": null, "count": null }
Item errors (207 or 400)
Every message starts with the item's position, for example Engagements[2]: . One item can return several messages. The checks in the first group run first; if any fails, the second group is not checked for that item.
First group: fields
| 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. The field can be nested, for example CustomFields[0].Value. |
Remove them. |
{field} must be plain text and cannot contain markup. |
A text field contains HTML or similar markup. | Send plain text. |
CandidateId must be a positive integer. |
Missing, 0 or negative. Same for RequisitionId, EngagedByUserId, ReportsToUserId, ClientContactUserId, LocationId. |
Send the id. |
AdditionalContacts must contain only positive integer user ids. |
A null, 0 or negative entry. |
Remove it. |
EngagedStartDate must be a valid date. |
Missing. Same for EngagedThroughDate. |
Send the date. |
EngagedThroughDate must be after EngagedStartDate. |
The through date is on or before the start date. | Correct the dates. |
OriginalStartDate is required and must be a valid date. |
Missing. | Send it. |
EngagedDecisionDate is required and must be a valid date. |
Missing. | Send it. |
TimesheetFrequency is required. |
Missing or null. |
Send 1, 2 or 3. |
TimesheetFrequency is not a valid timesheet frequency. |
Not 1, 2 or 3. |
Send 1, 2 or 3. |
TimesheetFormType is required. |
Missing or null. |
Send 1 or 2. |
TimesheetFormType is not a valid timesheet form type. |
Not 1 or 2. |
Send 1 or 2. |
ClientNoticeRequiredDays must not be negative. |
Same for VendorNoticeRequiredDays. |
Send 0 or more. |
EngagementHours must be between 0 and 24 with at most 2 decimal places. |
Out of range or too many decimals. | Correct it. |
Rates must contain the base rate of the engagement. |
rates is empty ({}). |
Send the base rule's rates. |
CostCenterId must be a positive integer. |
An entry is 0 or negative. Same for GeneralLedgerId, ProjectId. |
Remove it. |
{field} exceeds maximum length of {max} characters. |
A logistics field is too long. | Shorten it. |
Custom field scope {n} is not valid. Valid scopes: Detail (0), CandidateEngagement (1), Logistics (2). |
scope is not 0, 1 or 2. |
Send 0, 1 or 2. |
Candidate {candidateId} does not exist for client {keyOrgId}. |
See section 4. | Check candidateId. |
Requisition {requisitionId} does not exist in instance {keyOrgId}. |
See section 4. | Check requisitionId. |
Second group: Candidate, Requisition and reference data
| Message | What it means | How to fix |
|---|---|---|
{role} user {userId} does not exist in instance {clientRegionId}. |
{role} is EngagedBy, ReportsTo, ClientContact, AdditionalContact, TimeApprover (timesheetApproverUserId) or ClientProxyTimeEntry (timesheetProxyUserId). |
Pick an active user of the Candidate's Client Region. |
Requisition {requisitionId} is not eligible for engagements. Check status is PendingEngagement |
The Requisition is not Open, Engagement Pending or Filled. | Use a Requisition in one of those statuses. |
Candidate {candidateId} is not eligible for engagement. |
The Candidate's Client Candidate Status is Engaged, Engaged - Pending Approval or Engaged - Pending Vend Accept. | Pick another Candidate. |
Candidate {candidateId} already has an existing engagement. |
The Candidate already has an Engagement. | Pick another Candidate. |
Candidate {candidateId} does not have a valid parent candidate record. |
The Candidate's record is incomplete. | Contact support. |
Location {locationId} does not exist for instance {clientRegionId}. |
Not a Location of your Parent Client. | Pick one from GET /v2/locations. |
Project {projectId} does not exist for Client {clientRegionId}. |
Not a Project of the Candidate's Client Region. | Pick one from GET /v2/projects. |
CostCenter {costCenterId} does not exist for instance {clientRegionId}. |
Not available to the Candidate's Client Region. | Pick one from GET /v2/costcenters. |
GeneralLedger {generalLedgerId} does not exist for instance {clientRegionId}. |
Not a General Ledger code of your Parent Client. | Pick one from GET /v2/generalledgers. |
EngagementType 0 is not valid. |
The Requisition has no engagement type. | Set an engagement type on the Requisition. |
Requisition {requisitionId} has no rate structure; a RateStructureId must be provided. |
No rateStructureId and the Requisition has none. |
Send rateStructureId. |
Rate Structure {rateStructureId} does not exist for Client {clientRegionId}. |
Not a Rate Structure of the Candidate's Client Region. | Pick one from GET /v2/ratestructures. |
Rate Structure {rateStructureId} is not active. |
Pick an active one. | |
Rate Structure {rateStructureId} has no active billing rules. |
Pick another, or activate its Billing Rules. | |
Rate Structure {rateStructureId} has no base billing rule with rates that can be entered, so Rates cannot be applied. |
No Billing Rule in it enters a rate. | Pick another Rate Structure. |
Invalid or missing PaymentBasis in Rates. |
paymentBasis is missing or not a listed value. |
Send a value from the rates table. |
Rate values in Rates must not be negative. |
A rate is below zero. | Send 0 or more. |
{rate} is required for billing rule '{rule name}' ({rule id}). |
See section 4. | Add that rate. |
{rate} for billing rule '{rule name}' ({rule id}) is calculated ({factor type}) and cannot be supplied. |
See section 4. | Remove that rate. |
Payment Basis {sent} does not match Requisition {requisitionId}'s expected Payment Basis {expected}. |
See section 4. | Send the Requisition's payment basis. |
Requisition {requisitionId}'s Max Pay Rate Period {code} is not a valid Payment Basis. |
The Requisition's own setting is invalid. | Correct the Requisition. |
Custom Field {fieldNumber} is not defined for Client {clientRegionId}. |
No active field with that number in the scope. | Check fieldNumber and scope. |
Custom field {label} has an invalid or unparseable date value '{value}'. |
A date field has a value that is not a date. {label} is the field's name in quotes, or field {n}. |
Send a date. |
Custom field {label} value is {length} characters; the maximum is 254. |
Too long. | Shorten it. |
CandidateId {candidateId} is also submitted by Engagements[{n}]; a candidate can have only one engagement. |
The same Candidate appears earlier in the request and that item passed. | Send each Candidate once. |
Candidate {candidateId} not found for the supplied org context ... or Requisition {requisitionId} not found for the supplied org context ... |
The record could not be read for your Organization. | Check the id. |
While saving
| Message | What it means | How to fix |
|---|---|---|
Unable to create engagement for CandidateId {candidateId}: {reason} |
Saving failed, for example Requisition {requisitionId} was not found. The engagement has not been created. Nothing was saved for this item. |
Correct the cause and retry the item. |
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
A Client Region engaging its own Candidate. The Requisition has a Rate Structure whose base Billing Rule enters the Client Rate and Vendor Rate, and a Per Hour payment basis.
POST /v2/engagements
Content-Type: application/json
[
{
"candidateId": 5001,
"requisitionId": 3001,
"engagedByUserId": 4001,
"reportsToUserId": 4002,
"clientContactUserId": 4002,
"locationId": 6001,
"engagedStartDate": "2026-12-01",
"engagedThroughDate": "2027-05-31",
"originalStartDate": "2026-12-01",
"engagedDecisionDate": "2026-11-20",
"timesheetFrequency": 1,
"timesheetFormType": 1,
"rates": { "paymentBasis": "PerHour", "clientRate": 95.00, "vendorRate": 80.00 }
}
]
201 Created
{
"data": {
"succeeded": [
{ "requestIndex": 0, "id": 7001, "outcome": "created" }
],
"failed": [],
"succeededCount": 1,
"failedCount": 0
},
"success": true,
"message": "All 1 items succeeded.",
"statusCode": 201,
"errors": null,
"count": null
}
id is the new engagementId.
Full request with timesheets, associations and custom fields
[
{
"candidateId": 5002,
"requisitionId": 3002,
"engagedByUserId": 4001,
"reportsToUserId": 4002,
"clientContactUserId": 4003,
"additionalContacts": [4004],
"locationId": 6001,
"engagedStartDate": "2026-12-01",
"engagedThroughDate": "2027-11-30",
"originalStartDate": "2026-12-01",
"engagedDecisionDate": "2026-11-20",
"timesheetStartDate": "2026-12-01",
"engagementHours": 8,
"engagementDays": 5,
"engagementPONumber": "PO-1001",
"engagementPOBudget": 150000.00,
"clientCandidateId": "W-123",
"engagementBuilding": "Building A",
"engagementFloor": "3",
"timesheetFrequency": 1,
"timesheetFormType": 1,
"timesheetApproverUserId": 4002,
"canCandidateSubmitTimesheets": true,
"canCandidateSubmitExpenses": true,
"timesheetBreak1": true,
"meals1": true,
"canClientTerminate": true,
"clientNoticeRequiredDays": 14,
"canVendorTerminate": true,
"vendorNoticeRequiredDays": 14,
"rateStructureId": 8001,
"rates": { "paymentBasis": "PerHour", "clientRate": 95.00, "vendorRate": 80.00 },
"costCenterIds": [9001],
"generalLedgerIds": [9101],
"projectIds": [9201],
"customFields": [
{ "fieldNumber": 1, "value": "B-77", "scope": 0 },
{ "fieldNumber": 1, "value": "Desk 12", "scope": 2 }
]
}
]
201 Created, same shape as above.
Partial success (207)
Two items. The second names a Location that does not exist.
207 Multi-Status
{
"data": {
"succeeded": [
{ "requestIndex": 0, "id": 7001, "outcome": "created" }
],
"failed": [
{
"candidateId": 5003,
"clientOrgId": 1001,
"vendorOrgId": 2001,
"requestIndex": 1,
"id": null,
"errors": [ "Engagements[1]: Location 9999 does not exist for instance 1001." ]
}
],
"succeededCount": 1,
"failedCount": 1
},
"success": true,
"message": "1 of 2 items succeeded.",
"statusCode": 207,
"errors": [ "Engagements[1]: Location 9999 does not exist for instance 1001." ],
"count": null
}
errors at the top level repeats every item message, in item order. clientOrgId and vendorOrgId on a failed item are the Candidate's Client Region and Vendor; they are 0 when the item failed in the first group of checks.
Every item fails (400)
One item with "rates": {}.
400 Bad Request
{
"data": {
"succeeded": [],
"failed": [
{
"candidateId": 5001,
"clientOrgId": 0,
"vendorOrgId": 0,
"requestIndex": 0,
"id": null,
"errors": [ "Engagements[0]: Rates must contain the base rate of the engagement." ]
}
],
"succeededCount": 0,
"failedCount": 1
},
"success": false,
"message": "No items succeeded.",
"statusCode": 400,
"errors": [ "Engagements[0]: Rates must contain the base rate of the engagement." ],
"count": null
}
Whole request rejected
The minimal body without rates returns 400 with a validation problem body keyed [0].Rates. No Engagement is created, including valid items in the same array.
7. Differences
By caller
| Parent Client | Client Region | Vendor | |
|---|---|---|---|
| Can call | Yes | Yes | No (403) |
| Candidates and Requisitions | Those of its Client Regions | Its own | — |
| Users accepted | Active users of the Candidate's Client Region or of the Parent Client | Active users of its own Client Region | — |
POST compared with PATCH
| POST | PATCH | |
|---|---|---|
| Identifies the Engagement by | candidateId and requisitionId (a new Engagement) |
engagementId |
| Custom fields | customFields with fieldNumber, value, scope; a value that is not a list item is skipped silently |
engagementCustomFields; a value that is not a list item fails the item |
| Projects | Any number | At most one, unless your organization requires a project list on Requisitions |
| Start and through dates | Through must be after start | Start must be on or before through |
Single item compared with a batch
There is no single-object form; send an array of one. Items are checked independently. One bad item never blocks the others, except for the whole-request checks in section 5.