Merge branch 'dev' into feat/Multitenant-login-OIDC

This commit is contained in:
Ruben Talstra 2025-05-22 10:50:18 +02:00 committed by GitHub
commit edaa357e9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 2362 additions and 16 deletions

View file

@ -78,6 +78,15 @@ router.post('/:id/duplicate', checkAgentCreate, v1.duplicateAgent);
*/
router.delete('/:id', checkAgentCreate, v1.deleteAgent);
/**
* Reverts an agent to a previous version.
* @route POST /agents/:id/revert
* @param {string} req.params.id - Agent identifier.
* @param {number} req.body.version_index - Index of the version to revert to.
* @returns {Agent} 200 - success response - application/json
*/
router.post('/:id/revert', checkGlobalAgentShare, v1.revertAgentVersion);
/**
* Returns a list of agents.
* @route GET /agents