ContentServiceRest Resource

Content (LMS)

Available Since
1.6.0

POST /2.0/lms/content/create

This method has been deprecated. Use POST /lms/api/v0/contents/ instead.

Create a content

Available Since
1.6.0
Request Body
media type data type description
application/json ContentApiVO (JSON)

Request JSON (example):


 {
 	"name" : "Content name", // Name (required)
 	"privateContent" : false, // Content private (optional)
 	"changeFile" : false, // Changed file? (required)
 	"description" : "Content description", // Description (required)
 	"fileName" : "File Name.txt", // File name (optional)
 	"keyword" : "content API", // Key words content (optional)
 	"elucidatReleasePackageId" : "56e02964be19", // Id release package (optional)
 	"scormType" : "SCORM_1_2", // Scorm Type (optional)
 }
 
Response Body
media type data type description
application/json object (JSON)
This method return HTTP 200 status, Object ContentApiVO
{ content: { "id" : 192, "name" : "Content name", "privateContent" : false, "changeFile" : false, "description" : "Content description", "fileName" : "File Name.txt", "keyword" : "content API", "elucidatReleasePackageId" : "56e02964be19", "scormType" : "SCORM_1_2", message: { message: "OK", detail: "OK", type: "INFO" } }
Available Since
1.6.0

POST /2.0/lms/content/edit

This method has been deprecated. Use PUT /lms/api/v0/contents/ instead.

Update a content

Available Since
1.6.0
Request Body
media type data type description
application/json ContentApiVO (JSON)

Request JSON (example):


 {
 	"id" : 192, // Content ID
 	"name" : "Content name", // Name (required)
 	"privateContent" : false, // Content private (optional)
 	"changeFile" : false, // Changed file? (required)
 	"description" : "Content description", // Description (required)
 	"fileName" : "File Name.txt", // File name (optional)
 	"keyword" : "content API", // Key words content (optional)
 	"elucidatReleasePackageId" : "56e02964be19", // Id release package (optional)
 	"scormType" : "SCORM_1_2", // Scorm Type (optional)
 }
 
Response Body
media type data type description
application/json object (JSON)
This method return HTTP 200 status, Object ContentApiVO
{ content: { "id" : 192, "name" : "Content name", "privateContent" : false, "changeFile" : false, "description" : "Content description", "fileName" : "File Name.txt", "keyword" : "content API", "elucidatReleasePackageId" : "56e02964be19", "scormType" : "SCORM_1_2", message: { message: "OK", detail: "OK", type: "INFO" } }
Available Since
1.5.6

POST /2.0/lms/content/delete/{contentId}

This method has been deprecated. Use DELETE /lms/api/v0/contents/{contentId} instead.

Delete the content

Available Since
1.5.6
Request Parameters
name type description constraints
contentId path
REQUIRED
Content ID
long
Response Body
media type data type description
application/json object (JSON)

Response JSON (example):


 {
 	"content": "OK",
 	"message": null
 }