AnsweredAssumed Answered

REST APIs + Project PUT Operation (14.3)

Question asked by DJ.V on Jul 13, 2017
Latest reply on Jul 19, 2017 by DJ.V

So REST API for Project PUT operation expects all attributes. Does that mean each and everyone or just Non-Optional defined into REST APIs?


I'm getting following error: "API-1020 : Could not update resource(s). All attributes are required."


From Model Schema I could see below are non-optional and even with passing these attributes I'm getting above error.


Project {
pageLayout (SVLookupNumber): Page Layout ,
name (string): Investment Name ,
percentCompleteCalcMethod (SVLookupNumber): Percent Complete Calculation Method ,
status (SVLookupNumber): Status ,
code (string): Investment Unique Name ,
scheduleStart (string): Schedule Start ,
scheduleFinish (string): Schedule Finish ,
assignmentPool (SVLookupNumber): Can be set to allow Managers to add non-Team members to Task,
progress (SVLookupNumber): Progress



Sample data used into REST API URL ( for testing:

"pageLayout": "50240",
"name": "This is Project",
"percentCompleteCalcMethod": "0",
"status": "1",
"code": "PRJ0181000",
"scheduleStart": "2016-12-01T08:00:00",
"scheduleFinish": "2017-12-31T17:00:00",
"assignmentPool": "1",
"progress": "1"