> For the complete documentation index, see [llms.txt](https://developers.gleantap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gleantap.com/update-data/create-a-class.md).

# Create a Class

## Create a new class

> Create a new class with specified details

```json
{"openapi":"3.0.0","info":{"title":"Gleantap External API","version":"1.0.0"},"tags":[{"name":"Classes","description":"Classes"}],"servers":[{"url":"https://api.gleantap.com","description":"Production server"}],"paths":{"/v2/ExternalApi/newClass":{"post":{"tags":["Classes"],"summary":"Create a new class","description":"Create a new class with specified details","operationId":"3fd617064ef9b9459de32029d1f137c8","parameters":[{"name":"X-API-KEY","in":"header","description":"Your API key","required":true,"schema":{"type":"string"}},{"name":"X-SECRET-KEY","in":"header","description":"Your Secret key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["id","date","start_time","app_id"],"properties":{"app_id":{"type":"string"},"id":{"type":"string"},"class_name":{"type":"string"},"class_category":{"type":"string"},"staff_name":{"type":"string"},"program_name":{"type":"string"},"date":{"type":"string","format":"date"},"start_time":{"type":"string","format":"time"},"end_time":{"type":"string","format":"time"}},"type":"object"}}}},"responses":{"200":{"description":"Class created successfully","content":{"application/json":{"schema":{"properties":{"result":{"type":"string"}},"type":"object"}}}},"400":{"description":"Invalid request"}}}}}}
```
