Skip to main content
POST
/
technical-installations
/
v2
/
bo
/
library
Create technicalInstallation
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/technical-installations/v2/bo/library \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --header 'x-session-token: <x-session-token>' \
  --data '
{
  "name": "Central Boiler",
  "image": {
    "name": "example.jpg",
    "mimeType": "image/jpeg",
    "size": 1024
  }
}
'
{
  "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",
    "presignedUrl": "https://example.com/presigned-url"
  }
}

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"

Body

application/json

Details required to create technicalInstallation

name
string
required

Translated name of the technical installation

Maximum string length: 255
Example:

"Central Boiler"

image
object
required

Response

201 - application/json

The technicalInstallation has been created

data
object
required