Pixid VMS Pro API Documentation

PATCH /v2/engagements — User Guide

1. Overview

PATCH /v2/engagements changes one or more existing Engagements. Each item is a merge patch over one Engagement: a field you leave out is not touched, null clears it, and a value sets it. The body is an array, and each item succeeds or fails on its own.

Who can call it What they can change
Client Region Its own Engagements.
Parent Client Engagements of its Client Regions.
Vendor Nothing. A Vendor request returns 403.
Status When
200 OK Every item succeeded.
207 Multi-Status Some items succeeded and some failed.
400 Bad Request No item succeeded. 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 or clientOrgId could not be resolved. Nothing was checked.

2. Before you start

3. Request body

Engagement (each array item)

Only engagementId, updatingUserId and engagementChangeReason are required. Send only the fields you want to change.

Field Type Required Rules Where to get values
engagementId integer Yes An Engagement you can see. Each Engagement once per request. GET /v2/engagements → engagementId
updatingUserId integer Yes Greater than 1. An active user of the Engagement's Client Region. Recorded as the user who made the change. GET /v2/users → userId
engagementChangeReason text Yes Up to 254 characters. Plain text. Not blank. Supplied by you
dispositionStatusCode integer No 1 Engaged or 2 Engaged-Pend Disengage. Also sets the Engagement Status. Cannot be null. GET /v2/lookups/candidate-disposition-status
engagementType integer No 1 Contract, 2 Contract To Permanent, 3 Permanent. Cannot be null. GET /v2/lookups/engagement-type
engagementDates object No See engagementDates. Cannot be null.
engagementLocationId integer No Greater than 0. An active Location of your Parent Client; it need not be the current one. Cannot be null. GET /v2/locations → locationId
engagedByUserId integer No Greater than 0. An active user of the Engagement's Client Region. null removes this contact. GET /v2/users → userId
reportsToUserId integer No As engagedByUserId. GET /v2/users → userId
clientContactUserId integer No As engagedByUserId. GET /v2/users → userId
additionalContacts list of integers No Each greater than 0, an active user of the Engagement's Client Region. Adds the users who are not already additional contacts and keeps the others; null or [] removes them all. GET /v2/users → userId
candidateCanSubmitTimesheets true/false No Cannot be null. Supplied by you
candidateCanSubmitExpenses true/false No Cannot be null. Supplied by you
candidateManuallyApplyBillingRule true/false No Lets the worker apply Billing Rules. Cannot be null. Supplied by you
candidateAssociateProjectsToTimesheets true/false No Lets the worker add Projects to Timesheets. Cannot be null. Supplied by you
isCandidateTimesheetApprover true/false No Gives (true) or removes (false) the worker's permission to approve time. Cannot be null. Supplied by you
isCandidateTimesheetProxy true/false No Gives or removes the worker's permission to enter time as a proxy. Cannot be null. Supplied by you
vendorProxyAllowed true/false No Lets Vendor users enter time as Time/Expense Proxy. Cannot be null. Supplied by you
timesheetFrequency integer No 1 Weekly, 2 Monthly, 3 BiMonthly. Cannot be null. GET /v2/lookups/timesheet-frequency
timesheetFormType integer No 1 Standard, 2 AdvancedDetail. Cannot be null. GET /v2/lookups/timesheet-type
timesheetBreak1, timesheetBreak2, timesheetBreak3 true/false No Turns each break on or off. Cannot be null. Supplied by you
meals1, meals2 true/false No Turns each meal break on or off. Cannot be null. Supplied by you
infoAppearsOnEachTS text No Plain text shown on every Timesheet. null clears it. Supplied by you
engagementTimeExpenseApprovers array No [ { "timeExpenseApproverUserId": 4002 } ]. Each an active user of the Engagement's Client Region. Adds the users who are not already Time/Expense Approvers of the worker and keeps the others; null or [] removes them all. GET /v2/users → userId
engagementTimeExpenseProxies array No [ { "timeExpenseProxyUserId": 4005 } ]. Each an active user of the Engagement's Client Region. Adds the users who are not already Time/Expense Proxies of the worker and keeps the others; null or [] removes them all. GET /v2/users → userId
engagementCostCenters array No [ { "costCenterId": 9001 } ]. Cost Centers available to the Engagement's Client Region. Adds the ones not already linked and keeps the others; null or [] removes them all. GET /v2/costcenters → costCenterId
engagementGls array No [ { "generalLedgerId": 9101 } ]. General Ledger codes of your Parent Client. Adds the ones not already linked and keeps the others; null or [] removes them all. GET /v2/generalledgers → generalLedgerId
engagementProjects array No [ { "projectId": 9201 } ]. Projects of the Engagement's Client Region. At most one, unless your organization requires a project list on Requisitions. Adds the Projects not already linked to the worker and keeps the others; null or [] removes them all. GET /v2/projects → projectId
hoursPerDay integer No null clears it. Supplied by you
daysPerWeek integer No null clears it. Supplied by you
canClientTerminate, canVendorTerminate true/false No Cannot be null. Supplied by you
clientNoticeRequiredDays, vendorNoticeRequiredDays integer No 0 or more. null clears it. Supplied by you
poNumber text No Plain text. null clears it. Supplied by you
poBudget number No null clears it. Supplied by you
clientCandidateId text No Plain text. Your own reference for the worker. null clears it. Supplied by you
dateOfBirth date No null clears it. Supplied by you
socialSecurityNumber text No Up to 254 characters. Not blank. Replaces the Candidate's stored value. Cannot be null. Supplied by you
engagementBuilding, engagementFloor, engagementCube, engagementPhone text No Up to 50 characters each. Plain text. null clears it; "" stores an empty value. Supplied by you
engagementOtherLogistics text No Up to 255 characters. Plain text. null clears it. Supplied by you
engagementRates object No See engagementRates. Cannot be null.
engagementCustomFields array No See engagementCustomFields. Cannot be null.

