On this page:
https://api.premepay.com/v1/stores/:id/users/:id
Parameter | Type | Description | Required |
---|---|---|---|
name |
string | Nome | Yes |
username |
Yes | ||
password |
string | Password | Yes |
permission |
object | Permission | No |
entityId |
int | Identifier | Yes |
entityType |
string | Store or Business | Yes |
role |
int | Permission level | Yes |
Role: is related to the user's access level and accepts the following integer values:
EntityId: is the ID of the Store or Business where the user will have access.
Role | Permission level |
---|---|
0 | Owner |
1 | Administrator |
2 | Agent |
3 | ViewOnly |
4 | API |
This is an example of how your request should look like for updating a Store type user.
200: OK
401: Unauthorized
403: Forbidden
Related Content
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3aeb85f-a7e2-40f4-b805-7e883e3d72e2/DELETE.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3aeb85f-a7e2-40f4-b805-7e883e3d72e2/DELETE.png" width="40px" /> DELETE - Delete user
</aside>
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a22a31f7-bd92-40af-8042-7685c0c0859a/GET.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a22a31f7-bd92-40af-8042-7685c0c0859a/GET.png" width="40px" /> GET - Get user
</aside>