Update a template action

patch

/crmRestApi/resources/11.13.18.05/actiontemplates/{TemplateId}/child/templateAction/{TemplateActionId}

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
  • Action Relations
    Title: Action Relations
    The action relations resource is used to view, create, update, and delete the dependencies of actions on other actions in an action plan template.
  • Title: Deleted
    Maximum Length: 1
    Default Value: false
    Indicates whether the template action has been deleted. The default value is false.
  • Title: Mandatory
    Maximum Length: 1
    Default Value: true
    Indicates whether the action in an action plan is mandatory. The default value is true.
  • Title: Sort Number
    The order of display for an action within an action template.
Nested Schema : Action Relations
Type: array
Title: Action Relations
The action relations resource is used to view, create, update, and delete the dependencies of actions on other actions in an action plan template.
Show Source
Nested Schema : schema
Type: object
Show Source
  • Title: Action Status
    Maximum Length: 30
    Default Value: ORA_SVC_COMPLETED
    The status code which indicates the dependency condition of an action relation. 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 relation.
  • Title: Deleted
    Maximum Length: 1
    Default Value: false
    Indicates whether the action dependency has been deleted. The default value is false.
  • Title: Dependent Template Action ID
    The unique identifier of the dependent action in an action plan.
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 : actiontemplates-templateAction-item-response
Type: object
Show Source
Nested Schema : Action Relations
Type: array
Title: Action Relations
The action relations resource is used to view, create, update, and delete the dependencies of actions on other actions in an action plan template.
Show Source
Nested Schema : actiontemplates-templateAction-actionRelation-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update an action in an action template 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/actiontemplates/300100118669128/child/templateAction/300100120240863

Example of Request Body

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

{
  "OrderNumber":"190"
}

Example of Response Body

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

{
"ActionId": 300100117426507,
"CreatedBy": "SALES_ADMIN",
"CreationDate": "2017-10-09T12:02:45+00:00",
"DeletedFlag": false,
"LastUpdateDate": "2017-10-09T12:07:59+00:00",
"LastUpdateLogin": "5B1C798066630C0DE0538E09F20A9CA0",
"LastUpdatedBy": "SALES_ADMIN",
"MandatoryFlag": true,
"OrderNumber": 190,
"TemplateActionId": 300100120240863,
"TemplateId": 300100118669128,
"UpdateFlag": true,
"DeleteFlag": true,
"Prerequisites": null,
"Tier": 0,
"links": [
 ...
 ]
}
Back to Top