Module user_api

Source

Enums§

DeleteUserApiKeyError
struct for typed errors of method delete_user_api_key
SetUserApiKeyError
struct for typed errors of method set_user_api_key
UpdateUserError
struct for typed errors of method update_user

Functions§

delete_user_api_key
Delete an api key for the auth’ed user.
set_user_api_key
Create a new api key for the auth’ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth’ed user who calls this endpoint.
update_user
Update a user’s information. If the user_id is not provided, the auth’ed user will be updated. If the user_id is provided, the role of the auth’ed user or api key must be an admin (1) or owner (2) of the organization.