Skip to main content
POST
/
tools
/
:id
/
version-control

Endpoint

POST https://gateway.orkeia.ai/tools/{id}/version-control Authentication
Requires header authorization: <your_token>.

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesUnique identifier of the tool.TOOL_123456

Request Body (JSON)

Note: this endpoint does not create a new version. It reverts to an existing version, identified by versionControl.
{
  "versionControl": "v1.0.2"
}

Example (cURL)

curl -X POST "https://gateway.orkeia.ai/tools/TOOL_123456/version-control"   -H "authorization:  <your_token>"   -H "Content-Type: application/json"   -d '{ "versionControl": "v1.0.2" }'

Responses

Response - Success

response
{
  "status": "OK",
  "data": true
}

500 — Server Error

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}

Notes

  • Versions are automatically generated when the tool is created or updated.
  • Use this endpoint to revert to a previous snapshot.