VismaBouwsoftAPICalls.v1_POST_AssignmentLabor Method
v1_POST_AssignmentLabor() as String

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

General Description

HTTP method API version
POST v1

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

API Path: /AssignmentLabor
or

Fields

The following fields are available:

Field Name Type
id Number
assignment_id Number
actualcosttimeworked_id_mapping Number
date String
employee_id Number
address_id Number
name String
responsible Boolean
job_id Number
job_code String
job_name String
ok Boolean
from Number
to Number
break Number
invoice_id Number
invoice_nr Number

/AssignmentLabor

API Path: /AssignmentLabor/

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

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%2Cemployee_id%3D%7B%22v1_POST_Employees%20%28test1%29%22%3A%20%22id%22%7D%2Cfrom%3D7%2Cto%3D17%2Cbreak%3D1%2Cdate%3D%272022–10–24%27

Success gives statuscode 201 And the following result

{“RecordChanges”: [
  {
    "id": 723,
    "assignment_id": 1294,
    "actualcosttimeworked_id_mapping": 9685,
    "date": "2022–10–24",
    "employee_id": 532,
    "address_id": 0,
    "name": "WnDirk API",
    "responsible": true,
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "ok": false,
    "from": 7,
    "to": 17,
    "break": 1,
    "invoice_id": 0,
    "invoice_nr": 0
  }
]
}