Update a learning content item

patch

/hcmRestApi/resources/11.13.18.05/learningContentItems/{ContentId}

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : learningContentItems-item-response
Type: object
Show Source
Back to Top

Examples

The following examples show how to update these learning content items by submitting a PATCH request on the REST resource using cURL.

  • SCORM learning content
  • Video learning content
  • PDF learning content
  • Web Link learning content

SCORM Learning Content

Example of cURL Command

The following is an example of the cURL command.

curl -vs -u '<username>:<password>' -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json' -d "@WebContentPayloadForUpdate.txt" -X PATCH  https://<host>:<port>/hcmRestApi/resources/11.13.18.05/learningContentItems/<CONTENT_ID> &> UpdateWebContentFile.out

Example of Payload

The following is an example of the payload.

{
  "Title" : "REST: SS 201710081350 Jefferson",
  "Description" : "REST: SS 201710081350 Jefferson Desc",
  "StartDate" : "2017-06-15",
  "EndDate" : "2018-06-14"
}

Example of Response Header

The following is an example of the response header.

Status: HTTP/1.1 200 OK
Content-Type: application/vnd.oracle.adf.resourceitem+json

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "ContentId" : 300100101142985,
  "Title" : "REST: SS 201710081350 Jefferson",
  "FileName" : null,
  "ItemNumber" : "REST-201710081350-SCORM",
  "TrackingType" : "ORA_UNKNOWN",
  "Description" : "REST: SS 201710081350 Jefferson Desc",
  "StartDate" : "2017-06-15",
  "EndDate" : "2018-06-14",
  "UUID" : "92cfc80e-953b-449c-90a6-18afa401628f",
  "Status" : "ORA_CONT_INACTIVE",
  "URL" : null,
  "AuthToken" : null,
  "Location" : "scorm/FA.HCM.PER.HcmEngmtVideoShare-92cfc80e-953b-449c-90a6-18afa401628f_private/92cfc80e-953b-449c-90a6-18afa401628f.zip",
  "IngestionStatus" : "ORA_MED_TRANSCODING",
  "Operation" :"",
    "links":[8]
         0:  {...
            ...}
}

Video Learning Content

Example of cURL Command

The following is an example of the cURL command.

curl -vs -u '<username>:<password>' -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json' -d "@VideoContentPayloadForUpdate.txt" -X PATCH  https://<host>:<port>/hcmRestApi/resources/11.13.18.05/learningContentItems/<CONTENT_ID> &> UpdateVideoContentFile.out

Example of Payload

The following is an example of the payload.

{
  "IngestionStatus" : "ORA_MED_TRANSCODING"
}

Example of Response Header

The following is an example of the response header.

Status: HTTP/1.1 200 OK
Content-Type: application/vnd.oracle.adf.resourceitem+json

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "ContentId" : 300100101257750,
  "Title" : "REST: SS 201710091906 video_4_secs",
  "FileName" : "video_4_secs.mov",
  "ItemNumber" : "REST-201710091906",
  "TrackingType" : "ORA_CONTENT_VIDEO",
  "Description" : "REST: SS 201710091906 video_4_secs Desc",
  "StartDate" : "2017-06-15",
  "EndDate" : "2018-06-14",
  "UUID" : "e778388a-15f8-4261-9338-d3b702aa8323",
  "Status" : "ORA_CONT_INACTIVE",
  "URL" : null,
  "AuthToken" : null,
  "Location" : "src/FA.HCM.PER.HcmEngmtVideoShare-e778388a-15f8-4261-9338-d3b702aa8323_private/e778388a-15f8-4261-9338-d3b702aa8323.mov",
  "IngestionStatus" : "ORA_MED_TRANSCODING",
  "Operation" : "",
		 "links":[8]
         	0:  {...
           	 ...}
}

PDF Learning Content

Example of cURL Command

The following is an example of the cURL command.

curl -vs -u '<username>:<password>' -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json' -d "@PDFContentPayloadForUpdate.txt" -X PATCH  https://<host>:<port>/hcmRestApi/resources/11.13.18.05/learningContentItems/<CONTENT_ID> &> UpdatedPDFContentDetails.out

Example of Payload

The following is an example of the payload.

{
  "Title" : "REST: SS 201710091949 TLearn Updated",
  "Description" : "REST: SS 201710091949 TLearn Desc Updated",
  "StartDate" : "2017-06-26",
  "EndDate" : "2018-06-25"
}

Example of Response Header

The following is an example of the response header.

Status: HTTP/1.1 200 OK
Content-Type: application/vnd.oracle.adf.resourceitem+json

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "ContentId" : 300100101257756,
  "Title" : "REST: SS 201710091949 TLearn Updated",
  "FileName" : null,
  "ItemNumber" : "REST-201710091949-PDF",
  "TrackingType" : "ORA_PDF",
  "Description" : "REST: SS 201710091949 TLearn Desc Updated",
  "StartDate" : "2017-06-26",
  "EndDate" : "2018-06-25",
  "UUID" : "60c5e47d-bc50-44c0-b6ed-736508eb73e8",
  "Status" : "ORA_CONT_ACTIVE",
  "URL" : "scorm/FA.HCM.PER.HcmEngmtVideoShare-60c5e47d-bc50-44c0-b6ed-736508eb73e8_private/60c5e47d-bc50-44c0-b6ed-736508eb73e8.pdf",
  "AuthToken" : null,
  "Location" : "scorm/FA.HCM.PER.HcmEngmtVideoShare-60c5e47d-bc50-44c0-b6ed-736508eb73e8_private/60c5e47d-bc50-44c0-b6ed-736508eb73e8.pdf",
  "IngestionStatus" : null,
  "Operation" : "",
		 "links":[8]
         	0:  {...
           	 ...}
}

Web Links Content

Example of cURL Command

The following is an example of the cURL command.

curl -vs -u '<username>:<password>' -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json' -d "@WebLinkContentPayloadForUpdate.txt" -X PATCH  https://<host>:<port>/hcmRestApi/resources/11.13.18.05/learningContentItems/<CONTENT_ID> &> UpdatedWebLinkContentDetails.out

Example of Payload

The following is an example of the payload.

{
   "Title" : "REST: SS 201710092052 WebLink leadership-skills Updated",
   "Description" : "REST: SS 201710092052 WebLink leadership-skills Desc Updated",
   "StartDate" : "2017-06-26",
   "EndDate" : "2018-06-25"
}

Example of Response Header

The following is an example of the response header.

Status: HTTP/1.1 200 OK
Content-Type: application/vnd.oracle.adf.resourceitem+json

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
   "ContentId" : 300100101257996,
   "Title" : "REST: SS 201710092052 WebLink leadership-skills Updated",
   "FileName" : null,
   "ItemNumber" : "REST-201710092052-WebLink",
   "TrackingType" : "ORA_AUTO",
   "Description" : "REST: SS 201710092052 WebLink leadership-skills Desc Updated",
   "StartDate" : "2017-06-26",
   "EndDate" : "2018-06-25",
   "UUID" : "5fec638b-7a52-43af-a322-49f21cc5f81c",
   "Status" : "ORA_CONT_ACTIVE",
   "URL" : "https://www.coursera.org/learn/leadership-skill",
   "AuthToken" : null,
   "Location" : null,
   "IngestionStatus" : null,
   "Operation" : "",
 			"links":[8]
         	0:  {...
           	 ...}
}
Back to Top