Semaphor

Create a tenant user

Creates a new user inside a tenant that belongs to your organization. The email address must be unique within the target tenant. You can optionally supply a custom id (letters, numbers, hyphens, and underscores only), a role (VIEWER or POWER_USER, defaults to VIEWER), and a department label. Requires an Admin role.

POST
/api/management/v1/tenant-users

Authorization

BearerAuth
AuthorizationBearer <token>

A project-scoped access token. Generate one via the Token API with your project ID and project secret.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X post "https://semaphor.cloud/api/management/v1/tenant-users" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com",    "name": "string",    "tenantId": "string"  }'
{
  "message": "string",
  "user": {
    "id": "string",
    "email": "user@example.com",
    "name": "string",
    "role": "VIEWER",
    "department": "string",
    "isActive": true,
    "tenantId": "string",
    "tenantName": "string",
    "organizationName": "string",
    "type": "tenant",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
{
  "error": "string",
  "details": "string",
  "code": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}
{
  "error": "string",
  "details": "string",
  "code": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}
{
  "error": "string",
  "details": "string",
  "code": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}
{
  "error": "string",
  "details": "string",
  "code": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}
{
  "error": "string",
  "details": "string",
  "code": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}
{
  "error": "string",
  "details": "string",
  "code": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ]
}