Avisi cloud logo
Users

Add a user.

This method now is a no-operation method, for backwards compatability. Subject to removal.

POST
/api/v1/user/add

Response Body

Request was successfully processed. The response body contains the requested data.

TypeScript Definitions

Use the response body type in TypeScript.

oidcId?string
Format"uuid"
identity?string
Format"uuid"
username?string
email?string
createdAt?string
Format"date-time"
canCreateOrganisations?boolean

Invalid request parameters. Please review the documentation for valid parameter values.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

You do not have the necessary permissions to access this resource.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

The requested resource could not be found. Please check the resource URL or identifier.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

An internal error occurred on the server.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown
curl -X POST "https://api.avisi.cloud/api/v1/user/add"
fetch("https://api.avisi.cloud/api/v1/user/add")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.avisi.cloud/api/v1/user/add"

  req, _ := http.NewRequest("POST", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.avisi.cloud/api/v1/user/add"

response = requests.request("POST", url)

print(response.text)
{
  "oidcId": "e09a223a-9da2-4c04-88e7-9b868debaebd",
  "identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
  "username": "string",
  "email": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "canCreateOrganisations": true
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}