Accounts
Last updated
Was this helpful?
Last updated
Was this helpful?
The endpoints listed on this page are used for managing user authentication within DotApparel API. It typically includes endpoints for creating, updating, and deleting user accounts:
Creating Users: The administrator is able to generate new user credentials with an assigned role.
Updating Users: The administrator has the ability to modify the role or reset the password of a specific API user.
Deleting Users: The administrator has the authority to revoke a user's authentication.
This document is restricted to the administrator user only. If you wish to access other endpoints, please head to the API Reference.
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
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
your_email@example.com
your_password
visitor
Available options: 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
visitor
Available options: