Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

API Endpoints: Administrators

The endpoint(s) available here are for managing administrators in your account.

PUT /administrators/<int:person_id>

Assign administrators to certain roles by their ID.

Path parameters:

  • person_id: The ID for the administrator.

Required parameters:

  • roles: A list of the role(s) the administrator should have as strings.

Optional parameters:

  • None

Example request:

curl -X PUT -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" -d '{"roles": ["ServerAdmin", "DesktopAdmin"]}'

Example output:

  "email": "",
  "id": 6,
  "name": "Robert Frost",
  "roles": [

This page was last modified 23 days ago. Help improve this document in the forum.