Update a custom training course
PATCH
/v1/training/courses/{courseId}
const url = 'https://api.varman.io/v1/training/courses/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"Visitor and badge policy","description":{},"category":"Security awareness","videoUrl":{},"content":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/training/courses/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "Visitor and badge policy", "description": {}, "category": "Security awareness", "videoUrl": {}, "content": {} }'Update a custom training course in Varman. Run the training library (videos and interactive lesson courses with quizzes), assign courses to groups, track completion and quiz scores, export evidence and generate certificates.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”courseId
required
string
Custom course id (tcc_…)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
string
Example
Visitor and badge policydescription
object
category
string
videoUrl
Video link (YouTube, Vimeo, Loom or a direct https file)
object
content
Plain text or markdown content
object
Responses
Section titled “Responses”The updated course