{
  "opencollection": "1.0.0",
  "info": {
    "name": "Aiven API Documentation Account Groups API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>List all user groups within an organization</p>"
        },
        {
          "info": {
            "name": "Create a group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>Create a new user group in an organization</p>"
        },
        {
          "info": {
            "name": "Retrieve a group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups/:user_group_id",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              },
              {
                "name": "user_group_id",
                "value": "",
                "type": "path",
                "description": "ID of the user group"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>Retrieve the details of a user group</p>"
        },
        {
          "info": {
            "name": "Update a group",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups/:user_group_id",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              },
              {
                "name": "user_group_id",
                "value": "",
                "type": "path",
                "description": "ID of the user group"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>Update details of a user group</p>"
        },
        {
          "info": {
            "name": "Delete a group",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups/:user_group_id",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              },
              {
                "name": "user_group_id",
                "value": "",
                "type": "path",
                "description": "ID of the user group"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>Delete a user group from an organization</p>"
        },
        {
          "info": {
            "name": "List group members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups/:user_group_id/members",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              },
              {
                "name": "user_group_id",
                "value": "",
                "type": "path",
                "description": "ID of the user group"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>List members of a user group</p>"
        },
        {
          "info": {
            "name": "Add or remove group members",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.aiven.io/v1/organization/:organization_id/user-groups/:user_group_id/members",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path",
                "description": "ID of an organization"
              },
              {
                "name": "user_group_id",
                "value": "",
                "type": "path",
                "description": "ID of the user group"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "<p>Add or remove members of a user group</p>"
        }
      ]
    }
  ],
  "bundled": true
}