VismaBouwsoftAPICalls.v1_PUT_AssignmentDevices Method
v1_PUT_AssignmentDevices() as String

This API call is used to update fields of a(n) AssignmentDevice

General Description

HTTP method API version
PUT v1

Don’t forget to put the Authorization field in the header

API Path: /AssignmentDevices/{id}

You make this API call with the key field id as the path parameter (the id of the AssignmentDevice you want to update)

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/{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/880

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: IAOfWxfGfIzSfVmllfzRqktDfVtrGfIAfVlbzPlrfrGfIGDVVD

Query Parameters :
ParameterName: columns, ParameterValue: maintenance=False

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 1366,
    "assignment_id": 481,
    "device_id": 299,
    "device_nr": "TE.004",
    "device_description": "Tegels Citroengeel 40*60",
    "repair": false,
    "maintenance": false
  }
]
}