Skip to main content

Create new user

POST 

https://demo.frigate.video/api/users

Creates a new user with the specified username, password, and role. Requires admin role. Password must meet strength requirements:

  • Minimum 8 characters
  • At least one uppercase letter
  • At least one digit
  • At least one special character (!@#$%^&*(),.?":{}|<>)

Request​

Bodyrequired

    usernameUsername (string)required
    passwordPassword (string)required
    role object
    anyOf
    string

Responses​

Successful Response

Schema
    import http.client
    import json

    conn = http.client.HTTPSConnection("demo.frigate.video")
    payload = json.dumps({
    "username": "string",
    "password": "string",
    "role": "string"
    })
    headers = {
    'Content-Type': 'application/json',
    'Accept': 'application/json'
    }
    conn.request("POST", "/api/users", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
    Request Collapse all
    Base URL
    https://demo.frigate.video/api
    Body required
    {
      "username": "string",
      "password": "string",
      "role": "string"
    }
    
    ResponseClear

    Click the Send API Request button above and see the response here!