Accounts
Scope: admin
This endpoint creates a new API user by accepting required information, including email, password, and role.
The endpoint checks that all required fields are present and that the email is not already associated with an existing user record. The role must be chosen from a predefined list of roles, including maintainer or visitor.
If the required information is valid, the endpoint creates a new user record with the specified email, password, and role and returns a success message with the new user's ID or a JSON object containing their information
An alias name that represents a particular brand that is using the API
[email protected]your_passwordvisitorPossible values: Successful response
Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Scope: admin
This endpoint allows for the updating of an existing user with a specific email by changing the role or resetting the password.
The endpoint accepts a JSON object in the request body that contains the new values for the user's email, password, and role. The email field is required but cannot be changed. The password field will be encrypted and stored in the database. The role field must be chosen from maintainer or visitor.
An alias name that represents a particular brand that is using the API
visitorPossible values: Successful response
Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Not Found: The user with the specified userId was not found.
Scope: admin
This endpoint deletes an existing API user by accepting required email.
The response does not include a response body, only a response code. If the user is successfully deleted, the server will respond with a 204 No Content status code.
The email address of the user to delete.
An alias name that represents a particular brand that is using the API
Successful response
Bad Request: The user with the specified email was not found.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The user does not have permission to perform this action.
Scope: admin
This endpoint returns a list of all existing API users.
An alias name that represents a particular brand that is using the API
Successful response
Unauthorized: The user is not authorized to perform this action.
Forbidden: The user does not have permission to perform this action.
Last updated