Saltar al contenido principal
POST
/
api
/
v1
/
waste-operators
Create Waste Operator
curl --request POST \
  --url https://www.manglai.io/api/v1/waste-operators \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "c5b87f15-33ed-4522-90eb-d23473ab911d",
  "name": "John Doe",
  "email": "john@doe.com",
  "address": "123 Main St, New York, NY 10001",
  "companyId": "c5b87f15-33ed-4522-90eb-d23473ab911d",
  "externalId": "123456789"
}
'
{
  "id": "c5b87f15-33ed-4522-90eb-d23473ab911d",
  "name": "John Doe",
  "email": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
id
string<uuid>
requerido
Ejemplo:

"c5b87f15-33ed-4522-90eb-d23473ab911d"

name
string
requerido
Ejemplo:

"John Doe"

email
string
requerido
Ejemplo:

"john@doe.com"

address
string
requerido
Ejemplo:

"123 Main St, New York, NY 10001"

companyId
string<uuid>
requerido
Ejemplo:

"c5b87f15-33ed-4522-90eb-d23473ab911d"

externalId
string
Ejemplo:

"123456789"

Respuesta

200 - application/json

The waste operator

id
string<uuid>
Ejemplo:

"c5b87f15-33ed-4522-90eb-d23473ab911d"

name
string
Ejemplo:

"John Doe"

email
string