Situm SDK JS
    Preparing search index...

    Class UserApi

    Service that exposes the user domain.

    Represents the UserAPi class that provides methods for listing/creating/updating/deleting users.

    Index

    Constructors

    Methods

    • Creates a new user.

      Parameters

      • userForm: UserForm

        The user form containing the user information.

      Returns Promise<User>

      A promise that resolves with the created user.

    • Deletes a user based on the provided userId.

      Parameters

      • userId: string

        The ID of the user to delete.

      Returns Promise<unknown>

      A promise that resolves after deleting the user.

    • Retrieves a list of 'positioning' apikeys attached to current user.

      Returns Promise<Apikey[]>

      A promise that resolves with apikeys array.

    • Retrieves a user by their ID.

      Parameters

      • userId: string

        The ID of the user to retrieve.

      Returns Promise<User>

      A promise that resolves with the user data.

    • Retrieves a list of users based on the search criteria.

      Parameters

      • OptionalsearchUser: UserSearch

        Optional search criteria for filtering users.

      Returns Promise<Paginated<User>>

      A promise that resolves with paginated user data.

    • Sends a PUT request to update a user based on the provided userId and userForm.

      Parameters

      • userId: string

        The unique identifier of the user to be updated.

      • userForm: UserForm

        The form containing the updated user information.

      Returns Promise<User>

      A promise that resolves with the updated user data.