Documentation
Call: POST /project
example data:
{
"project": {
"number":"12345",
"name":"Example project",
"address":"street address",
"zip":"12345678",
"city":"City",
"location_map":"{\"latitude\":37.432104,\"longitude\":-95.68372339999996}",
}
}
Call returns:
{
"project": {
"number": "12345",
"name": "Example project",
"address": "street address",
"zip": "12345678",
"city": "City",
"location_map": "{\"latitude\":37.432104,\"longitude\":-95.68372339999996}",
"image": [],
"contact_person": "",
"phone": "",
"email": "",
"id": 295978
}
}
CURL example
curl -X PUT \
https://api.movenium.com/1.1/projects \
-H 'Authorization: Bearer <token>' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"project":{"number":"12345","name":"Example project","address":"street address","zip":"12345678","city":"City","location_map":"{\"latitude\":37.432104,\"longitude\":-95.68372339999996}"}}'
Call: put /projects/<id>
example data:
{
"project": {
"link.tasks":
["296019","296018"]
}
}
Call returns:
{
"project": {
"number": "1",
"name": "example project",
"address": "street address",
"zip": null,
"city": "city",
"location_map": "{\"latitude\":37.432104,\"longitude\":-95.68372339999996}",
"image": [],
"contact_person": null,
"contact_user": null,
"help": null,
"phone": null,
"email": null,
"description": null,
"id": 295968
}
}
CURL example
curl -X PUT \
'https://api.movenium.com/1.1/projects/<id>' \
-H 'Authorization: Bearer <token>' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"project":{"link.tasks":["296019","296018"]}}'
Call: POST /worktask
example data:
{
"worktask": {
"name":"example worktask",
"date":"2018-06-01",
"est_hours":"08:00",
"notes":"Description for task",
"project":"229725",
"user":"229474",
}
}
Call returns:
{
"worktask": {
"name": "example worktask",
"date": "2018-06-01",
"project": 229725,
"user": 229474,
"est_hours": 8,
"notes": "Description for task",
"files": [],
"photos": [],
"status": "open",
"id": 229734
}
}
CURL example
curl -X POST \
https://api.movenium.com/1.1/worktasks \
-H 'Authorization: Bearer <token>' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"worktask":{"name":"example worktask","date":"2018-06-01","est_hours":"08:00","notes":"Description for task","project":"229725","user":"229474"}}'
Call: PUT /worktimes/<id>
example data:
{
"worktime": {
"locked":false
}
}
Call returns:
{
"worktime": {
"date": "2018-05-23",
"status": "open",
"group": [],
"user": 229465,
"project": 229455,
"starttime": "08:00",
"endtime": "12:00",
"work_hours": 4,
"task": null,
"description": null,
"project_owner": 229451,
"employer": 229461,
"id": 229493
}
}
CURL example
curl -X PUT \
'https://api.movenium.com/1.1/worktimes/<id>' \
-H 'Authorization: Bearer <token>' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"worktime":{"locked":false}}'
Call: PUT /worktasks/<id>
example data:
{
"worktask": {
"status":"fixed"
}
}
Call returns:
{
"worktask": {
"name": "example worktask",
"date": "2018-06-01",
"project": 229725,
"user": 229474,
"est_hours": 8,
"hours": null,
"notes": "Description for task",
"files": [],
"photos": [],
"comments": null,
"status": "fixed",
"id": 229734
}
}
CURL example
curl -X PUT \
'https://api.movenium.com/1.1/worktasks/<id>' \
-H 'Authorization: Bearer <token>' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"worktask":{"status":"fixed"}}'