Update an action plan action
patch
/crmRestApi/resources/11.13.18.05/actionplans/{ActionPlanId}/child/actionPlanAction/{ActionPlanActionId}
Request
Path Parameters
-
ActionPlanActionId(required): integer(int64)
The unique identifier of the action in an action plan.
-
ActionPlanId(required): integer(int64)
The unique identifier of the action plan.
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-
ActionId: integer
(int64)
Title:
Action IDThe unique identifier of the action. -
ActionNumber: string
Title:
Action NumberThe reference number of the action in an action plan. -
actionPlanActionRelation: array
Action Plan Action Relations
Title:
Action Plan Action RelationsThe action plan action relations resource is used to view, create, update, and delete the relations between the actions in an action plan. An action relation may define the sequence in which the actions are to be carried out. -
ActionPlanId: integer
(int64)
Title:
Action Plan IDThe unique identifier of the action plan. -
DeletedFlag: boolean
Title:
DeletedMaximum Length:1Default Value:falseIndicates whether the action in an action plan is deleted. The default value is false. -
EndDate: string
(date-time)
Title:
End DateThe date when an action in the action plan ends. -
ExpectedCompletionDate: string
(date-time)
Title:
Expected Completion DateThe date when the action in an action plan is to be completed. -
ExpectedStartDate: string
(date-time)
Title:
Expected Start DateThe date when an action in the action plan is expected to start. -
LeadTime: integer
(int64)
Title:
DurationThe estimated time required to complete the action. -
LeadTimeUnit: string
Title:
Duration UnitMaximum Length:30The unit of measurement of the lead time, such as minutes, hours, or days. -
LeadTimeUnitMeaning: string
Title:
Lead Time Unit ValueMaximum Length:255The display value corresponding to the lead time unit lookup code for the action plan action. -
ObjectEntityNameMeaning: string
Title:
Object Entity Name ValueMaximum Length:255The display value corresponding to the object entity name lookup code for the action plan action. -
ObjectEntityTypeMeaning: string
Title:
Object Entity Type ValueMaximum Length:255The display value corresponding to the object entity type lookup code for the action plan action. -
ObjectId: integer
(int64)
Title:
Object IDThe unique identifier of the object associated with the action. -
ObjectReferenceNumber: string
Title:
Object Reference NumberMaximum Length:100The reference number of the object associated with the action. -
OrderNumber: integer
(int64)
Title:
StepThe order of the action in an action plan. -
ProcessInstanceId: string
Title:
Process Instance IDMaximum Length:500Indicates the process instance identifier of an external process. -
ProcessStatus: string
Title:
Process StatusMaximum Length:100The status of the external process. -
SkipFlag: boolean
Title:
SkipMaximum Length:1Default Value:falseIndicates whether the action for the action plan can be skipped. -
StartDate: string
(date-time)
Title:
Start DateThe date when an action in the action plan begins. -
StatusCd: string
Title:
StatusMaximum Length:30The code indicating the status of the action. A list of valid values is defined in the lookup ORA_SVC_AP_STATUS_CD. -
StatusCdMeaning: string
Title:
Status ValueMaximum Length:255The display value corresponding to the status lookup code for the action plan action. -
StatusDetails: string
Title:
Status DetailsMaximum Length:1000The details of the status of an action in an action plan. -
VisibilityCdMeaning: string
Title:
Visibility ValueMaximum Length:255The display value corresponding to the visibility lookup code for the action plan action. -
WorkflowActionId: integer
(int64)
Title:
Workflow Action IDThe unique identifier of the action for the workflow. -
WorkflowId: integer
(int64)
Title:
Workflow IDThe unique identifier of the workflow.
Nested Schema : Action Plan Action Relations
Type:
arrayTitle:
Action Plan Action RelationsThe action plan action relations resource is used to view, create, update, and delete the relations between the actions in an action plan. An action relation may define the sequence in which the actions are to be carried out.
Show Source
Nested Schema : schema
Type:
Show Source
object-
ActionPlanActionId: integer
(int64)
Title:
Action Plan Action IDThe unique identifier of the action in an action plan. -
ActionStatusCd: string
Title:
Action StatusMaximum Length:30Default Value:ORA_SVC_COMPLETEDThe code indicating the status of the dependency condition of the action relation. -
DeletedFlag: boolean
Title:
DeletedMaximum Length:1Default Value:falseIndicates whether the action dependency is deleted. The default value is false. -
DepActionPlanActionId: integer
(int64)
Title:
Dependent Action Plan Action IDThe unique identifier of the dependent action in an action plan.
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 : actionplans-actionPlanAction-item-response
Type:
Show Source
object-
ActionDescription: string
Title:
DescriptionRead Only:trueMaximum Length:1000The description of an action in an action plan. -
ActionId: integer
(int64)
Title:
Action IDThe unique identifier of the action. -
ActionName: string
Title:
ActionRead Only:trueMaximum Length:400The name of the action. -
ActionNumber: string
Title:
Action NumberThe reference number of the action in an action plan. -
ActionPlanActionId: integer
(int64)
Title:
Action Plan Action IDRead Only:trueThe unique identifier of the action in an action plan. -
ActionPlanActionNumber: string
Title:
Action Plan Action NumberMaximum Length:30The alternate unique identifier of an action plan action. -
actionPlanActionRelation: array
Action Plan Action Relations
Title:
Action Plan Action RelationsThe action plan action relations resource is used to view, create, update, and delete the relations between the actions in an action plan. An action relation may define the sequence in which the actions are to be carried out. -
ActionPlanId: integer
(int64)
Title:
Action Plan IDThe unique identifier of the action plan. -
ActionPlanNumber: string
Title:
Action Plan NumberMaximum Length:30The action plan reference number. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the action in an action plan. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time when the action was created in an action plan. -
DelayedFlag: boolean
Read Only:
trueIndicates whether the action in an action plan is delayed. -
DeletedFlag: boolean
Title:
DeletedMaximum Length:1Default Value:falseIndicates whether the action in an action plan is deleted. The default value is false. -
DeleteFlag: boolean
Read Only:
trueIndicates whether the action in an action plan can be deleted. -
EndDate: string
(date-time)
Title:
End DateThe date when an action in the action plan ends. -
EndDateReadOnlyFlag: boolean
Read Only:
trueIndicates whether the end date should be read only. -
ExpectedCompletionDate: string
(date-time)
Title:
Expected Completion DateThe date when the action in an action plan is to be completed. -
ExpectedStartDate: string
(date-time)
Title:
Expected Start DateThe date when an action in the action plan is expected to start. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueThe date and time when the action was last updated in an action plan. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the action in an action plan. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login details of the user who last updated the action in an action plan. -
LeadTime: integer
(int64)
Title:
DurationThe estimated time required to complete the action. -
LeadTimeUnit: string
Title:
Duration UnitMaximum Length:30The unit of measurement of the lead time, such as minutes, hours, or days. -
LeadTimeUnitMeaning: string
Title:
Lead Time Unit ValueMaximum Length:255The display value corresponding to the lead time unit lookup code for the action plan action. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MandatoryFlag: boolean
Title:
MandatoryMaximum Length:1Default Value:trueIndicates whether the action in an action plan is mandatory. The default value is false. -
ObjectEntityName: string
Title:
Entity NameRead Only:trueMaximum Length:400The name of the parent entity object on which the action is based. -
ObjectEntityNameMeaning: string
Title:
Object Entity Name ValueMaximum Length:255The display value corresponding to the object entity name lookup code for the action plan action. -
ObjectEntitySubtype: string
Title:
Object Entity SubtypeRead Only:trueMaximum Length:400Indicates the object entity subtype of the action in the action plan. -
ObjectEntityType: string
Title:
TypeRead Only:trueMaximum Length:400The type of the parent entity object on which the action is based. -
ObjectEntityTypeMeaning: string
Title:
Object Entity Type ValueMaximum Length:255The display value corresponding to the object entity type lookup code for the action plan action. -
ObjectId: integer
(int64)
Title:
Object IDThe unique identifier of the object associated with the action. -
ObjectReferenceNumber: string
Title:
Object Reference NumberMaximum Length:100The reference number of the object associated with the action. -
OrderNumber: integer
(int64)
Title:
StepThe order of the action in an action plan. -
OwnerName: string
Title:
OwnerRead Only:trueThe name of the owner of the action. -
Prerequisites: string
Title:
PrerequisitesRead Only:trueThe prerequisite steps required to initiate the action. -
ProcessInstanceId: string
Title:
Process Instance IDMaximum Length:500Indicates the process instance identifier of an external process. -
ProcessStatus: string
Title:
Process StatusMaximum Length:100The status of the external process. -
SkipFlag: boolean
Title:
SkipMaximum Length:1Default Value:falseIndicates whether the action for the action plan can be skipped. -
StartDate: string
(date-time)
Title:
Start DateThe date when an action in the action plan begins. -
StatusCd: string
Title:
StatusMaximum Length:30The code indicating the status of the action. A list of valid values is defined in the lookup ORA_SVC_AP_STATUS_CD. -
StatusCdMeaning: string
Title:
Status ValueMaximum Length:255The display value corresponding to the status lookup code for the action plan action. -
StatusDetails: string
Title:
Status DetailsMaximum Length:1000The details of the status of an action in an action plan. -
TemplateId: integer
(int64)
Title:
Template IDThe unique identifier of the action plan template from which the action is created. -
TemplateNumber: string
Title:
Template NumberMaximum Length:30The reference number of the action plan template. -
TemplateTemplateId: integer
(int64)
Title:
Template IDRead Only:trueThe unique identifier of a template. -
UpdateFlag: boolean
Read Only:
trueIndicates whether the action in an action plan can be updated. -
VisibilityCd: string
Title:
VisibilityRead Only:trueMaximum Length:30Default Value:ORA_SVC_NOT_PUBLISHEDThe code indicating the visibility level of the action. A list of valid values is defined in the lookup ORA_SVC_AP_VISIBILITY_CD. -
VisibilityCdMeaning: string
Title:
Visibility ValueMaximum Length:255The display value corresponding to the visibility lookup code for the action plan action. -
WorkflowActionId: integer
(int64)
Title:
Workflow Action IDThe unique identifier of the action for the workflow. -
WorkflowId: integer
(int64)
Title:
Workflow IDThe unique identifier of the workflow.
Nested Schema : Action Plan Action Relations
Type:
arrayTitle:
Action Plan Action RelationsThe action plan action relations resource is used to view, create, update, and delete the relations between the actions in an action plan. An action relation may define the sequence in which the actions are to be carried out.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : actionplans-actionPlanAction-actionPlanActionRelation-item-response
Type:
Show Source
object-
ActionPlanActionId: integer
(int64)
Title:
Action Plan Action IDThe unique identifier of the action in an action plan. -
ActionPlanActionNumber: string
Title:
Action Plan Action NumberMaximum Length:30The action plan reference number. -
ActionStatusCd: string
Title:
Action StatusMaximum Length:30Default Value:ORA_SVC_COMPLETEDThe code indicating the status of the dependency condition of the action relation. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the dependencies of an action. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date and time when the action dependency was created. -
DeletedFlag: boolean
Title:
DeletedMaximum Length:1Default Value:falseIndicates whether the action dependency is deleted. The default value is false. -
DeleteFlag: boolean
Read Only:
trueIndicates whether the action dependency can be deleted. -
DepActionPlanActionId: integer
(int64)
Title:
Dependent Action Plan Action IDThe unique identifier of the dependent action in an action plan. -
DepActionPlanActionNumber: string
Title:
Dependent Action Plan Action NumberMaximum Length:30The dependent action plan reference number. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueThe date and time when the action dependency was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the dependencies of action. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login details of the user who last updated the dependencies of action. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
RelationId: integer
(int64)
Title:
Relation IDRead Only:trueThe unique identifier of the relation between actions in an action plan. -
UpdateFlag: boolean
Read Only:
trueIndicates whether the action dependency 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
- ActionVisibilityCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_AP_VISIBILITY_CD
The list of values indicating the visibility of the action in an action plan.
The following properties are defined on the LOV link relation:- Source Attribute: VisibilityCd; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- LeadTimeUnitLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_AP_LEAD_TIME_UNIT
The list of values indicating the unit of measurement for the time required to complete an action.
The following properties are defined on the LOV link relation:- Source Attribute: LeadTimeUnit; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- StatusCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_AP_STATUS_CD
The list of values indicating the status of the action in an action plan.
The following properties are defined on the LOV link relation:- Source Attribute: StatusCd; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- YesNoLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DYES_NO
The list of values indicating whether an action in an action plan is skipped.
The following properties are defined on the LOV link relation:- Source Attribute: SkipFlag; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- actionPlanActionRelation
-
Parameters:
- ActionPlanActionId:
$request.path.ActionPlanActionId - ActionPlanId:
$request.path.ActionPlanId
The action plan action relations resource is used to view, create, update, and delete the relations between the actions in an action plan. An action relation may define the sequence in which the actions are to be carried out. - ActionPlanActionId:
Examples
The following example shows how to update an action in an action plan 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/actionplans/300100117534967/child/actionPlanAction/300100118919336
Example of Request Body
The following example shows the contents of the request body in JSON format.
{
"StatusDetails": "Not started"
}Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"ActionId": 300100117527290,
"ActionPlanActionId": 300100118919336,
"ActionPlanId": 300100117534967,
"CreatedBy": "SALES_ADMIN",
"CreationDate": "2017-09-27T14:15:59+00:00",
"DelayedFlag": false,
"DeletedFlag": false,
"EndDate": null,
"ExpectedCompletionDate": null,
"ExpectedStartDate": null,
"LastUpdateDate": "2017-09-27T14:29:53+00:00",
"LastUpdateLogin": "5A2BD805BC436ED2E0538E09F20A9D1F",
"LastUpdatedBy": "SALES_ADMIN",
"LeadTime": null,
"LeadTimeUnit": null,
"MandatoryFlag": true,
"ObjectId": null,
"ObjectReferenceNumber": null,
"OrderNumber": 1,
"StartDate": null,
"StatusCd": "ORA_SVC_NOT_STARTED",
"StatusDetails": "Not started",
"TemplateId": null,
"OwnerName": null,
"Prerequisites": null,
"ObjectEntityName": "Activity",
"ObjectEntityType": "Appointment",
"VisibilityCd": "ORA_SVC_CUSTOMER_VISIBLE",
"ActionName": "action149_1",
"UpdateFlag": true,
"DeleteFlag": true,
"ActionNumber": "ACT0000043279",
"ActionDescription": null,
"EndDateReadOnlyFlag": false,
"DclActionPlan_Id_c": null,
"DclActionPlan_c": null,
"links": [
...
]
}