Saltar al contenido principal
POST
/
api
/
v1
/
effluents
Insert or update an effluent
curl --request POST \
  --url https://www.manglai.io/api/v1/effluents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "companyId": "<string>",
  "buildingIds": [
    "<string>"
  ],
  "type": "limit",
  "year": 123,
  "dbo": 123,
  "dqo": 123,
  "ss": 123,
  "pt": 123,
  "nt": 123
}
'
{
  "status": "ok"
}

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json

The effluent data to be inserted or updated.

id
string

The unique identifier of the effluent.

companyId
string

The company associated with the effluent.

buildingIds
string[]

The building IDs associated with the effluent.

type
enum<string>

The type of the effluent.

Opciones disponibles:
limit,
quality
year
number

The year of the effluent data.

dbo
number

Biochemical Oxygen Demand (mg/L).

dqo
number

Chemical Oxygen Demand (mg/L).

ss
number

Suspended Solids (mg/L).

pt
number

Total Phosphorus (mg/L).

nt
number

Total Nitrogen (mg/L).

Respuesta

Successfully inserted or updated the effluent.

status
string
Ejemplo:

"ok"