Documentation
Call: POST /<form>
post:
example data:
{ "worktime": { "user":"229215", "project":"229291", "starttime":"0800", "endtime":"16:30", "date":"2014-01-14", "description":"description for worktime" } }
Call returns:
status: 201
{ "date": "2014-01-14", "group": 0, "user": 229215, "project": 229291, "task": 0, "starttime": "08:00", "endtime": "16:30", "work_hours": "8:30", "description": "description for worktime", "id": 123 }
status: 400
{ "error": "values_missing", "error_msg": "Row couldn't be added. Values weren't found from post" }
curl -X POST \ https://api.movenium.com/1.1/users \ -H 'authorization: Bearer <token>' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -d '{"user":{"firstname":"firstname","lastname":"lastname","userlevel":"1","number":"12345678","phone":"+358401234578","email":"email@email.com"}}'