Update an action condition
patch
/crmRestApi/resources/11.13.18.05/actions/{ActionNumber}/child/actionCondition/{ActionConditionId}
Request
Path Parameters
-
ActionConditionId(required): integer(int64)
The unique identifier of the action condition.
-
ActionNumber(required): string
The alternate unique identifier of the action.
Header Parameters
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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
- application/json
Root Schema : schema
Type:
Show Source
object-
ActionStatusCd: string
Title:
Action StatusMaximum Length:30The 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. -
ActionStatusCdMeaning: string
Title:
Action Status ValueMaximum Length:255The display value corresponding to the action status lookup code for the action condition. -
CompletionFlag: boolean
Title:
CompletionFlagMaximum Length:1Indicates whether the action was completed by fulfilling the condition. The default value is false. -
Condition: string
Title:
ConditionMaximum Length:1000The expression indicating whether the condition is met or not. -
Description: string
Title:
DescriptionMaximum Length:1000The description of the action condition. -
Name: string
Title:
NameMaximum Length:400The name of the action condition.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : actions-actionCondition-item-response
Type:
Show Source
object-
ActionConditionId: integer
(int64)
Title:
Action Condition IDRead Only:trueThe unique identifier of the action condition. -
ActionId: integer
(int64)
Title:
Action IDThe unique identifier of the action. -
ActionNumber: string
Title:
Action NumberMaximum Length:64The alternate unique identifier of the action. -
ActionStatusCd: string
Title:
Action StatusMaximum Length:30The 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. -
ActionStatusCdMeaning: string
Title:
Action Status ValueMaximum Length:255The display value corresponding to the action status lookup code for the action condition. -
CompletionFlag: boolean
Title:
CompletionFlagMaximum Length:1Indicates whether the action was completed by fulfilling the condition. The default value is false. -
Condition: string
Title:
ConditionMaximum Length:1000The expression indicating whether the condition is met or not. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the action condition. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time when the condition was created. -
DeleteFlag: boolean
Read Only:
trueIndicates whether the action condition can be deleted. -
Description: string
Title:
DescriptionMaximum Length:1000The description of the action condition. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueThe date and time when the action condition was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the action condition. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login details of the user who last updated the action condition. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Name: string
Title:
NameMaximum Length:400The name of the action condition. -
UpdateFlag: boolean
Read Only:
trueIndicates whether the action condition can be updated.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Links
- ActionStatusCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_AP_STATUS_CD
The list of values indicating the status of an action condition.
The following properties are defined on the LOV link relation:- Source Attribute: ActionStatusCd; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- YesNoLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DYES_NO
The list of values indicating the completion status of an action.
The following properties are defined on the LOV link relation:- Source Attribute: CompletionFlag; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
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": [
...
]
}