Update a dynamic link pattern

patch

/crmRestApi/resources/11.13.18.05/dynamicLinkPatterns/{ObjectId}

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
  • Maximum Length: 1024
    The display label for the object type, such as Service Request, Knowledge Article, etc.
  • Title: Object Type
    Maximum Length: 30
    The type of the object, such as Service Request, Knowledge Article, etc.
  • The internal unique identifier of the table row.
  • Title: Pattern
    Maximum Length: 1024
    The regular expression used for searching the object in the message content.
  • Title: Pattern Beginning
    Maximum Length: 512
    The prefix of the pattern, the information before the actual object identifier.
  • Title: Pattern Ending
    Maximum Length: 512
    The suffix of the pattern, the information after the actual object identifier.
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 : dynamicLinkPatterns-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a dynamic link pattern 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/dynamicLinkPatterns/1

Example of Request Body

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

{
"ObjectType": "SERVICE_REQUEST_CRM"
}

Example of Response Body

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

{
    "ObjectId": 2,
    "ObjectVersionNumber": 2,
    "CreatedBy": "SEED_DATA_FROM_APPLICATION",
    "CreationDate": "2018-08-18T04:14:01+00:00",
    "LastUpdatedBy": "SALES_ADMIN",
    "LastUpdateLogin": "7572459B45477E7DE0538E09F20A8E5D",
    "LastUpdateDate": "2018-09-11T09:15:17+00:00",
    "ObjectType": "SERVICE_REQUEST_CRM",
    "Pattern": "(?i)\\b(SR)([0-9]{10})\\b",
    "PatternPrefix": null,
    "PatternSuffix": null,
    "Label": null,
    "links": [
		...
		]
}
Back to Top