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 (http://clarity-server.com/niku/rest/describe/index.html) 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"
}