How do I create an admin role? #60
Answered
by
hagopj13
engineervix
asked this question in
Q&A
-
I can register a user role like this
How can I register an admin role? |
Beta Was this translation helpful? Give feedback.
Answered by
hagopj13
Dec 27, 2020
Replies: 1 comment 10 replies
-
The |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
engineervix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
register
endpoint can be used only to register as a user.To create an admin, you should use the
POST /v1/users
(which is the create user endpoint) and specifyrole: 'admin'
in the body. You need to be logged in as an admin to be allowed to do that. This means that the first admin should be created manually in the db.