Skip to main content

Class Rename

Renames a class in a repository.

URL

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

Headers

  • x-api-key: YOUR_API_KEY (string)

Path Parameters

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

Body

  • index: class index (integer)
  • class: class name (string)

Example Request

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

Example Response

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