---
agentTools:
  projectIndex: https://docs.instabot.io/llms.txt
---

# /instabot/chats/{id}/assignAdminGroupCmd

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "External API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.instabot.io/v1",
      "description": "External API"
    }
  ],
  "paths": {
    "/instabot/chats/{id}/assignAdminGroupCmd": {
      "post": {
        "tags": [
          "InstaBotChat"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "assignerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "adminGroupId",
            "in": "query",
            "schema": {
              "title": "Nullable<Int32>",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.AspNetCore.Mvc.ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "title": "Nullable<Int32>",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-ROKO-Mobi-Api-Key",
        "in": "header"
      },
      "MasterApiKeyAuth": {
        "type": "apiKey",
        "description": "Prefix the value with \"X-ROKO-Mobi-Master-Api-Key\" to indicate the custom authorization type",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "MasterApiKeyAuth": [],
      "ApiKeyAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 63,
      "2": 215,
      "3": 35,
      "4": 144,
      "5": 78,
      "6": 84,
      "7": 2,
      "8": 244,
      "9": 221,
      "10": 151,
      "11": 182
    }
  }
}
```