Update an assessment

patch

/crmRestApi/resources/11.13.18.05/opportunities/{OptyNumber}/child/Assessments/{AssessmentId}

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
Nested Schema : Assessment Answer Groups
Type: array
Title: Assessment Answer Groups
The assessment answer groups resource is used to view and update the question groups in an assessment.
Show Source
Nested Schema : opportunities-Assessments-AssessAnswerGroups-item-patch-request
Type: object
Show Source
Nested Schema : Assessment Answers
Type: array
Title: Assessment Answers
The assessment answers resource is used to view and update a response to a question in the question group.
Show Source
Nested 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 : opportunities-Assessments-item-response
Type: object
Show Source
Nested Schema : Assessment Answer Groups
Type: array
Title: Assessment Answer Groups
The assessment answer groups resource is used to view and update the question groups in an assessment.
Show Source
Nested Schema : opportunities-Assessments-AssessAnswerGroups-item-response
Type: object
Show Source
Nested Schema : Assessment Answers
Type: array
Title: Assessment Answers
The assessment answers resource is used to view and update a response to a question in the question group.
Show Source
Nested Schema : opportunities-Assessments-AssessAnswerGroups-AssessmentAnswer-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update an assessment by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/opportunities/300100090218733/child/Assessments/300100090196733

Example of Request Body

The following shows an example of the request body in JSON format.

{
"AssessmentId" : 300100090196733,
"BusinessUnit" : 1,
"AssessTemplateId" : 100000012061095,
"Name" : "REST-Customer Discount Eligibility-01-Qualification",
"AssessedLanguage" : "US",
"StatusCode" : "INCOMPLETE",
"AssessmentScore" : 0,
"AssessedObjectId" : 300100070256132,
"RelatedObjTypeCode" : "OPPORTUNITY",
"AssessedObjTypeCode" : "OPPORTUNITY"
"CreatedBy" : "SALES_ADMIN",
"LastUpdatedBy" : "SALES_ADMIN",
"TemplateName" : "Customer Discount Eligibility",
"TemplateType" : "OPPORTUNITY",
"NumberOfGroups" : 0,
"TotalQuestions" : 0,
"TotalAnswered" : 0,
"StatusFuse" : "FUSE_STATUS_NOT_STARTED"
}

Example of Response Body

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

{
  "AssessmentId" : 300100090196733,
  "BusinessUnit" : 1,
  "AssessTemplateId" : 100000012061095,
  "Name" : "REST-Customer Discount Eligibility-01-Qualification",
  "AssessedLanguage" : "US",
  "StatusCode" : "INCOMPLETE",
  "AssessmentScore" : 0,
  "AssessedObjectId" : 300100070256132,
  "RelatedObjectId" : null,
  "RelatedObjTypeCode" : "OPPORTUNITY",
  "AssessedObjTypeCode" : "OPPORTUNITY",
  "LastUpdateDate" : "2016-11-03T21:04:11-07:00",
  "CreatedBy" : "SALES_ADMIN",
  "LastUpdatedBy" : "SALES_ADMIN",
  "TemplateName" : "Customer Discount Eligibility",
  "TemplateType" : "OPPORTUNITY",
  "NumberOfGroups" : 0,
  "TotalQuestions" : 0,
  "TotalAnswered" : 0,
  "StatusFuse" : "FUSE_STATUS_NOT_STARTED",
  "links" : [ {
	... }
	]
}
Back to Top