Skip to main content
New Participant
Oct 20, 2026 2:38 PM UTC
Solved

Project API Ignoring DeptJob

I’m trying to use the Project API to create and update Projects, however it is ignoring DeptJob field and Department fields on POST. The Department field is being recognized on a subsequent PATCH, but not the DeptJob.

I can create the same project with the Import.

We need to use the API, as the import file does not support the Certified Payroll number.

JSON is attached

mmadhounAnswer
Participating Frequently
Oct 20, 2026 9:34 PM UTC

​@allancaplan since you explicitly assigning xrefcodes for Department and DeptJob assignments, set the IsAssignedAll to false for both and try your POST payload again.

4 replies

New Participant
Oct 20, 2026 2:38 PM UTC

JSON:

{
  "ProjectXRefCode": "ACTEST12345",
  "ShortName": "Allan Test",
  "CreationOrgUnitXRefCodes": [
    "AC"
  ],
  "ProjectPriority": 50,
  "AccountNum": "1234",
  "IFRSClassification": true,
  "LongName": "Lng Name Project",
  "CertifiedPayrollProjectNumber": "12345",
  "ProjectTypeXRefCode": "PRIVATE",
  "StartDate": "2026-01-29T21:08:25.623Z",
  "DueDate": "2027-09-29T21:08:25.623Z",
  "BudgetHours": 0,
  "BudgetAmount": 0,
  "EmployeeAssignment": {
    "IsAssignedAll": true,
    "XrefCodes": [
    ]
  },
  "DeptJobAssignment": {
    "IsAssignedAll": true,
    "XrefCodes": [
                "AC_OP_OPS_FIELD_STR"
                    ]
  },  
  "DepartmentAssignment": {
    "IsAssignedAll": true,
    "XrefCodes": [
        "AC_FIELD_STR"
    ]
  },
  "PayCodeXRefCodeChargeToHours": {
    "IsAssignedAll": true,
    "XrefCodes": [
    ]
  },
  "PayCodeXRefCodeChargeToAmount": {
    "IsAssignedAll": true,
    "XrefCodes": [
    ]
  },
  "PctComplete": 10,
  "ParentProjectXRefCode": "AC_PRIVATE",
  "TaxLocationAddressXRefCode": "FLSTATE"
}

mmadhounAnswer
Participating Frequently
Oct 20, 2026 9:34 PM UTC

​@allancaplan since you explicitly assigning xrefcodes for Department and DeptJob assignments, set the IsAssignedAll to false for both and try your POST payload again.

New Participant
Oct 20, 2026 10:24 PM UTC

​@mmadhoun Thanks. What is the intention of that parameter? I thought true would mean to assign the deptjobs to the project

Participating Frequently
Oct 20, 2026 10:53 PM UTC

No problem. I would only use true when I want to clear out the assignments if they already exists via PATCH call or want to have no assignments on a new project via POST.