Time/Expense Approvers, Time/Expense Proxies and Project links belong to the worker, so a change applies to every Engagement of that Candidate.

engagementDates

Field Type Required Rules
engagementStartDate date With engagementThruDate Send both or neither. Cannot be null. Must be on or before engagementThruDate.
engagementThruDate date With engagementStartDate Send both or neither. Cannot be null.
originalStartDate date No null clears it.
engagementDecisionDate date No null clears it.
timesheetStartDate date No null clears it.

engagementRates

A rate change for the base Billing Rule of the Engagement's Rate Structure. Every other Billing Rule's rates are calculated from it. The Rate Structure and payment basis stay the Engagement's own; you do not send them. An object with every field left out is no change.

Field Type Required Rules Where to get values
rateEffectiveFromDate date Yes The date the rates apply from. It can be in the future, but not after the Engagement's through date (the one this request sets, else the stored one). Supplied by you
clientRate, vendorRate, directLaborRate, budgetRate number Each when the base rule enters it 0 or more. Send every rate the base rule enters and no other. Supplied by you

engagementCustomFields

Each entry sets or clears one field. Fields you do not list are not touched.

Field Type Required Rules Where to get values
customFieldNumber integer Yes Greater than 0. An active custom field of the scope in the Engagement's Client Region. Each field once per scope. GET /v2/customcontent?entityTypeCode=4 (Detail), 3 (CandidateEngagement) or 5 (Logistics) → customFieldNumber
customFieldValue text No Plain text. A date field takes a date after 1900; other text fields up to 254 characters. null or blank clears the field. Leaving it out leaves the field untouched. 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

4. Rules that depend on your Organization or permissions

If ... Then ... What to change
Your Organization is a Vendor 403 This action is unauthorized for non-client organizations. Call as a Client Region or Parent Client.
Your Organization or clientOrgId cannot be resolved 404 with the reason, for example Organization not found. or Invalid keyOrgId & clientOrgId combo. The messages are the same as on GET /v2/engagements. See the GET guide, section 4.
The Engagement is not one you can see Item fails: Engagement {engagementId} does not exist in ClientOrgId: {clientOrgId}. ({clientOrgId} is the one you sent, else your Organization id) Check engagementId, and clientOrgId if you sent it.
updatingUserId is not an active user of the Engagement's Client Region Item fails: UpdateUserId {userId} does not exist or is not active in {keyOrgId}. Send an active user of that Client Region.
A contact is not an active user of the Engagement's Client Region Item fails: {role} user {userId} does not exist in instance {clientRegionId}. Pick an active user. As a Parent Client, a user of the Parent Client also counts.
A Time/Expense Approver or Proxy is not an active user of the Engagement's Client Region Item fails: Time Approval for user {userId} is not configured in instance {clientRegionId} for this request. (Proxy Time Approval for a proxy) Pick an active user of that Client Region.
You send more than one Project and your organization does not require a project list on Requisitions Item fails: Only one ProjectId may be supplied because Client {clientRegionId} does not use project lists (received {count}). Send one Project.
The Location is not an active Location of your Parent Client Item fails: Location {locationId} does not exist for given OrgId {keyOrgId}. Pick one from GET /v2/locations.
The Engagement has no Rate Structure engagementRates fails: Engagement {engagementId} has no rate structure; its rates cannot be changed here. Leave engagementRates out.
The Engagement has no payment basis and its base rule defines none engagementRates fails: Engagement {engagementId} has no payment basis; its rates cannot be changed here. Ask an administrator.

