LiquidPlanner Classic Forum
folder update?
over 5 years ago by LiquidPlanner Support(edited)
Posted on behalf of First/Last Name (or customer). Original Post Date 2013-05-13
I'm trying to do a folder update.
Something simple like update the name of the folder:
I'm hitting this URL
Sending this as payload (PUT HTTP VERB):
{"folder":{"work":0.0,"alerts":[],"project_id":null,"client_id":null,"created_at":null,"created_by":null,"done_on":null,"started_on":null,"delay_until":null,"description":"","earliest_finish":null,"earliest_start":null,"expected_finish":null,"expected_start":null,"p98_finish":null,"global_priority":[],"has_note":null,"high_effort_remaining":null,"is_done":null,"is_on_hold":null,"latest_finish":null,"low_effort_remaining":null,"manual_alert":null,"max_effort":null,"name":"Untitled Folder[UPDATED]","owner_id":null,"parent_id":null,"parent_ids":[],"parent_crumbs":[],"promise_by":null,"external_reference":null,"updated_at":null,"updated_by":null,"id":9070794,"children":[],"type":"Folder"}}
And I'm getting this as response:
{"work":0.0,"alerts":[],"project_id":9070764,"client_id":null,"created_at":"2013-05-15T17:54:13+00:00","created_by":260403,"done_on":null,"started_on":null,"delay_until":null,"description":"","earliest_finish":null,"earliest_start":null,"expected_finish":null,"expected_start":null,"p98_finish":null,"global_priority":[1,2002,201],"has_note":false,"high_effort_remaining":0.0,"is_done":false,"is_on_hold":false,"latest_finish":null,"low_effort_remaining":0.0,"manual_alert":null,"max_effort":null,"name":"Untitled Folder[UPDATED]","owner_id":0,"parent_id":null,"parent_ids":[6853445,9070764],"parent_crumbs":["Untitled Project"],"promise_by":null,"external_reference":null,"updated_at":"2013-05-15T17:54:13+00:00","updated_by":260403,"type":"Folder","id":9070794,"errors":{"parent_id":"must be a project or a folder"}}
As you can see it looks like the update was processed.
BUT the HTTP status code I'm getting is 422, like if there was some sort of error though the message kind of show it was ok.
Any ideas?