Skip to main content
POST
/
Company
/
{companyId}
/
User
Add a user to a company
curl --request POST \
  --url https://api.plantpredict.terabase.energy/Company/{companyId}/User \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "jobTitle": "API Demo",
    "firstName": "Name 1",
    "lastName": "Name 2",
    "email": "user-email@company.comco",
    "roles": [
      {
        "role": {
          "name": "user"
        }
      }
    ]
  }
]
'
{
  "message": "The request is invalid.",
  "modelState": {
    "latitude": [
      "The field Latitude must be between -90 and 90."
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.plantpredict.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> on every request. See the Authentication section of the API description for how to fetch a token.

Path Parameters

companyId
integer
required

Body

application/json
email
string<email>
firstName
string
lastName
string
role
string

Response

User added