Create Folder

POST /folders

Create a folder

application/json

Body

  • name string

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id string
      • name string
      • created_at integer(int64)
  • 422 application/json

    Request validation failure.

    Hide response attributes Show response attributes object
    • message string
    • errors object
      Hide errors attribute Show errors attribute object
      • name array[string]
POST /folders
curl \
 --request POST 'https://getcody.ai/api/v1/folders' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string"}'
Request examples
{
  "name": "string"
}
Response examples (200)
{
  "data": {
    "id": "string",
    "name": "string",
    "created_at": 42
  }
}
Response examples (422)
{
  "message": "string",
  "errors": {
    "name": [
      "string"
    ]
  }
}