Create User
POST{basePath}/:tenant_id/management/users
Creates a User within a specific tenant's IdP
Request
Path Parameters
tenant_id stringrequired
Header Parameters
Authorization stringrequired
- application/json
Bodyrequired
firstNamestring
lastNamestring
usernamestring
emailstring
validboolean
Responses
- 201
- 401
- 406
Created
Tenant Id is not valid.
- application/json
- Schema
- Example (auto)
Schema
typeuri
titlestring
statusint32
detailstring
instanceuri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Unknown Identity vendor.
- application/json
- Schema
- Example (auto)
Schema
typeuri
titlestring
statusint32
detailstring
instanceuri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "{basePath}/:tenant_id/management/users");
var content = new StringContent("{\n \"firstName\": \"string\",\n \"lastName\": \"string\",\n \"username\": \"string\",\n \"email\": \"string\",\n \"valid\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());