{clientRegionId} is the Engagement's Client Region.

5. Error reference

Whole request rejected (400, nothing changed)

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.
No engagement data provided. The array is empty. Send at least one item.
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].UpdatingUserId):

Cause How to fix
updatingUserId is missing or not greater than 0: UpdatingUserId must be a positive integer. Send the user id.
engagementChangeReason is missing, null, "" or longer than 254 characters. Send a reason.
engagementType, timesheetFrequency or timesheetFormType is text, a decimal or a number that is not listed. The message is '{value}' is not a valid {type} code. Accepted: ... or Unexpected String value for {type}; send the numeric code. Accepted: .... Send a listed number.
The body is not valid JSON, is not an array, or a value has the wrong type. Correct the JSON.

One bad item rejects the whole request here.

Item errors (207 or 400)

Every message starts with the item's position, for example Engagements[2]: . One item can return several messages. If the Engagement cannot be found, no other check runs for that item.

Engagement and user

Message What it means How to fix
Duplicate field '{field}' in request. The item has the same field twice. Send each field once.
Engagement {engagementId} does not exist in ClientOrgId: {clientOrgId}. See section 4. Check engagementId.
Engagement {engagementId} does not have a valid Candidate. The Engagement's record is incomplete. Contact support.
The specified CandidateId does not exist in the given ClientOrgId. The Engagement's Candidate is not one you can see. Check engagementId.
The Engagement Change Reason cannot be empty. Please provide a reason for this change. The reason is empty after cleaning. Send a reason.
UpdateUserId does not exist in {keyOrgId} updatingUserId is 1. Always followed by the next message. Send your own user id.
UpdateUserId {userId} does not exist or is not active in {keyOrgId}. See section 4. Send an active user.
Engagement {engagementId} is also submitted by Engagements[{n}]; a PATCH names each engagement once. The same Engagement appears earlier in the request and that item passed. Send each Engagement once.

Text

Message What it means How to fix
{field} contains characters that are not allowed. A text field has control or other disallowed characters. The field can be nested, for example EngagementCustomFields[0].CustomFieldValue. Remove them.
{field} must be plain text and cannot contain markup. A text field contains HTML or similar markup. Send plain text.
{field} exceeds maximum length of {max} characters. A logistics field is too long. Shorten it.
SocialSecurityNumber cannot be blank. Sent as "" or spaces. Send a value, or leave it out.
SocialSecurityNumber cannot exceed 254 characters. Too long. Shorten it.

Fields that cannot be null or cleared

Message What it means How to fix
{field} cannot be null; send a value or omit it. null was sent for a field that cannot be cleared, for example TimesheetFrequency or EngagementDates.EngagementStartDate. Send a value, or leave it out.
{field} cannot be cleared through PATCH. null was sent for EngagementDates, EngagementLocationId, EngagementRates, EngagementCustomFields or SocialSecurityNumber. Send a value, or leave it out.

Field values

Message What it means How to fix
DispositionStatusCode must be Engaged or EngagedPendDisengage. Not 1 or 2. Send 1 or 2.
ClientNoticeRequiredDays must not be negative. Same for VendorNoticeRequiredDays. Send 0 or more.

Dates

Message What it means How to fix
EngagementStartDate and EngagementThruDate must be supplied together. Only one was sent. Send both.
EngagementStartDate must be on/before EngagementThruDate. Start is after the through date. Correct the dates.

Contacts and Time/Expense users

