Skip to main content

Class Delete

Deletes a class from a repository.

URL

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

Headers

  • x-api-key: YOUR_API_KEY (string)

Path Parameters

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

Body

  • index: class index (integer)

Example Request

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

Example Response

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