Skip to main content

Update Role

PUT 

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

Update Role

Request​

Path Parameters

    username Usernamerequired

Bodyrequired

    roleRole (string)required

Responses​

Successful Response

Schema
    import http.client
    import json

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

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