Update an action

patch

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

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 Attributes
    Title: Action Attributes
    The action attributes resource is used to view, create, update, and delete the attributes that are set while creating or updating the related object of an action.
  • Title: Category
    Maximum Length: 30
    The code indicating the category of the action. A list of valid values is defined in the lookup ORA_SVC_AP_ACTION_CATEGORY_CD.
  • Title: Action Category Value
    Maximum Length: 255
    The display value corresponding to the action category lookup code for the action.
  • Action Conditions
    Title: Action Conditions
    The action conditions resource is used to view, create, update, and delete the definitions of the status mapping conditions for the related object of an action.
  • Title: Business Unit ID
    The unique identifier of the business unit name associated to the action.
  • Title: Business Unit ID
    The name of the business unit associated to the action.
  • Title: Copy Attachments
    Maximum Length: 1
    Default Value: false
    Indicates whether the attachments are copied from the parent context to the child object.
  • Title: Deleted
    Maximum Length: 1
    Default Value: false
    Indicates whether the action is deleted. The default value is false.
  • Title: Description
    Maximum Length: 1000
    The description of the action.
  • Title: Duration
    The estimated time required to complete the action.
  • Title: Duration Unit
    Maximum Length: 30
    The unit of measurement of the lead time, such as minutes, hours, or days.
  • Title: Lead Time Unit Value
    Maximum Length: 255
    The display value corresponding to the lead time unit lookup code for the action.
  • Title: Action
    Maximum Length: 400
    The name of the action.
  • Title: Object Entity Name Value
    Maximum Length: 255
    The display value corresponding to the object entity name lookup code for the action.
  • Title: Object Entity Type Value
    Maximum Length: 255
    The display value corresponding to the object entity type lookup code for the action.
  • Title: Object Link Type Id
    The object link type identifier associated to the action.
  • Title: Link Type Number
    Maximum Length: 255
    The public unique identifier of the object link type associated with the action.
  • Title: Operation Code
    Maximum Length: 30
    The operation code entry for the action. A list of valid values is defined in the lookup ORA_SVC_AP_OPERATION_CD.
  • Title: Operation Value
    Maximum Length: 255
    The display value corresponding to the operation lookup code for the action.
  • Title: Original System Reference
    Maximum Length: 255
    The reference to the original system from which the action was imported (if imported).
  • Title: Parent Entity Name Value
    Maximum Length: 255
    The display value corresponding to the parent entity name lookup code for the action.
  • Title: Stripe Code
    Maximum Length: 30
    The application context of the action.
  • Title: Stripe Value
    Maximum Length: 255
    The display value corresponding to the stripe lookup code for the action.
  • Title: Use Default Version
    Maximum Length: 1
    Default Value: false
    Indicates whether the default process version is used.
  • Title: Visibility
    Maximum Length: 30
    Default Value: ORA_SVC_NOT_PUBLISHED
    The code indicating the visibility level of the action. A list of valid values is defined in the lookup ORA_SVC_AP_VISIBILITY_CD.
  • Title: Visibility Value
    Maximum Length: 255
    The display value corresponding to the visibility lookup code for the action.
Nested Schema : Action Attributes
Type: array
Title: Action Attributes
The action attributes resource is used to view, create, update, and delete the attributes that are set while creating or updating the related object of an action.
Show Source
Nested Schema : Action Conditions
Type: array
Title: Action Conditions
The action conditions resource is used to view, create, update, and delete the definitions of the status mapping conditions for the related object of an action.
Show Source
Nested Schema : schema
Type: object
Show Source
  • Title: Attribute Value
    Maximum Length: 1000
    The value to be set for the action attribute.
  • Title: Context
    Maximum Length: 30
    Default Value: ORA_SVC_USER_DEFINED
    The code indicating the context within which the attribute value is interpreted. A list of valid values is defined in the lookup ORA_SVC_AP_CONTEXT_CD.
  • Title: Context Value
    Maximum Length: 255
    The display value corresponding to the context lookup code for the action attribute.
  • Title: Child Attribute Indicator
    Maximum Length: 1
    Default Value: false
    Indicates whether this attribute belongs to the parent or one of its child objects.
  • Title: Deleted
    Maximum Length: 1
    Default Value: false
    Indicates whether the attribute action is deleted. The default value is false.
  • Title: Usage
    Maximum Length: 30
    Default Value: ORA_SVC_CREATE
    The code indicating when the attribute is to be used. A list of valid values is defined in the lookup ORA_SVC_AP_ATTRIBUTE_USAGE_CD.
  • Title: Usage Value
    Maximum Length: 255
    The display value corresponding to the usage lookup code for the action attribute.
