VismaBouwsoftAPICalls.v1_GET_AssignmentDevices | Method |
This API call is used to get fields of a(n) AssignmentDevice(s)
HTTP method | API version |
---|---|
GET | v1 |
Don’t forget to put the Authorization field in the header
API Path: /AssignmentDevices/
or
API Path: /AssignmentDevices/{id}
You can make this API call:
* without the key field id to get a list of AssignmentDevices
* with the key field id as the path parameter (the specific id of the AssignmentDevice you want to get)
Fields
The following fields are available:
Field Name | Type |
---|---|
id | Number |
assignment_id | Number |
device_id | Number |
device_nr | String |
device_description | String |
repair | Boolean |
maintenance | Boolean |
/AssignmentDevices/
API Path: /AssignmentDevices/
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/AssignmentDevices
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: jfIfWxffAkzSfrbfkfzRqPmGfUffGfDjfIlbzPOIOGOflIjmbk
Query Parameters :
ParameterName: limit, ParameterValue: 5
ParameterName: sort, ParameterValue: id
Success gives statuscode 200 And the following result
{
“Content-Range”:“0–4/6275”,
“Records”:
[
{
"id": 13,
"assignment_id": 5,
"device_id": 6,
"device_nr": "TE.001",
"device_description": "Tegels Antraciet 40x40cm",
"repair": false,
"maintenance": true
},
{
"id": 14,
"assignment_id": 5,
"device_id": 20,
"device_nr": "Viess R 001",
"device_description": "Vitoset universele radiator 300x1000mm",
"repair": false,
"maintenance": true
}
,
…
]
}
https://ra.bouwsoft.be/api/v1/AssignmentDevices
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: mtffWxfrVUzSfVffDfzRqtGOfbtIkGjbftOkzrAlOrPItkGPPG
Query Parameters :
ParameterName: filter, ParameterValue: assignment_id eq 1294
ParameterName: limit, ParameterValue: 1
ParameterName: sort, ParameterValue: id
Success gives statuscode 200 And the following result
{
“Content-Range”:“0–0/1”,
“Records”:
[
{
"id": 4231,
"assignment_id": 1294,
"device_id": 880,
"device_nr": "190165",
"device_description": "Inox buizen",
"repair": false,
"maintenance": false
}
]
}
/AssignmentDevices/{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/AssignmentDevices/1294
with the following parameters :
Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: IAOfWxfGfIzSfVmllfzRqktDfVtrGfIAfVlbzPlrfrGfIGDVVD
Success gives statuscode 200 And the following result
{
“Content-Range”:“0–0/1”,
“Records”:
[
{
"id": 1294,
"assignment_id": 480,
"device_id": 390,
"device_nr": "TE.004",
"device_description": "Tegels Citroengeel 40*60",
"repair": false,
"maintenance": false
}
]
}