Skip to main content
POST
/
user
/
admin
Used to give admin privileges.
curl --request POST \
  --url https://staging-api.getpartna.com/v4/user/admin \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-api-user: <api-key>' \
  --data '{
  "email": "",
  "fullname": "",
  "roles": {},
  "username": ""
}'
{
  "message": "success"
}

Authorizations

x-api-key
string
header
required
x-api-user
string
header
required

Body

application/json
email
string
fullname
string

fullname should be between 2 to 100 characters long

roles
string[]

should be admin followed by any of view, operation or settings

username
string

username should be alphanumeric, lowercase and between 2 to 40 characters long

Response

200 - application/json

post user admin ok

message
string
I