This endpoint allows you to create a new commission. It expects the following information in the body: visit type, decision, commission date, site ID, building work ID, and building work details (description, authorization number). The mandatory fields for this request are visit type and site ID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Session token used for authenticating the request.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"
Content type, must be "application/json".
application/json The unique identifier for the commission.
Request body for creating a new commission.
The ID of the site associated with this commission.
123
The type of visit: 0 = Inspection, 1 = Survey, 2 = Assessment, 3 = Approval.
0 1
The decision related to the commission: 0 = Pending, 1 = Approved, 2 = Denied, 3 = Reconsidered.
0 1
The date of the commission.
"2024-12-01T12:34:56.000Z"
The ID of the building work if it is already registered.
456
Any additional comments or notes regarding the commission.
"This commission is for urgent repairs."
Commission created successfully.