Add a social post URL

post

/crmRestApi/resources/11.13.18.05/socialPosts/{PostId}/child/socialPostUrls

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
  • Title: URL
    Maximum Length: 1000
    The actual social post URL.
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 : socialPosts-socialPostUrls-item-response
Type: object
Show Source
  • Links
  • Title: URL
    Maximum Length: 1000
    The actual social post URL.
  • Title: URL ID
    Read Only: true
    The unique identifier of the social post URL.
Back to Top

Examples

The following example shows how to add a social post URL by submitting a POST request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts

Example of Request Body

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

{
      "PostChannelCd": "TWITTER",
      "PostDate": "2019-02-13T05:37:44+00:00",
      "PostMessageTypeCd": "ORA_SVC_POST",
      "PostParentPostId": null,
      "PostPostId": "3215",
      "PostSubChannelName": "PellComputers",
      "PostURL": "http://twitter.com/rnhkmtest/status/1095557614727905281",
      "PostUser": "rnhkmtest",
      "SourceCd": "ORA_SVC_ICS",
      "SourcePostIdPrimary": "475",
      "SourcePostIdSecondary": "9973",
      "SourcePostIdTertiary": "cc4b3254-d487-4cb5-b15a-0434b50d86f8",
      "PostContentString": "@PellComputers  Need urgent help. My laptop is not charging and I have a presentation tomorrow. https://t.co/wBxkFdYiws",
      "SocialUserId": 100100080047819,
      "CanRespondFlag": true,
      "socialPostUrls": [
        {
          "Url": "https://pbs.twimg.com/media/DzQz02KUUAE1J_V.jpg"
        }
      ]
    }

Example of Response Body

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

{
  "CreatedBy" : "SALES_ADMIN",
  "CreationDate" : "2020-01-06T08:30:20+00:00",
  "DeletedFlag" : false,
  "LastUpdateDate" : "2020-01-06T08:30:20.848+00:00",
  "LastUpdateLogin" : "99EB552401AB545FE05392BDF20A1B17",
  "LastUpdatedBy" : "SALES_ADMIN",
  "PostChannelCd" : "TWITTER",
  "PostDate" : "2019-02-13T05:37:44+00:00",
  "PostId" : 300100182585563,
  "PostMessageTypeCd" : "ORA_SVC_POST",
  "PostParentPostId" : null,
  "PostPostId" : "3215",
  "PostSubChannelName" : "PellComputers",
  "PostURL" : "http://twitter.com/rnhkmtest/status/1095557614727905281",
  "PostUser" : "rnhkmtest",
  "SourceCd" : "ORA_SVC_ICS",
  "SourcePostIdPrimary" : "475",
  "SourcePostIdSecondary" : "9973",
  "SourcePostIdTertiary" : "cc4b3254-d487-4cb5-b15a-0434b50d86f8",
  "PostContentString" : "@PellComputers  Need urgent help. My laptop is not charging and I have a presentation tomorrow. https://t.co/wBxkFdYiws",
  "ProcessingStatusCd" : null,
  "ProcessingMessage" : null,
  "ObjectId" : null,
  "ObjectTypeCd" : null,
  "SocialUserId" : 100100080047819,
  "CanRespondFlag" : true,
  "socialPostUrls" : [ {
    "UrlId" : 300100182585564,
    "Url" : "https://pbs.twimg.com/media/DzQz02KUUAE1J_V.jpg",
    "links" : [ {
      "rel" : "self",
      "href" : "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100182585563/child/socialPostUrls/300100182585564",
      "name" : "socialPostUrls",
      "kind" : "item"
    }, 
...
  } ]
}
Back to Top