Organizations

Add a user to organization

post/api/organizations/{id}/users

Request

  • Base URL: https://ewihub.posechecker.com (the document declares no server; this is the origin it was published from)
  • URL: https://ewihub.posechecker.com/api/organizations/{id}/users
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

firstNamestring required

First name

lastNamestring required

Last name

emailstring required

User email

usernamestring required

Username

passwordstring required

User password

Example request

{
  "firstName": "John",
  "lastName": "Doe",
  "email": "user@ewi.com",
  "username": "john_doe",
  "password": "password123"
}

Response

idstring required

User ID

firstNamestring required

First name

lastNamestring required

Last name

emailstring required

Email address

usernamestring required

Username

role'superAdmin' | 'orgUser' required

User role

organizationstring

Organization ID

createdAtstring date-time required

User creation timestamp

updatedAtstring date-time required

User update timestamp

Example response

{
  "id": "507f1f77bcf86cd799439011",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "username": "john_doe",
  "role": "orgUser",
  "organization": "507f1f77bcf86cd799439011",
  "createdAt": "2024-01-01T00:00:00.000Z",
  "updatedAt": "2024-01-01T00:00:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.