Expand my Community achievements bar.

The next phase for Workfront Community ideas is coming soon. Learn all about it in our blog!

Creating a Project Expense using the Workfront API

Avatar

Level 3

Has anybody created a new Project Expense using the Workfront API and do you have any examples.

I'm unsure of what data needs to go into objID and expObjCode, I think expObjCode is possibly EXPNS but not 100%.

 
I do have experience using the API but this has me baffled.
 
UPDATED
I have now got this working for anybody interested, in order to create a new Expense using the api, your json needs to look something like this.
{
    "actualAmount": "10",
    "billingRecordID": "If you have one, this expense will be assigned to that billing record",
    "description": "Any Name",
    "expObjCode": "PROJ",
    "expenseTypeID": "The ID of your expense type",
    "isBillable": true or false,
    "topObjID": "This is the project id",
    "projectID": "This is the project id"
}
 
Thanks
0 Replies