# Create Prompt

Upload a file to the specified path, or create a directory.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Audio Manager API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-audiomanagerapi/v1/{accountGuid}/{appAccountUsername}/{path}": {
      "post": {
        "tags": [
          "Prompts"
        ],
        "summary": "Create Prompt",
        "description": "Upload a file to the specified path, or create a directory.",
        "parameters": [
          {
            "name": "accountGuid",
            "in": "path",
            "description": "Unique identifier of the voice account or logical account",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "appAccountUsername",
            "in": "path",
            "description": "Username of the app account, this is case-sensitive",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "description": "The specified path of to be uploaded file",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "promptFiles": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "promptFiles": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 176,
      "2": 206,
      "3": 24,
      "4": 43,
      "5": 54,
      "6": 25,
      "7": 0,
      "8": 54,
      "9": 165,
      "10": 181,
      "11": 138
    }
  }
}
```