LiquidPlanner Classic Forum

Ask a Question
Back to All

How to create an event through the API

(edited)

Posted on behalf of Mark Hodgkinson. Original posting date 2015-12-07.

I am trying to create an event through the API, and it seems to work, but not properly. It always seems to create my Event as a Task.

The URL is: https://app.liquidplanner.com/api/workspaces/xxxxxxx/tasks

The data is:

{"task":

{"activity_id":0,"work":0.0,"alerts":null,"project_id":null,"client_id":null,"client_name":null,"created_at":null,"created_by":0,
"custom_field_values":null,"done_on":null,"started_on":null,"start_date":"2015-12-15T00:00:00","description":null,
"earliest_finish":null,"earliest_start":null,"expected_finish":null,"expected_start":null,"p98_finish":null,"global_priority":null,
"global_package_priority":null,"has_note":false,"high_effort_remaining":0.0,"is_done":false,"is_on_hold":false,
"effective_is_on_hold":false,"is_packaged_version":false,"is_shared":false,"latest_finish":null,"low_effort_remaining":0.0,
"manual_alert":null,"max_effort":null,"name":"Holiday for xxx","assignments":[{"person_id":607569,"team_id":null,"low_effort_remaining":0.0,"high_effort_remaining":0.0,"treeitem_id":0,"space_id":0,
"activity_id":0,"is_done":false,"daily_limit":null,"position":0,"hours_logged":0.0,"expected_finish":"2015-12-15",
"expected_start":"2015-12-15","can_destroy":false,"type":"Event","id":0}],"parent_id":25590341,"finish_date":"2015-12-15T00:00:00",
"external_reference":null,"package_id":null,"parent_ids":null,"parent_crumbs":null,"package_ids":null,"package_crumbs":null,
"occurrences":null,"updated_at":null,"updated_by":0,"item_email":null,"type":"Event","id":0}}

Any idea why?

I am using C#, so any example or assistance in C# would be gratefully appreciated!