Skip to main content

Class Add

Adds a class to a repository.

URL

POST https://api.synodic.ai/v0/{user}/{repo}/class/add

Headers

  • x-api-key: YOUR_API_KEY (string)

Path Parameters

  • {user}: username (string)
  • {repo}: repository name (string)

Body

  • class: class name (string)

Example Request

curl -X POST "https://api.synodic.ai/v0/{user}/{repo}/class/add" -H "x-api-key: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"class": "class_name"}'

Example Response

{
"classes": [
"Existing Class 0",
"Existing Class 1",
"New Class"
]
}