---
agentTools:
  projectIndex: https://devmatch.readme.io/llms.txt
---

# Add an admin to the given problem by their email address

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "DevMatch",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://94s1zv81nb.execute-api.us-west-2.amazonaws.com",
      "description": ""
    }
  ],
  "paths": {
    "/api/problems/{problemId}/admins": {
      "summary": "Get Problem Admins",
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailchimpEmail"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Problems"
        ],
        "parameters": [
          {
            "name": "problemId",
            "description": "Id of the problem to add an admin to",
            "schema": {
              "type": "integer"
            },
            "in": "path",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK."
          }
        },
        "operationId": "addAdminToProblemByEmail",
        "summary": "Add an admin to the given problem by their email address"
      },
      "parameters": [
        {
          "name": "problemId",
          "schema": {
            "type": "integer"
          },
          "in": "path",
          "required": true
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "MailchimpEmail": {
        "title": "Root Type for MailchimpEmail",
        "description": "",
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          }
        },
        "example": {
          "email": "altAlan@mail.com"
        }
      }
    }
  },
  "tags": [
    {
      "name": "Problems",
      "description": ""
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 201,
      "2": 145,
      "3": 145,
      "4": 247,
      "5": 207,
      "6": 158,
      "7": 9,
      "8": 107,
      "9": 28,
      "10": 194,
      "11": 55
    }
  }
}
```