Message What it means How to fix
EngagedByUserId must be a positive integer. 0 or negative. Same for ReportsToUserId, ClientContactUserId. Send a user id, or null to remove.
AdditionalContacts must contain only positive integer user ids. An entry is 0 or negative. Remove it.
{role} user {userId} does not exist in instance {clientRegionId}. {role} is EngagedBy, ReportsTo, ClientContact or AdditionalContact. See section 4. Pick an active user.
Time Approval invalid. An approver entry is null or its user id is missing, 0 or negative. Proxy Time Approval invalid. for a proxy. Correct the entry.
Time Approval for user {userId} is not configured in instance {clientRegionId} for this request. See section 4. Pick an active user.

Location, Cost Centers, General Ledgers and Projects

Message What it means How to fix
Invalid LocationId engagementLocationId is 0 or negative. Send a Location id.
Location {locationId} does not exist for given OrgId {keyOrgId}. See section 4. Pick one from GET /v2/locations.
CostCenterId must be a positive integer. An entry is null or its id is missing, 0 or negative. Correct it.
CostCenter {costCenterId} does not exist for Client {clientRegionId}. Not available to the Engagement's Client Region. Pick one from GET /v2/costcenters.
Invalid GeneralLedgerId An entry is null or its id is missing, 0 or negative. Correct it.
General Ledger {generalLedgerId} does not exist for Client {clientRegionId}. Not a General Ledger code of your Parent Client. Pick one from GET /v2/generalledgers.
Invalid ProjectId An entry is null or its id is missing, 0 or negative. Correct it.
Only one ProjectId may be supplied ... See section 4. Send one Project.
Project {projectId} does not exist for Client {clientRegionId}. Not a Project of the Engagement's Client Region. Pick one from GET /v2/projects.

Rates

Message What it means How to fix
RateEffectiveDate is invalid. rateEffectiveFromDate is missing. Send it.
RateEffectiveFromDate cannot be after the engagement's thru date. The date is after the Engagement's through date. Send an earlier date, or extend the through date in the same request.
Engagement {engagementId} has no rate structure; its rates cannot be changed here. See section 4. Leave engagementRates out.
Engagement {engagementId} has no payment basis; its rates cannot be changed here. See section 4. Ask an administrator.
Rate Structure {id} does not exist for Client {clientRegionId}., Rate Structure {id} is not active., Rate Structure {id} has no active billing rules. The Engagement's Rate Structure cannot be used. Ask an administrator to correct the Rate Structure.
Rate Structure {id} has no base billing rule with rates that can be entered, so Rates cannot be applied. No Billing Rule in it enters a rate. Ask an administrator.
Rates must contain the base rate of the engagement. rateEffectiveFromDate was sent with no rate. Send the rates.
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}). The base rule enters this rate and you left it out. Add it.
{rate} for billing rule '{rule name}' ({rule id}) is calculated ({factor type}) and cannot be supplied. The base rule calculates this rate. Remove it.

Custom fields

Message What it means How to fix
EngagementCustomFields cannot contain a null entry. An entry is null. Remove it.
EngagementCustomFields CustomFieldNumber must be a positive integer. Missing, 0 or negative. Send the field number.
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.
Custom field {fieldNumber} (scope {n}) is listed more than once. The same field and scope twice. Send each once.
Custom Field {fieldNumber} is not defined for Client {clientRegionId}. No active field with that number in the scope. Check customFieldNumber and scope.
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.

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

While saving

Message What it means How to fix
Failed to update engagement {engagementId}: Custom value write failed for EngagementId {engagementId}: {reasons} A custom value does not fit its field, for example not one of its list items. Nothing in the item was saved. Correct the value.
Failed to update engagement {engagementId}: {reason} Saving failed, for example An error occurred while updating the engagement. Nothing in the item was saved. Retry the item; 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 request: change the through date

PATCH /v2/engagements
Content-Type: application/json
[
  {
    "engagementId": 7001,
    "updatingUserId": 4001,
    "engagementChangeReason": "Extended by the hiring manager",
    "engagementDates": {
      "engagementStartDate": "2026-12-01",
      "engagementThruDate": "2027-08-31"
    }
  }
]

200 OK

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

outcome is updated when something was saved, and unchanged when the item only resent stored values or named no field to change.

Rate change, contacts, lists and custom fields

