Update an action condition

patch

/crmRestApi/resources/11.13.18.05/actions/{ActionNumber}/child/actionCondition/{ActionConditionId}

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
  • Title: Action Status
    Maximum Length: 30
    The code indicating the status of the action based on whether the condition is met or not. A list of valid values is defined in the lookup ORA_SVC_AP_STATUS_CD.
  • Title: Action Status Value
    Maximum Length: 255
    The display value corresponding to the action status lookup code for the action condition.
  • Title: CompletionFlag
    Maximum Length: 1
    Indicates whether the action was completed by fulfilling the condition. The default value is false.
  • Title: Condition
    Maximum Length: 1000
    The expression indicating whether the condition is met or not.
  • Title: Description
    Maximum Length: 1000
    The description of the action condition.
  • Title: Name
    Maximum Length: 400
    The name of the action condition.
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 : actions-actionCondition-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update an action condition 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/actions/ACT0000044368/child/actionCondition/300100118914903

Example of Request Body

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

{
"Description": "Incomplete"
}

Example of Response Body

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

{
"ActionConditionId": 300100118914903,
"ActionId": 300100118621849,
"ActionStatusCd": "ORA_SVC_CANCELED",
"Condition": "(Location LIKE '%KM_Completed%')",
"CompletionFlag": true,
"CreatedBy": "SALES_ADMIN",
"CreationDate": "2017-09-27T13:18:37+00:00",
"Description": "Incomplete",
"LastUpdateDate": "2017-09-27T13:29:19+00:00",
"LastUpdateLogin": "5A2BD805BC436ED2E0538E09F20A9D1F",
"LastUpdatedBy": "SALES_ADMIN",
"Name": null,
"UpdateFlag": true,
"DeleteFlag": true,
"links": [
 ...
 ]
}
Back to Top