Create a social post tag

post

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

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
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-SocialPostTags-item-response
Type: object
Show Source
Back to Top

Examples

Use POST with the following URI syntax to create a social post tag:

Example of Request URI

The following shows an example of the request URL.

https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100111327529/child/SocialPostTags

Example of Request Header

The following shows an example of the request header.

POST  crmRestApi/resources/11.13.18.05/socialPosts/300100111327529/child/SocialPostTags 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 shows an example of the request body in JSON format.

Content type:
{
"Tag" : "Dragonite"
}

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 201 Created
Date: Fri, 16 June 2017 09:30:10 GMT
Server: Oracle-HTTP-Server-11g
Content-Type: application/vnd.oracle.adf.resourceitem+json
Content-Language: en

Example of Response Body

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

Content type:
{
"TagId": 300100111445046,
"Tag": "Dragonite",
"links": [
  {
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100111327529/child/SocialPostTags/300100111445046",
"name": "SocialPostTags",
"kind": "item"
},
  {
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100111327529/child/SocialPostTags/300100111445046",
"name": "SocialPostTags",
"kind": "item"
},
  {
"rel": "parent",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/socialPosts/300100111327529",
"name": "socialPosts",
"kind": "item"
}
],
}
Back to Top