Skip to main content
PUT
/
commissions
/
v1
/
{commissionId}
Update a commission details
curl --request PUT \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/commissions/v1/{commissionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'X-Session-Token: <x-session-token>' \
  --data '
{
  "decision": 2,
  "commissionDate": "2024-12-01T12:34:56.000Z",
  "comment": "Updated details"
}
'
{
  "data": {
    "buildingWorkId": 123,
    "commissionDate": "2024-12-01T12:34:56.000Z",
    "commissionType": 123,
    "createdAt": "2024-12-01T12:34:56.000Z",
    "createdById": 123,
    "decision": 123,
    "id": 123,
    "signatureUrl": "https://example.com/signed-doc",
    "signedBy": 123,
    "signedDate": "2025-01-01T00:00:00.000Z",
    "siteId": 123,
    "comment": "Updated details",
    "status": 123,
    "updatedAt": "2024-12-01T12:34:56.000Z",
    "visitType": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Session-Token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Content-Type
enum<string>
required

Content type, must be "application/json".

Available options:
application/json

Path Parameters

commissionId
string
required

The unique identifier of the commission to update.

Body

application/json

Request body to update the commission details.

decision
required

The decision made for the commission. Values: 0 (Pending), 1 (Approved), 2 (Rejected), 3 (Reviewed)

Available options:
0
Example:

2

commissionDate
string
required

The date when the commission was made.

Example:

"2024-12-01T12:34:56.000Z"

comment
string

Optional comment regarding the commission.

Example:

"Updated details"

Response

201 - application/json

Commission successfully updated.

data
object
required