# Accounts

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:

1. Creating Users: The administrator is able to generate new user credentials with an assigned role.
2. Updating Users: The administrator has the ability to modify the role or reset the password of a specific API user.
3. 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.

{% content-ref url="reference" %}
[reference](https://developers.dotapparel.com.au/api/reference)
{% endcontent-ref %}

{% hint style="info" %}
Our base domain URL is `https://api.dotapparel.io`.
{% endhint %}

{% hint style="info" %}
Make sure to include your username and password in the request header as described in the Authentication section above, as well as the `X-DotApparel-Name` header with the correct value for your account.
{% endhint %}

{% openapi src="<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>" path="/user" method="post" %}
<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>
{% endopenapi %}

{% openapi src="<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>" path="/user" method="put" %}
<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>
{% endopenapi %}

{% openapi src="<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>" path="/user" method="delete" %}
<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>
{% endopenapi %}

{% openapi src="<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>" path="/user/list" method="get" %}
<https://api-dotdev-dotapparel21-au.web.app/docs/admin-json>
{% endopenapi %}
