Create all comments
post
/fscmRestApi/resources/11.13.18.05/advancedControls/{Id}/child/comments
Request
Path Parameters
-
Id(required): integer
The unique identifier of the advanced control.
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
-
Id: integer
The unique identifier of the advanced-control comment.
-
UserComment: string
Title:
Comment
Maximum Length:2000
The text of the advanced-control comment.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context(required):
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(required):
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 : advancedControls-comments-item-response
Type:
Show Source
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the advanced-control comment. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date and time the advanced-control comment was created. -
Id: integer
The unique identifier of the advanced-control comment.
-
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date and time the advanced-control comment was most recently updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who updated the advanced-control comment most recently. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
UserComment: string
Title:
Comment
Maximum Length:2000
The text of the advanced-control comment.
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.
Examples
The following example shows how to create a comment by submitting a POST request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/advancedControls/11009/child/comments
Example Request Payload
The following example shows the contents of the request body in JSON format:
{ "UserComment":"8c37cfe1-0718-45ac989a-3f0d9d95277f", "ObjectTypeCode":"GRCC_CONTROL" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "CreatedBy": "APPLICATION_CONTROL_MANAGER", "CreationDate": "2020-02-11T07:55:13-08:00", "Delegated": "N", "Id": 11000, "LastUpdateDate": "2020-02-11T07:55:13.208-08:00", "LastUpdatedBy": "APPLICATION_CONTROL_MANAGER", "ObjectId": 11009, "ObjectStateCode": "NEW", "ObjectTypeCode": "GRCC_CONTROL", "UserComment": "8c37cfe1-0718-45ac-989a-3f0d9d95277f", "links": [ { ... } ] }