Create Folder

POST /folders

Create a folder

application/json

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • 422 application/json

    Request validation failure.

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