Create a social post
post
/crmRestApi/resources/11.13.18.05/socialPosts
Request
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
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.
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
- PostChannelCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DHZ_INSTANT_MESSENGER_TYPE
The list of values containing all the supported social networks.
The following properties are defined on the LOV link relation:- Source Attribute: PostChannelCd; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- PostMessageTypeCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_SOC_POST_MSG_TYPE_CD
The list of values indicating the supported message types, such as Post, Private Post.
The following properties are defined on the LOV link relation:- Source Attribute: PostMessageTypeCd; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- SocialPostTags
-
Parameters:
- PostId:
$request.path.PostId
The social post tags resource is used to view, create, and delete the tags associated with a social post, such as Customer_Churn, Billing Customer Service, etc. - PostId:
- SourceCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_SOC_POST_SOURCE_CD
The list of values indicating the the source systems of the social posts, such as Oracle SRM.
The following properties are defined on the LOV link relation:- Source Attribute: SourceCd; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- socialPostUrls
-
Parameters:
- PostId:
$request.path.PostId
The social post URLs resource is used to view, create, and delete the URLs associated with service objects such as social posts or service requests. An example of an URL is the link to a photo sent by a customer along with a social post. - PostId:
Examples
Use POST with the following URI syntax to create a social post:
Example of Request URI
The following shows an example of the request header.
https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts
Example of Request Header
The following shows an example of the request header.
POST /crmRestApi/resources/11.13.18.05/socialPosts HTTP/1.1 HOST: servername.fa.us2.oraclecloud.com authorization: Basic U0FMRVNfQURNSU46V2VsY29tZTE= content-type: application/vnd.oracle.adf.resourceitem+json
Example of Request Body
The following example shows the contents of the request body in JSON format.
{ "PostChannelCd":"ORA_SVC_FACEBOOK", "PostDate":"2016-03-18T13:23:22-07:00", "PostPostId":"8312", "PostParentPostId":"A123231", "PostSubChannelName":"HBOGOT", "SourcePostIdPrimary":"A12356", "PostUser":"abcdef", "PostContent":"VGVzdCBTUiBDcmVhdGlvbiBTb2NpYWwgUG9zdCBDcmVhdGlvbg==", "SourceCd":"ORA_SVC_ICS" }
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 201: Created Date: Mon, 09 Jan 2017 13:19:04 GMT Server: Oracle-HTTP-Server-11g Content-Type: application/vnd.oracle.adf.resourceitem+json Content-Language: en
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "CreatedBy": "SALES_ADMIN", "CreationDate": "2017-01-09T03:36:22-08:00", "DeletedFlag": false, "LastUpdateDate": "2017-01-09T03:36:22-08:00", "LastUpdateLogin": "45A687B69853331FE0530E8EF50A5040", "LastUpdatedBy": "SALES_ADMIN", "PostChannelCd": "ORA_SVC_FACEBOOK", "PostDate": "2016-03-18T13:23:22-07:00", "PostId": 300100094869727, "PostMessageTypeCd": null, "PostParentPostId": "A123231", "PostPostId": "8312", "PostSubChannelName": "HBOGOT", "PostURL": null, "PostUser": "abcdef", "SourceCd": "ORA_SVC_ICS", "SourcePostIdPrimary": "A12356", "SourcePostIdSecondary": null, "SourcePostIdTertiary": null, "PostContentString": "Test SR Creation Social Post Creation", "links": [ { "rel": "self", "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100094869727", "name": "socialPosts", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787200106A6176612E6C616E672E4F626A656374000000000000000000000078700000000178" } } , { "rel": "canonical", "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100094869727", "name": "socialPosts", "kind": "item" } , { "rel": "lov", "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100094869727/lov/SourceCdLookup", "name": "SourceCdLookup", "kind": "collection" } , { "rel": "lov", "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100094869727/lov/PostMessageTypeCdLookup", "name": "PostMessageTypeCdLookup", "kind": "collection" } , { "rel": "lov", "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100094869727/lov/PostChannelCdLookup", "name": "PostChannelCdLookup", "kind": "collection" } , { "rel": "enclosure", "href": "http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100094869727/enclosure/PostContent", "name": "PostContent", "kind": "other" } ], }