user_api

edgeimpulse_api v1.0.0

edgeimpulse_api.api.user_api module

class edgeimpulse_api.api.user_api.UserApi(api_client=None)

Bases: object

accept_terms_of_service(**kwargs)

Accept Terms of Service

Accept Terms of Service.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

activate_current_user(activate_user_request: ActivateUserRequest, **kwargs)

Activate current user

Activate the current user account (requires an activation code). This function is only available through a JWT token.

  • Parameters

    • activate_user_request (ActivateUserRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

activate_user(user_id: StrictInt, activate_user_request: ActivateUserRequest, **kwargs)

Activate user

Activate a user account (requires an activation code). This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • activate_user_request (ActivateUserRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

activate_user_by_third_party_activation_code(activate_user_by_third_party_activation_code_request: ActivateUserByThirdPartyActivationCodeRequest, **kwargs)

Activate user by third party activation code

Activate a user that was created by a third party. This function is only available through a JWT token.

  • Parameters

    • activate_user_by_third_party_activation_code_request (ActivateUserByThirdPartyActivationCodeRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

change_password_current_user(change_password_request: ChangePasswordRequest, **kwargs)

Change password current user

Change the password for the current user account. This function is only available through a JWT token.

  • Parameters

    • change_password_request (ChangePasswordRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

change_password_user(user_id: StrictInt, change_password_request: ChangePasswordRequest, **kwargs)

Change password

Change the password for a user account. This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • change_password_request (ChangePasswordRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

convert_current_user(convert_user_request: ConvertUserRequest, **kwargs)

Convert current evaluation user

Convert current evaluation user account to regular account.

  • Parameters

    • convert_user_request (ConvertUserRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

create_developer_profile(**kwargs)

Create developer profile

Create a developer profile for the current active user.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

create_evaluation_user(**kwargs)

Create evaluation user

Creates an evaluation user and a new project, and redirects the user to the new project.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

create_user(create_user_request: CreateUserRequest, **kwargs)

Create user

Create a new user and project

  • Parameters

    • create_user_request (CreateUserRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

delete_current_user(**kwargs)

Delete current user

Delete a user. This function is only available through a JWT token, and can only remove the current user.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

delete_photo_current_user(**kwargs)

Delete photo

Delete user profile photo. This function is only available through a JWT token.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

delete_user(user_id: StrictInt, **kwargs)

Delete user

Delete a user. This function is only available through a JWT token, and can only remove the current user.

  • Parameters

    • user_id (int) – User ID (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

get_current_user(**kwargs)

Get current user

Get information about the current user. This function is only available through a JWT token.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

  • Return type

    GetUserResponse

get_user(user_id: StrictInt, **kwargs)

Get user

Get information about a user. This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

  • Return type

    GetUserResponse

get_user_by_third_party_activation_code(user_by_third_party_activation_request: UserByThirdPartyActivationRequest, **kwargs)

Get user by third party activation code

Get information about a user through an activation code. This function is only available through a JWT token.

  • Parameters

    • user_by_third_party_activation_request (UserByThirdPartyActivationRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

  • Return type

    GetUserResponse

get_user_need_to_set_password(username_or_email: StrictStr, **kwargs)

Get user password state

Tells whether the user needs to set its password.

  • Parameters

    • username_or_email (str) – Username or email (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

list_emails_current_user(**kwargs)

List emails

Get a list of all emails sent by Edge Impulse to the current user. This function is only available through a JWT token, and is not available for all users.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

list_emails_user(user_id: StrictInt, **kwargs)

List emails

Get a list of all emails sent by Edge Impulse to a user. This function is only available through a JWT token, and is not available for all users.

  • Parameters

    • user_id (int) – User ID (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

list_organization_buckets_current_user(**kwargs)

Get buckets current user

List all organizational storage buckets that the current user has access to. This function is only available through a JWT token.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

list_organization_buckets_user(user_id: StrictInt, **kwargs)

Get buckets

List all organizational storage buckets that a user has access to. This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

list_organizations_current_user(**kwargs)

Get organizations

List all organizations that the current user is a member of. This function is only available through a JWT token.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

list_organizations_user(user_id: StrictInt, **kwargs)

Get organizations

List all organizations for a user. This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

request_activation_code_current_user(**kwargs)

Request activation code

Request a new activation code for the current user. This function is only available through a JWT token.

  • Parameters

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

request_activation_code_user(user_id: StrictInt, **kwargs)

Request activation code

Request a new activation code. This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

request_reset_password(request_reset_password_request: RequestResetPasswordRequest, **kwargs)

Request reset password

Request a password reset link for a user.

  • Parameters

    • request_reset_password_request (RequestResetPasswordRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

reset_password(reset_password_request: ResetPasswordRequest, **kwargs)

Reset password

Reset the password for a user.

  • Parameters

    • reset_password_request (ResetPasswordRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

send_user_feedback(user_id: StrictInt, send_user_feedback_request: SendUserFeedbackRequest, **kwargs)

Send feedback

Send feedback to Edge Impulse or get in touch with sales.

  • Parameters

    • user_id (int) – User ID (required)

    • send_user_feedback_request (SendUserFeedbackRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

set_user_password(user_id: StrictInt, set_user_password_request: SetUserPasswordRequest, **kwargs)

Set password for SSO user

Set the password for a new SSO user. This function is only available through an SSO access token.

  • Parameters

    • user_id (int) – User ID (required)

    • set_user_password_request (SetUserPasswordRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

update_current_user(update_user_request: UpdateUserRequest, **kwargs)

Update current user

Update user properties such as name. This function is only available through a JWT token.

  • Parameters

    • update_user_request (UpdateUserRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

update_user(user_id: StrictInt, update_user_request: UpdateUserRequest, **kwargs)

Update user

Update user properties such as name. This function is only available through a JWT token.

  • Parameters

    • user_id (int) – User ID (required)

    • update_user_request (UpdateUserRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

upload_photo_current_user(photo: StrictStr, **kwargs)

Upload photo

Upload a photo for the current user. This function is only available through a JWT token.

  • Parameters

    • photo (str) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

upload_photo_user(user_id: StrictInt, photo: StrictStr, **kwargs)

Upload photo

Upload a photo for a user. This function is only available through a JWT token, and is not available for all users.

  • Parameters

    • user_id (int) – User ID (required)

    • photo (str) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

verify_reset_password(verify_reset_password_request: VerifyResetPasswordRequest, **kwargs)

Verify reset password code

Verify whether the reset password code for the user is valid.

  • Parameters

    • verify_reset_password_request (VerifyResetPasswordRequest) – (required)

    • async_req (bool*, *optional) – Whether to execute the request asynchronously.

    • _preload_content (bool*, *optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

    • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • Returns

    Returns the result object. If the method is called asynchronously, returns the request thread.

Last updated

Was this helpful?