{
  "opencollection": "1.0.0",
  "info": {
    "name": "Couchbase Analytics Service REST Allowed CIDRs Role Management API",
    "version": "7.6"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Role Management",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all roles",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://localhost:8095/:db/_role/",
            "params": [
              {
                "name": "db",
                "value": "",
                "type": "path",
                "description": "The name of the database"
              }
            ]
          },
          "docs": "Returns the list of all roles configured for the specified database."
        },
        {
          "info": {
            "name": "Create a role",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://localhost:8095/:db/_role/",
            "params": [
              {
                "name": "db",
                "value": "",
                "type": "path",
                "description": "The name of the database"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new role for the specified database with the given channel assignments."
        },
        {
          "info": {
            "name": "Get role details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://localhost:8095/:db/_role/:roleName",
            "params": [
              {
                "name": "db",
                "value": "",
                "type": "path",
                "description": "The name of the database"
              },
              {
                "name": "roleName",
                "value": "",
                "type": "path",
                "description": "The role name"
              }
            ]
          },
          "docs": "Returns detailed information about a specific role including its channel assignments."
        },
        {
          "info": {
            "name": "Update a role",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://localhost:8095/:db/_role/:roleName",
            "params": [
              {
                "name": "db",
                "value": "",
                "type": "path",
                "description": "The name of the database"
              },
              {
                "name": "roleName",
                "value": "",
                "type": "path",
                "description": "The role name"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the configuration of an existing role including its channel assignments."
        },
        {
          "info": {
            "name": "Delete a role",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://localhost:8095/:db/_role/:roleName",
            "params": [
              {
                "name": "db",
                "value": "",
                "type": "path",
                "description": "The name of the database"
              },
              {
                "name": "roleName",
                "value": "",
                "type": "path",
                "description": "The role name"
              }
            ]
          },
          "docs": "Deletes the specified role from the database."
        }
      ]
    }
  ],
  "bundled": true
}