Nested Schema : schema
Type: object
Show Source
  • 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-item-response
Type: object
Show Source
  • Action Attributes
    Title: Action Attributes
    The action attributes resource is used to view, create, update, and delete the attributes that are set while creating or updating the related object of an action.
  • Title: Category
    Maximum Length: 30
    The code indicating the category of the action. A list of valid values is defined in the lookup ORA_SVC_AP_ACTION_CATEGORY_CD.
  • Title: Action Category Value
    Maximum Length: 255
    The display value corresponding to the action category lookup code for the action.
  • Action Conditions
    Title: Action Conditions
    The action conditions resource is used to view, create, update, and delete the definitions of the status mapping conditions for the related object of an action.
  • Title: Action ID
    The unique identifier of the action.
  • Title: Action Number
    Maximum Length: 64
    The alternate unique identifier of the action.
  • Title: Business Unit ID
    The unique identifier of the business unit name associated to the action.
  • Title: Business Unit ID
    The name of the business unit associated to the action.
  • Title: Copy Attachments
    Maximum Length: 1
    Default Value: false
    Indicates whether the attachments are copied from the parent context to the child object.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the action.
  • Title: Creation Date
    Read Only: true
    The date and time when the action was created.
  • Title: Deleted
    Maximum Length: 1
    Default Value: false
    Indicates whether the action is deleted. The default value is false.
  • Read Only: true
    Indicates whether the action can be deleted.
  • Title: Description
    Maximum Length: 1000
    The description of the action.
  • Title: Last Update Date
    Read Only: true
    The date and time when the action was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the action.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The login details of the user who last updated the action.
  • Title: Duration
    The estimated time required to complete the action.
  • Title: Duration Unit
    Maximum Length: 30
    The unit of measurement of the lead time, such as minutes, hours, or days.
  • Title: Lead Time Unit Value
    Maximum Length: 255
    The display value corresponding to the lead time unit lookup code for the action.
  • Links
  • Title: Action
    Maximum Length: 400
    The name of the action.
  • Title: Entity Name
    Maximum Length: 400
    The entity name of the object on which the action is based.
  • Title: Object Entity Name Value
    Maximum Length: 255
    The display value corresponding to the object entity name lookup code for the action.
  • Title: Object Entity Subtype
    Maximum Length: 400
    Indicates the subtype of the object on which the action is based.
  • Title: Type
    Maximum Length: 400
    The type of the entity object on which the action is based.
  • Title: Object Entity Type Value
    Maximum Length: 255
    The display value corresponding to the object entity type lookup code for the action.
  • Title: Object Link Type Id
    The object link type identifier associated to the action.
  • Title: Link Type Number
    Maximum Length: 255
    The public unique identifier of the object link type associated with the action.
  • Title: Operation Code
    Maximum Length: 30
    The operation code entry for the action. A list of valid values is defined in the lookup ORA_SVC_AP_OPERATION_CD.
  • Title: Operation Value
    Maximum Length: 255
    The display value corresponding to the operation lookup code for the action.
  • Title: Original System Reference
    Maximum Length: 255
    The reference to the original system from which the action was imported (if imported).
  • Title: Context
    Maximum Length: 400
    The entity name of the object on which the action is used.
  • Title: Parent Entity Name Value
    Maximum Length: 255
    The display value corresponding to the parent entity name lookup code for the action.
  • Title: Process Connection Type Code
    Read Only: true
    Maximum Length: 30
    Default Value: Integrated
    The lookup code that indicates if the connection to Process Cloud is basic or integrated.
  • Title: Process Metadata ID
    The unique identifier of the process metadata.
  • Title: Process Metadata Number
    Maximum Length: 30
    The reference number of the process metadata.
  • Title: Stripe Code
    Maximum Length: 30
    The application context of the action.
  • Title: Stripe Value
    Maximum Length: 255
    The display value corresponding to the stripe lookup code for the action.
  • Read Only: true
    Indicates whether the action can be updated.
  • Title: Use Default Version
    Maximum Length: 1
    Default Value: false
    Indicates whether the default process version is used.
  • Title: Visibility
    Maximum Length: 30
    Default Value: ORA_SVC_NOT_PUBLISHED
    The code indicating the visibility level of the action. A list of valid values is defined in the lookup ORA_SVC_AP_VISIBILITY_CD.
  • Title: Visibility Value
    Maximum Length: 255
    The display value corresponding to the visibility lookup code for the action.
