Update a lead qualification

patch

/crmRestApi/resources/11.13.18.05/leads/{leadsUniqID}/child/Assessments/{AssessmentId}

Request

Path Parameters
  • The unique identifier of a lead qualification.
  • This is the hash key of the attributes which make up the composite key for the Sales Leads resource and used to uniquely identify an instance of Sales Leads. The client should not generate the hash key value. Instead, the client should query on the Sales Leads collection resource in order to navigate to a specific instance of Sales Leads to get the hash key.
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 question groups in an assessment.
Show Source
Nested Schema : leads-Assessments-AssessAnswerGroups-item-patch-request
Type: object
Show Source
Nested Schema : AssessmentAnswer
Type: array
Show Source
Nested Schema : leads-Assessments-AssessAnswerGroups-AssessmentAnswer-item-patch-request
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 : leads-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 question groups in an assessment.
Show Source
Nested Schema : leads-Assessments-AssessAnswerGroups-item-response
Type: object
Show Source
Nested Schema : Assessment Answers
Type: array
Title: Assessment Answers
The assessment answer resource is used to view and update a response for a question in a question group.
Show Source
Nested Schema : leads-Assessments-AssessAnswerGroups-AssessmentAnswer-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a lead qualification 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/leads/300100097576277/child/Assessments/300100104003366

Example of Request Body

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

{
"Name": "Lead Qualification for CMS Server V2"
}

Example of Response Body

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

{
"AssessmentId": 300100104003366,
"BusinessUnit": null,
"AssessTemplateId": 300100104003343,
"Name": "Lead Qualification for CMS Server V2",
"AssessedLanguage": "US",
"StatusCode": "INCOMPLETE",
"AssessmentScore": 0,
"AssessedObjectId": 300100097576277,
"AssessedObjTypeCode": "LEAD",
"LastUpdateDate": "2017-03-28T06:11:50-07:00",
"CreatedBy": "MHoope",
"LastUpdatedBy": "MHoope",
"TemplateName": "Lead Qualification for CMS Server",
"TemplateType": "LEAD",
"TotalQuestions": 5,
"TotalAnswered": 0,
"StatusFuse": "FUSE_STATUS_NOT_STARTED",
"RatingTerm": "Poor",
"RatingFeedback": "The lead is unlikely to be qualified",
"links": [
  {
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277/child/Assessments/300100104003366",
"name": "Assessments",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787200106A6176612E6C616E672E4F626A656374000000000000000000000078700000000278"
}
},
  {
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277/child/Assessments/300100104003366",
"name": "Assessments",
"kind": "item"
},
  {
"rel": "parent",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277",
"name": "leads",
"kind": "item"
},
  {
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277/child/Assessments/300100104003366/lov/CommonObjectsMappingPVO1",
"name": "CommonObjectsMappingPVO1",
"kind": "collection"
},
  {
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277/child/Assessments/300100104003366/lov/AssessmentTemplateVA",
"name": "AssessmentTemplateVA",
"kind": "collection"
},
  {
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277/child/Assessments/300100104003366/lov/LookupPVO1",
"name": "LookupPVO1",
"kind": "collection"
},
  {
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/300100097576277/child/Assessments/300100104003366/child/AssessAnswerGroups",
"name": "AssessAnswerGroups",
"kind": "collection"
}
],
}
Back to Top