User

Activate user

/api/v1/users/activate/{username}/

Example curl request

curl -X POST \
  'http://localhost:8000/api/v1/users/activate/{{user}}' \
  -H 'Authorization: token {{token}}'

Delete user

/api/v1/users/delete/{username}/

Example curl request

curl -X DELETE \
  'http://localhost:8000/api/v1/users/delete/{{user}}' \
  -H 'Authorization: token {{token}}' \
  -H 'Cache-Control: no-cache' \

Grant a user the superuser role

/api/v1/superusers/grant/{username}/

Example curl request

curl -X POST \
  'http://localhost:8000/api/v1/superusers/grant/{{user}}' \
  -H 'Authorization: token {{token}}'

Revoke the superuser role from user

/api/v1/superusers/revoke/{username}/

Example curl request

curl -X DELETE \
  'http://localhost:8000/api/v1/superusers/grant/{{user}}' \
  -H 'Authorization: token {{token}}'