Create an action condition

post

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

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.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Action ID
    The unique identifier of the action.
  • Title: Action Number
    Maximum Length: 64
    The alternate unique identifier of the action.
  • 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 create an action condition by submitting a POST request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/actions/ACT0000044368/child/actionCondition

Example of Request Body

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

{
"ActionStatusCd": "ORA_SVC_COMPLETED",
"Condition": "(Location LIKE '%KM_Completed%')",
"Description": null,
"Name":null
}

Example of Response Body

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

{
"items": [
  {
"ActionConditionId": 300100118621887,
"ActionId": 300100118621849,
"ActionStatusCd": "ORA_SVC_COMPLETED",
"Condition": "(Location LIKE '%KM_Completed%')",
"CompletionFlag": true,
"CreatedBy": "xuidrill2",
"CreationDate": "2017-09-25T06:47:18.957+00:00",
"Description": null,
"LastUpdateDate": "2017-09-25T07:49:50+00:00",
"LastUpdateLogin": "59FCEEEABAA256BBE0538E09F20A384F",
"LastUpdatedBy": "xuidrill2",
"Name": null,
"UpdateFlag": true,
"DeleteFlag": true,
"links": [
 ...
 ]
}
Back to Top