nerves_hub_user_api v0.6.0 NervesHubUserAPI.ProductUser
Manage ProductUsers on NervesHub
Path: /orgs/:org_name/products/:product_name/users
Link to this section Summary
Functions
Add a user to the org with a role.
List all users for a product.
Remove a user from the product.
Update an existing org user's role.
Link to this section Functions
Link to this function
add(org_name, username, role, auth)
Link to this function
add(org_name, product_name, username, role, auth)
add(org_name, product_name, username, role, auth)
add(
String.t(),
String.t(),
String.t(),
NervesHubUserAPI.role(),
NervesHubUserAPI.Auth.t()
) :: {:error, any()} | {:ok, any()}
add( String.t(), String.t(), String.t(), NervesHubUserAPI.role(), NervesHubUserAPI.Auth.t() ) :: {:error, any()} | {:ok, any()}
Add a user to the org with a role.
Verb: POST Path: /orgs/:org_name/product/:product_name/users
Link to this function
list(org_name, product_name, auth)
list(org_name, product_name, auth)
list(String.t(), String.t(), NervesHubUserAPI.Auth.t()) ::
{:error, any()} | {:ok, any()}
list(String.t(), String.t(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
List all users for a product.
Verb: GET Path: /orgs/:org_name/product/:product_name/users
Link to this function
path(org, product)
Link to this function
remove(org_name, product_name, username, auth)
Remove a user from the product.
Verb: DELETE Path: /orgs/:org_name/product/:product_name/users/:username
Link to this function
update(org_name, product_name, username, role, auth)
update(org_name, product_name, username, role, auth)
update(
String.t(),
String.t(),
String.t(),
NervesHubUserAPI.role(),
NervesHubUserAPI.Auth.t()
) :: {:error, any()} | {:ok, any()}
update( String.t(), String.t(), String.t(), NervesHubUserAPI.role(), NervesHubUserAPI.Auth.t() ) :: {:error, any()} | {:ok, any()}
Update an existing org user's role.
Verb: PUT Path: /orgs/:org_name/product/:product_name/users/:username