{
  "opencollection": "1.0.0",
  "info": {
    "name": "Kong Enterprise Admin ACLs System Accounts - Roles API",
    "version": "3.14.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Kong-Admin-Token",
      "value": "{{Kong-Admin-Token}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "System Accounts - Roles",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Assigned Roles for System Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/assigned-roles",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "ID of the system account."
              },
              {
                "name": "filter",
                "value": "",
                "type": "query",
                "description": "Filter roles returned in the response."
              }
            ]
          },
          "docs": "Lists the roles belonging to a system account. Returns 400 if any filter parameters are invalid."
        },
        {
          "info": {
            "name": "Create Assigned Role for System Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/assigned-roles",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "ID of the system account."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assigns a role to a system account. Returns 409 if role is already assigned."
        },
        {
          "info": {
            "name": "Get System Account Role",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/assigned-roles/:roleId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "ID of the system account."
              },
              {
                "name": "roleId",
                "value": "",
                "type": "path",
                "description": "ID of the role."
              }
            ]
          },
          "docs": "Returns the assigned role for the specified ID."
        },
        {
          "info": {
            "name": "Delete Assigned Role from System Account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/assigned-roles/:roleId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "ID of the system account."
              },
              {
                "name": "roleId",
                "value": "",
                "type": "path",
                "description": "ID of the role."
              }
            ]
          },
          "docs": "Removes an assigned role from a system account. Returns 404 if the system account or assigned role were not found."
        }
      ]
    }
  ],
  "bundled": true
}