View Source NervesHubUserAPI.ProductUser (nerves_hub_user_api v0.9.0)
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
@spec 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
@spec 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
@spec remove(String.t(), String.t(), String.t(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
Remove a user from the product.
Verb: DELETE Path: /orgs/:org_name/product/:product_name/users/:username
@spec 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