UsersApi

interface UsersApi

Functions

createUser
Link copied to clipboard
@POST(value = users)
abstract suspend fun createUser(@Body() userRequestDto: UserRequestDto): Response<RegisterUserResponseDto>
Register a user This API call allows you to register a new user.
deleteUser
Link copied to clipboard
@DELETE(value = users/{userID})
abstract suspend fun deleteUser(@Path(value = userIDuserID: String, @Query(value = exportexport: Boolean? = null, @Query(value = exportEmailexportEmail: String? = null): Response<EmptyObjectResponseDto>
Delete user account This allows you to delete a user account.
getEmailAvailability
Link copied to clipboard
@GET(value = users/emailAvailability)
abstract suspend fun getEmailAvailability(@Query(value = emailemail: String): Response<EmailAvailabilityResponseDto>
Check for the availability of an email address to register a new user.
getUserById
Link copied to clipboard
@GET(value = users/{userID})
abstract suspend fun getUserById(@Path(value = userIDuserID: String, @Query(value = excludeAlertsexcludeAlerts: Boolean? = null): Response<UserResponseDto>
Retrieve account information This allows you to retrieve the account information for a user.
getUsernameAvailability
Link copied to clipboard
@GET(value = users/usernameAvailability)
abstract suspend fun getUsernameAvailability(@Query(value = usernameusername: String, @Query(value = credentialTypecredentialType: String? = null): Response<UsernameAvailabilityResponseDto>
Check for the availability of a username.
registerWithJwt
Link copied to clipboard
@POST(value = jwtRegister)
abstract suspend fun registerWithJwt(@Body() jwtUserRequestDto: JwtUserRequestDto): Response<RegisterUserResponseDto>
Register a user using JWT This API call allows you to register a new user using a JSON Web Token.
upsertUser
Link copied to clipboard
@PUT(value = users/{userID})
abstract suspend fun upsertUser(@Path(value = userIDuserID: String, @Body() body: UserUpdateDtoProperties): Response<EmptyObjectResponseDto>
Update account information This allows you to update the account information of a user.