Movenium REST API 1.1

Documentation

insertRow

Call: POST /<form>

post:

  • data as JSON for the new row to be added

example data:

{
    "worktime": {
      "user":"229215",
      "project":"229291",
      "starttime":"0800",
      "endtime":"16:30",
      "date":"2014-01-14",
      "description":"description for worktime"
    }
}

Call returns:

example if insert was succesfull

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
}

example if insert was unsuccesfull

status: 400

{
     "error": "values_missing",
     "error_msg": "Row couldn't be added. Values weren't found from post"
}

CURL example

    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"}}'