---
updatedAt: 2026-07-06T16:28:11.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Set User Group

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "userdb",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://e-{networkId}.adzerk.net/udb/{networkId}",
      "variables": {
        "networkId": {
          "default": "networkId"
        }
      }
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/group": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "key": "ue1-e397eb5990",
                      "group": 42
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "userKey",
            "schema": {
              "type": "string"
            },
            "description": "The user ID to read. Can also come from the UserDB `azk` cookie."
          }
        ],
        "summary": "Set User Group",
        "operationId": "post_group",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "integer",
                    "description": "Min: 1, Max: 100, nullable. Send 1–100 to set the group, or null to clear it."
                  }
                },
                "required": [
                  "group"
                ]
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```