Skip to main content
PATCH
/
technical-installations
/
v2
/
bo
/
library
/
{technicalInstallationId}
Update technicalInstallation
curl --request PATCH \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/technical-installations/v2/bo/library/{technicalInstallationId} \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --header 'x-session-token: <x-session-token>' \
  --data '
{
  "nameFr": "Ascenseurs",
  "nameEn": "Elevators",
  "nameDe": "Aufzüge"
}
'
{
  "data": {
    "id": 1,
    "image": "organization/42/images/090d48fa-4735-4d99-8adf-d219fc4ebbff.png",
    "sourceType": 1,
    "organizationId": 10,
    "archivedAt": "2024-05-20T10:15:00.000Z",
    "updatedAt": "2024-12-09T14:23:00.000Z",
    "createdAt": "2024-01-15T08:45:00.000Z",
    "deletedAt": "2024-03-12T16:30:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

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

Headers

content-type
string
required

Content type, must be "application/json".

Allowed value: "application/json"
x-session-token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Path Parameters

technicalInstallationId
integer
required

Unique identifier of the technical installation.

Required range: -9007199254740991 <= x <= 9007199254740991
Example:

1

Body

application/json

Details required to update technical installation

nameFr
string

French name of the technical installation.

Example:

"Ascenseurs"

nameEn
string

English name of the technical installation.

Example:

"Elevators"

nameDe
string

German name of the technical installation.

Example:

"Aufzüge"

Response

200 - application/json

The technicalInstallation has been updated

data
object
required