Skip to main content
Best Answer

Training Material Codes

  • May 29, 2026 4:05 PM UTC
  • 2 replies
  • 140 views

jpinkham

When uploading training material to the Training Materials page, why can’t we add codes for the training material unless we are using the creator tool? 

Best answer by lrnlab

Hi ​@jpinkham we’ve never really had that option before the creator tool. I know you need training material codes when migration content but there is no way to add a code to the more standard training materials types (old vs. new interfaces may be the issue)

View original

2 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • Answer
  • May 29, 2026 6:55 PM UTC

Hi ​@jpinkham we’ve never really had that option before the creator tool. I know you need training material codes when migration content but there is no way to add a code to the more standard training materials types (old vs. new interfaces may be the issue)


  • Newcomer
  • Nov 24, 2026 5:51 PM UTC

Not sure if it’s always been possible or if only now’s been documented, but the API allows adding codes to (I believe) any type of materials; check out the following endpoints:

 

PUT /tmrepo/v1/materials/{id}  

PUT /tmrepo/v1/materials/{id}/versions/{version_id} (xAPI)

 

Of course, you have to know the material ID ahead of time, these endponts can help with that (remember the root folder ID is always 1):

GET /tmrepo/v1/folders/{id}/children

GET /tmrepo/v1/folders/{id}/materials