[
  {
    "engagementId": 7002,
    "updatingUserId": 4001,
    "engagementChangeReason": "Annual review",
    "reportsToUserId": 4003,
    "additionalContacts": [4004, 4006],
    "timesheetFrequency": 1,
    "engagementTimeExpenseApprovers": [ { "timeExpenseApproverUserId": 4002 } ],
    "engagementCostCenters": [ { "costCenterId": 9001 }, { "costCenterId": 9002 } ],
    "engagementGls": [],
    "engagementRates": {
      "rateEffectiveFromDate": "2026-12-01",
      "clientRate": 100.00,
      "vendorRate": 85.00
    },
    "engagementCustomFields": [
      { "customFieldNumber": 1, "customFieldValue": "B-78", "scope": 0 },
      { "customFieldNumber": 2, "customFieldValue": null, "scope": 0 }
    ]
  }
]

additionalContacts, the approver and the Cost Centers are added to the ones already stored. engagementGls: [] removes every General Ledger code. Custom field 2 is cleared; other custom fields are not touched.

Partial success (207)

Two items. The second sends null for timesheetFrequency.

207 Multi-Status

{
  "data": {
    "succeeded": [
      { "requestIndex": 0, "id": 7001, "outcome": "updated" }
    ],
    "failed": [
      {
        "candidateId": 5003,
        "clientOrgId": 1001,
        "vendorOrgId": 2001,
        "requestIndex": 1,
        "id": 7003,
        "errors": [ "Engagements[1]: TimesheetFrequency cannot be null; send a value or omit it." ]
      }
    ],
    "succeededCount": 1,
    "failedCount": 1
  },
  "success": true,
  "message": "1 of 2 items succeeded.",
  "statusCode": 207,
  "errors": [ "Engagements[1]: TimesheetFrequency cannot be null; send a value or omit it." ],
  "count": null
}

id on a failed item is the engagementId you sent. When the Engagement could not be found, candidateId and vendorOrgId are 0 and clientOrgId is the clientOrgId you sent, else 0.

Every item fails (400)

One item with an unknown engagementId, sent by Organization 1001 with no clientOrgId.

400 Bad Request

{
  "data": {
    "succeeded": [],
    "failed": [
      {
        "candidateId": 0,
        "clientOrgId": 0,
        "vendorOrgId": 0,
        "requestIndex": 0,
        "id": 9999,
        "errors": [ "Engagements[0]: Engagement 9999 does not exist in ClientOrgId: 1001." ]
      }
    ],
    "succeededCount": 0,
    "failedCount": 1
  },
  "success": false,
  "message": "No items succeeded.",
  "statusCode": 400,
  "errors": [ "Engagements[0]: Engagement 9999 does not exist in ClientOrgId: 1001." ],
  "count": null
}

Whole request rejected

An item without engagementChangeReason, or with "timesheetFrequency": "Weekly", returns 400 with a validation problem body. No item is changed, including valid items in the same array.

7. Differences

By caller

Parent Client Client Region Vendor
Can call Yes Yes No (403)
Engagements Those of its Client Regions Its own —
clientOrgId Optional; one of its Client Regions Leave out, or its own id —
Contacts accepted Active users of the Engagement's Client Region or of the Parent Client Active users of its own Client Region —
updatingUserId, Time/Expense users Active users of the Engagement's Client Region Same —

PATCH compared with POST

PATCH POST
Identifies the Engagement by engagementId candidateId and requisitionId (a new Engagement)
Required fields engagementId, updatingUserId, engagementChangeReason The ids, contacts, Location, dates and rates
Field names that differ hoursPerDay (integer), daysPerWeek, poNumber, poBudget, engagementDates, engagementLocationId, engagementCostCenters, engagementGls, engagementProjects, engagementTimeExpenseApprovers, engagementTimeExpenseProxies, engagementRates, engagementCustomFields engagementHours (text), engagementDays, engagementPONumber, engagementPOBudget, flat date fields, locationId, costCenterIds, generalLedgerIds, projectIds, timesheetApproverUserId, timesheetProxyUserId, rates, customFields
Rates Optional; needs rateEffectiveFromDate; the Rate Structure and payment basis stay the Engagement's own Required; rateStructureId can name any eligible Rate Structure
Start and through dates Start must be on or before through Through must be after start

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.

API v2 · Last updated 2026-11-25