Update a smart text
patch
/crmRestApi/resources/11.13.18.05/smartTexts/{smartTextsUniqID}
Request
Path Parameters
-
smartTextsUniqID(required): string
This is the hash key of the attributes which make up the composite key--- StdTxtId, Language and StandardTextId ---for the Smart Texts resource and used to uniquely identify an instance of Smart Texts. The client should not generate the hash key value. Instead, the client should query on the Smart Texts collection resource with a filter on the primary key values in order to navigate to a specific instance of Smart Texts.
For example: smartTexts?q=StdTxtId=<value1>;Language=<value2>;StandardTextId=<value3>
Header Parameters
-
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
BuOrgId: integer
(int64)
The unique identifier of the business unit that primarily uses the smart text.
-
Domain: string
Maximum Length:
30
The domain or category to which the smart text belongs to, such as ORA_GENERIC. -
EnabledFlag: boolean
Maximum Length:
1
Default Value:true
Indicates whether the standard text is enabled for use. -
EndDate: string
(date)
The date when the use of the smart text expires.
-
FolderId: integer
(int64)
The unique identifier of the folder to which the standard text is assigned.
-
HtmlFlag: boolean
Maximum Length:
20
Default Value:false
Indicates if the standard text is rich text or plain text. Possible values are Yes and No. If the values is Yes, then the standard text is in rich text format. -
Language: string
Maximum Length:
4
Indicates the code of the language into which the contents of the translatable columns are translated. -
Object: string
Maximum Length:
150
The primary object for which the smart text is used for, such as ServiceRequest. -
Scope: string
Maximum Length:
20
Default Value:ORA_SVC_USER
Indicates if the smart text is accessible globally or to a specific user. The possible values are ORA_SVC_GLOBAL and ORA_SVC_USER. If the value is ORA_SVC_USER, then the smart text is accessible to a specific user. The user's party Id is set in the USER_PARTY_ID attribute. -
StartDate: string
(date)
The date when the use of the smart text begins.
-
StdtxtName: string
Maximum Length:
50
A short description of the standard text. -
StripeCd: string
Maximum Length:
30
Indicates the stripe to which the smart text belongs to, such as ORA_SVC_CRM or ORA_SVC_HCM. -
Text: string
(byte)
The language dependent and translatable standard text that forms the smart text.
-
UserPartyId: integer
(int64)
The user who can access the smart text, when the Scope of the smart text is set to ORA_SVC_USER.
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 : smartTexts-item-response
Type:
Show Source
object
-
BuOrgId: integer
(int64)
The unique identifier of the business unit that primarily uses the smart text.
-
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the smart text. -
CreationDate: string
(date-time)
Read Only:
true
The date and time when the smart text was created. -
Domain: string
Maximum Length:
30
The domain or category to which the smart text belongs to, such as ORA_GENERIC. -
EnabledFlag: boolean
Maximum Length:
1
Default Value:true
Indicates whether the standard text is enabled for use. -
EndDate: string
(date)
The date when the use of the smart text expires.
-
FolderId: integer
(int64)
The unique identifier of the folder to which the standard text is assigned.
-
HtmlFlag: boolean
Maximum Length:
20
Default Value:false
Indicates if the standard text is rich text or plain text. Possible values are Yes and No. If the values is Yes, then the standard text is in rich text format. -
Language: string
Maximum Length:
4
Indicates the code of the language into which the contents of the translatable columns are translated. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the smart text was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the smart text. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the smart text. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Object: string
Maximum Length:
150
The primary object for which the smart text is used for, such as ServiceRequest. -
Scope: string
Maximum Length:
20
Default Value:ORA_SVC_USER
Indicates if the smart text is accessible globally or to a specific user. The possible values are ORA_SVC_GLOBAL and ORA_SVC_USER. If the value is ORA_SVC_USER, then the smart text is accessible to a specific user. The user's party Id is set in the USER_PARTY_ID attribute. -
StandardTextId: integer
(int64)
Read Only:
true
The unique identifier of the smart text translation entity along with the language. -
StartDate: string
(date)
The date when the use of the smart text begins.
-
StdTxtId: integer
(int64)
Read Only:
true
The unique identifier of the smart text. You can use this to retrieve a smart text. -
StdtxtName: string
Maximum Length:
50
A short description of the standard text. -
StripeCd: string
Maximum Length:
30
Indicates the stripe to which the smart text belongs to, such as ORA_SVC_CRM or ORA_SVC_HCM. -
Text: string
(byte)
The language dependent and translatable standard text that forms the smart text.
-
Tooltip: string
Read Only:
true
Maximum Length:4000
Tooltip text derived from text value. -
UniqueNumber: string
Maximum Length:
30
The unique identifier of the row. -
UserPartyId: integer
(int64)
The user who can access the smart text, when the Scope of the smart text is set to ORA_SVC_USER.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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
- processSmartText
-
Parameters:
- smartTextsUniqID:
$request.path.smartTextsUniqID
This action accepts a jsonString with the primary keys of the smart text and the referenced object. The action then substitutes the variables in the smart text with the data obtained from the referenced object. Alternatively, you can use the PUID instead of the primary key to reference the smart text. - smartTextsUniqID: