Create a template action

post

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

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
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.
  • Title: Dependent Template Action Number
    Maximum Length: 30
    The template action reference number of a dependent action.
  • Title: Relation ID
    The unique identifier of the relation between the actions in an action plan.
  • Title: Template Action ID
    The unique identifier of the template action.
  • Title: Template Action Number
    Maximum Length: 30
    The template action reference number.
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 create an action in an action template 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/actiontemplates/300100118669128/child/templateAction/

Example of Request Body

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

{
  "ActionId": 300100117426507,
  "OrderNumber":"189"
}

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:02:45.015+00:00",
"LastUpdateLogin": "5B1C798066630C0DE0538E09F20A9CA0",
"LastUpdatedBy": "SALES_ADMIN",
"MandatoryFlag": true,
"OrderNumber": 189,
"TemplateActionId": 300100120240863,
"TemplateId": 300100118669128,
"UpdateFlag": true,
"DeleteFlag": true,
"Prerequisites": null,
"Tier": 0,
"links": [
 ...
 ]
}
Back to Top