Nested Schema : Action Attributes
Type: array
Title: Action Attributes
The action attributes resource is used to view, create, update, and delete the attributes that are set while creating or updating the related object of an action.
Show Source
Nested Schema : Action Conditions
Type: array
Title: Action Conditions
The action conditions resource is used to view, create, update, and delete the definitions of the status mapping conditions for the related object of an action.
Show Source
Nested Schema : actions-actionAttribute-item-response
Type: object
Show Source
  • Title: Action Attribute ID
    Read Only: true
    The unique identifier of the action attribute.
  • Title: Action ID
    The unique identifier of the action.
  • Title: Action Number
    Maximum Length: 64
    The alternate unique identifier of the action.
  • Title: Attribute Name
    Maximum Length: 2000
    The name of the action attribute.
  • Title: Attribute Value
    Maximum Length: 1000
    The value to be set for the action attribute.
  • Title: Context
    Maximum Length: 30
    Default Value: ORA_SVC_USER_DEFINED
    The code indicating the context within which the attribute value is interpreted. A list of valid values is defined in the lookup ORA_SVC_AP_CONTEXT_CD.
  • Title: Context Value
    Maximum Length: 255
    The display value corresponding to the context lookup code for the action attribute.
  • Title: Child Attribute Indicator
    Maximum Length: 1
    Default Value: false
    Indicates whether this attribute belongs to the parent or one of its child objects.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the action attribute.
  • Title: Creation Date
    Read Only: true
    The date and time when the action attribute was created.
  • Title: Deleted
    Maximum Length: 1
    Default Value: false
    Indicates whether the attribute action is deleted. The default value is false.
  • Read Only: true
    Indicates whether the action attribute can be deleted.
  • Title: Last Update Date
    Read Only: true
    The date and time when the action attribute was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the action attribute.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The login details of the user who last updated the action attribute.
  • Links
  • Read Only: true
    Indicates whether the action attribute can be updated.
  • Title: Usage
    Maximum Length: 30
    Default Value: ORA_SVC_CREATE
    The code indicating when the attribute is to be used. A list of valid values is defined in the lookup ORA_SVC_AP_ATTRIBUTE_USAGE_CD.
  • Title: Usage Value
    Maximum Length: 255
    The display value corresponding to the usage lookup code for the action attribute.
Nested Schema : actions-actionCondition-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update an action 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/ACT0000044367

Example of Request Body

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

{
"Name" : "AcP_Rest44", 
"VisibilityCd" : "ORA_SVC_CUSTOMER_VISIBLE"
}

Example of Response Body

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

{
"ActionCategoryCd": "CATEGORY 1",
"ActionId": 300100118621756,
"CreatedBy": "xuidrill2",
"CreationDate": "2017-09-25T06:38:02+00:00",
"DeletedFlag": false,
"Description": "SR IN Progress to Blocked when Severity is HIGH",
"LastUpdateDate": "2017-09-27T12:50:07+00:00",
"LastUpdateLogin": "5A2BD805BC436ED2E0538E09F20A9D1F",
"LastUpdatedBy": "SALES_ADMIN",
"LeadTime": 45,
"LeadTimeUnit": "ORA_SVC_MINS",
"Name": "AcP_Rest44",
"ObjectEntityName": "ServiceRequest",
"ParentEntityName": "ServiceRequest",
"VisibilityCd": "ORA_SVC_CUSTOMER_VISIBLE",
"OperationCd": "ORA_SVC_CREATE",
"ObjectEntityType": "ServiceRequest",
"ActionNumber": "ACT0000044367",
"OriginalSystemReference": "ACT0000044367",
"DeleteFlag": true,
"UpdateFlag": true,
"DclAction_Id_c": null,
"DclAction_c": null,
"links": [
...
]
}
Back to Top