VismaBouwsoftAPICalls.v1_GET_ProjectPhases | Method |
This API call is used to get fields of a(n) ProjectPhase(s)
HTTP method | API version |
---|---|
GET | v1 |
Don’t forget to put the Authorization field in the header
API Path: /ProjectPhases/
or
API Path: /ProjectPhases/{id}
or
API Path: /ProjectPhases/{id}/note_html
or
API Path: /ProjectPhases/{id}/note_plain
or
API Path: /ProjectPhases/{id}/note_rtf
You can make this API call:
* without the key field id to get a list of ProjectPhases
* with the key field id as the path parameter (the specific id of the ProjectPhase you want to get)
Fields
The following fields are available:
Field Name | Type |
---|---|
id | Number |
project_id | Number |
project_pnr | Number |
project_unr | Number |
project_name | String |
projectphase_id | Number |
title | String |
date_executed | String |
estimatedwork_hours | Number |
date_deadline | String |
amount | Number |
note | String |
/ProjectPhases/
API Path: /ProjectPhases/
If everything succeeds the HTTP response status is 200
(200 OK)
If there is something wrong with the request, the response status and code is 400
(400 Bad Request)
If you forget to send the Authorization, the response status is 401
(401 Unauthorized)
If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)
For an explanation of all possible errors, please consult our section on possible answers to API calls here
Examples:
https://ra.bouwsoft.be/api/v1/ProjectPhases
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: PbffWxfDbmzSftlbtfzRqkDVfGGGfGObflAkzOfOUfmGtAVAbl
Query Parameters :
ParameterName: filter, ParameterValue: project_pnr eq 20170312
Success gives statuscode 200 And the following result
{
“Content-Range”:“0–21/22”,
“Records”:
[
{
"id": –1060,
"project_id": 1090,
"project_pnr": 20170312,
"project_unr": 448,
"project_name": "Vloer leggen",
"projectphase_id": 1060,
"title": "voorontwerp",
"date_executed": "",
"estimatedwork_hours": 0,
"date_deadline": "",
"amount": 0.0,
"note": ""
},
{
"id": 8341,
"project_id": 1090,
"project_pnr": 20170312,
"project_unr": 448,
"project_name": "Vloer leggen",
"projectphase_id": 992,
"title": "In afwachting",
"date_executed": "",
"estimatedwork_hours": 0,
"date_deadline": "2020–03–01",
"amount": 0.0,
"note": ""
}
,
…
]
}
/ProjectPhases/{id}
If everything succeeds the HTTP response status is 200
(200 OK)
If there is something wrong with the request, the response status and code is 400
(400 Bad Request)
If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)
If you forget to send the Authorization, the response status is 401
(401 Unauthorized)
If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)
For an explanation of all possible errors, please consult our section on possible answers to API calls here
Examples:
https://ra.bouwsoft.be/api/v1/ProjectPhases/3495
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: rPffWxfmmVzSfDPlOfzRqmOkfIUIGfAkfrPbzbkAkIGfDPlIVD
Success gives statuscode 200 And the following result
{
“Content-Range”:“0–0/1”,
“Records”:
[
{
"id": 3495,
"project_id": 1090,
"project_pnr": 20170312,
"project_unr": 448,
"project_name": "Vloer leggen",
"projectphase_id": 2,
"title": "Aanmaak Project",
"date_executed": "2017–11–14",
"estimatedwork_hours": 0,
"date_deadline": "2019–06–03",
"amount": 0.0,
"note": ""
}
]
}
/ProjectPhases/{id}/note_html
If everything succeeds the HTTP response status is 200
(200 OK)
If there is something wrong with the request, the response status and code is 400
(400 Bad Request)
If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)
If you forget to send the Authorization, the response status is 401
(401 Unauthorized)
If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)
For an explanation of all possible errors, please consult our section on possible answers to API calls here
Examples:
https://ra.bouwsoft.be/api/v1/ProjectPhases/10214/note_html
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: tmtfWxfVmkzSfmIUmfzRqVIrfVklfGjOfIUkzkrDPIkGrkmkbV
Success gives statuscode 200 And the following result
<HTML><BODY>
<DIV STYLE="text-align: left;"><SPAN STYLE="font-family: Century Gothic;font-size: 11pt;color: #000000;">fsgfdgfdgfdg</SPAN></DIV>
</BODY></HTML>
/ProjectPhases/{id}/note_plain
If everything succeeds the HTTP response status is 200
(200 OK)
If there is something wrong with the request, the response status and code is 400
(400 Bad Request)
If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)
If you forget to send the Authorization, the response status is 401
(401 Unauthorized)
If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)
For an explanation of all possible errors, please consult our section on possible answers to API calls here
Examples:
https://ra.bouwsoft.be/api/v1/ProjectPhases/10214/note_plain
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: tmtfWxfVmkzSfmIUmfzRqVIrfVklfGjOfIUkzkrDPIkGrkmkbV
Success gives statuscode 200 And the following result
fsgfdgfdgfdg
/ProjectPhases/{id}/note_rtf
If everything succeeds the HTTP response status is 200
(200 OK)
If there is something wrong with the request, the response status and code is 400
(400 Bad Request)
If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)
If you forget to send the Authorization, the response status is 401
(401 Unauthorized)
If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)
For an explanation of all possible errors, please consult our section on possible answers to API calls here
Examples:
https://ra.bouwsoft.be/api/v1/ProjectPhases/10214/note_rtf
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: tmtfWxfVmkzSfmIUmfzRqVIrfVklfGjOfIUkzkrDPIkGrkmkbV
Success gives statuscode 200 And the following result
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil Century Gothic;}}{\colortbl ;\red0\green0\blue0;}{*\generator Spikesoft 16.02;}\ql\li0\f0\fs22\cf1 fsgfdgfdgfdg}