VismaBouwsoftAPICalls.v1_POST_AssignmentMachines Method
v1_POST_AssignmentMachines() as String

This API call is used to add a(n) AssignmentMachine

General Description

HTTP method API version
POST v1

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

API Path: /AssignmentMachines
or

Fields

The following fields are available:

Field Name Type
id Number
assignment_id Number
actualcostmachines_id_mapping Number
date String
machine_id Number
nr String
description String
unit String
unit_localized String
quantity Number
from Number
to Number
break Number
job_id Number
job_code String
job_name String
ok Boolean
invoice_id Number
invoice_nr Number

/AssignmentMachines

API Path: /AssignmentMachines/

If everything succeeds the HTTP response status is 201
(201 CREATED)

If you forget to send the Authorization, the response status and code is 401
(401 Unauthorized)

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/AssignmentMachines

with the following parameters :

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

Query Parameters :
ParameterName: columns, ParameterValue: assignment_id%3D%7B%22v1_POST_Assignments%20%28test1%29%22%3A%20%22id%22%7D%2Cmachine_id%3D%7B%22v1_POST_Machines%20%28test1%29%22%3A%20%22id%22%7D%2C%20date%3D%272022–10–24%27%2C%20from%3D8%2C%20to%3D16%2C%20break%3D1%2C%20quantity%3D8.5

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 129,
    "assignment_id": 1294,
    "actualcostmachines_id_mapping": 1762,
    "date": "2022–10–24",
    "machine_id": 1995,
    "nr": "Machine 4844212",
    "description": "Diverse Graafmachine 3 old",
    "unit": "u.",
    "unit_localized": "h.",
    "quantity": 8.5,
    "from": 8,
    "to": 16,
    "break": 1,
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "ok": false,
    "invoice_id": 0,
    "invoice_nr": 0
  }
]
}