Social Media Post

Overview

The Social Media Post service is used to store and manipulate social media data, which is harvested from social media channels.

Using this service, you can:

  • Store social media data.
  • Delete social media data.
  • Update social media data (only the readFlag and processAgentID fields can be updated).
  • Configure social media channels.


API Reference

/{tenant}/socialMediaPosts

This resource defines the GET, PUT and DELETE methods for social media posts.

/{tenant}/socialMediaPosts

get

Return a list of social media posts.

The GET method is paged. Use the query parameters pageNumber to control which page is retrieved. Use the query parameter pageSize to control the number of social media post items per page. The maximum pageSize supported is 200.

Required scope: hybris.socialmediapost_view

post

Create a list of social media post items. This method can be called to store the social media posts harvested from your desired social media channels. If you can’t get all the required data from the social media channel directly, you may need to prepare them on your own before calling this method:

  • communicationMediumID: The social media channel where the social media post is harvested
  • socialPostOrigin: The origin of the social media post within the social media channel (e.g. the Facebook page)
  • socialUserID: The social media user identifier of the social media channel
  • socialPostDirection: INBOUND or OUTBOND to indicate the direction of the social media post
  • socialPostParentID: The ID of the parent social media post
  • socialPostRootID: The ID of the top-most social media post in the social media conversation. Together with socialPostParentID, the whole social media conversation can be formed up.
  • profilePhotoLink: The link of the social media user photo.

Required scope: hybris.socialmediapost_manage

put

Update social media posts. Only the following fields can be updated:

  • readFlag: to indicate whether the social media post has been read or not
  • processAgentId: the user who processes the social media post

Required scope: hybris.socialmediapost_manage

delete

Delete social media posts.

Required scope: hybris.socialmediapost_delete

/{tenant}/socialMediaPosts/{id}

This resource defines the GET, PUT and DELETE methods for individual social media post.

get

Return single social media post item by id.

Required scope: hybris.socialmediapost_view

put

Update single social media post item by id.

Required scope: hybris.socialmediapost_manage

delete

Delete single social media post item by id.

Required scope: hybris.socialmediapost_manage

/{tenant}/socialMediaChannel

Social media channel

/{tenant}/socialMediaChannel

get

Return a social media channel's configuration.

Required scope: hybris.socialmediapost_configuration_view

post

Initialize a social media channel's configuration.

Required scope: hybris.socialmediapost_configuration_manage

put

Update a social media channel's configuration.

Required scope: hybris.socialmediapost_configuration_manage

delete

Delete a social media channel's configuration.

Required scope: hybris.socialmediapost_configuration_delete


Scopes

Using the Social Media Post service, you can create roles and assign scopes to them. As a result, users have access only to the resources and operations specified in the scope assigned to their roles.

The table shows the scopes that the Social Media Post service supports.

SCOPEDESCRIPTION
hybris.socialmediapost_viewRead social media data
hybris.socialmediapost_deleteDelete social media data
hybris.socialmediapost_manageCreate and update social media data
hybris.socialmediapost_configuration_viewRead social media channels configuration
hybris.socialmediapost_configuration_deleteDelete social media channels configuration
hybris.socialmediapost_configuration_manageCreate and update social media channels configuration

A customer cannot retrieve, update, or delete a social media post that belongs to another customer. For more information about scopes, authorization, and authentication procedures for YaaS services, see Scopes and Authorization.


Create a Social Media Post

A social media post is a post that is harvested from the social media channels that you have chosen. Before you use the Social Media Post service, prepare the social media channel you want to harvest. Following the preparation, you can store the harvested posts in this service. For more information about social media channels, see the Default Social Media Channels section.

Generally, an API, provided by a social media channel, obtains the social media posts that you add to the service. For more information about these APIs, see the documentation for the relevant social media channel.

To create social media post items by using this service, these attributes are mandatory (all remaining attributes are optional):

  • socialPostDirection specifies whether the post is INBOUND or OUTBOUND.
  • socialPostID is the unique ID in your social media channel.
  • communicationMediumID is the name of your social media channel.
  • socialUserID is the user who posts this item to your social media channel.
  • socialPostRootID and socialPostParentID comprise the whole social media conversation posted to the specified social media channel.

After you create a social media post item, the service generates a unique ID that you can use to retrieve the post from this service. A Social Media Post service consumer can create multiple social media posts simultaneously.


Batch Processing of Social Media Posts

Usually, there is a large number of social media posts. For this reason, the service provides batch processing of social media posts.

These batch-processing options for social media posts are available:

  • Batch creation
  • Batch updating
  • Batch deletion

Batch creation of social media posts

A Social Media Post service consumer can use the batch creation of social media post items. You can create these post items simultaneously by using a JSON array body. After you create the post items, the JSON array body returns all resource locations of your social media post items in the Social Media Post service.

For more information about creating multiple social media posts, see Create Social Media Posts.

Batch update of social media posts

A Social Media Post service consumer can use this function to batch update social media posts in batch and specify which social media channel or social media conversation to update. For batch updating, these rules apply:

  • communicationMediumID must have a valid input value.
  • socialPostRootID and socialPostID could not be empty at the same time. A service consumer can only update the readFlag and processAgentID fields for all stored social media post items. You can't change other fields using this service.

For more information about updating multiple social media posts, see Batch Update of Social Media Posts.

Batch deletion of social media posts

A Social Media Post service consumer can delete social media post items in batch. Consumers can specify which social media channel or social media conversation to delete.

To delete social media post items in a batch, you must define a value for the q parameter. Note that these rules apply for using batch deletion:

  • communicationMediumID must have a valid input value.
  • socialPostRootID and socialPostID must not be empty simultaneously.


Social Media Post Retrieval

After you create social media posts by using this service, the service stores the posts in the data repository. You can retrieve the detailed information of existing social media posts from this service.

Retrieve a social media post

After you created social media posts in this service, you can retrieve a social media post item by using the unique identifier (id).

For more information about retrieving a social media post, see Retrieve a Social Media Post.

Retrieve multiple social media posts

After you create social media posts in this service, you can retrieve multiple social media posts by using the specific fields defined in the social media post. You can use these parameters in the query:

  • The sort parameter is used to sort the retrieve results. By default, the column values are sorted in ascending order.
  • The q is the simple query criteria based on available fields to limit returned results or a set of modified documents.
  • The pageNumber parameter is the page number to retrieve, where the size of the pages must be specified by the pageSize parameter. The number of the first page is 1. The pageSize is the number of documents being to retrieve on each page.

For more information about retrieving multiple social media post, see Retrieve Multiple Social Media Posts by Query.


Default Social Media Channels

A social media channel is usually a public portal, which people can access worldwide. Users can typically reply to or initiate a conversation in these channels, for purposes such as sharing, discussions, questions, and blogs. For example, Facebook and Twitter are well-known social media channels.

Before creating social media posts in the service, set up a social media channel first, as all social media posts belong to a defined social media channel.

For the Social Media Post service consumer, default social media channels are supported. The Social Media Post service stores social media posts from the default channel after you initialize the default channels.

Default social media channels initialization

You can initialize the default channels by using the POST method of the /{tenant}/socialMediaChannel endpoint. Then you can create the social media posts from default channels. Currently, SAP Jam Communities is the only default social media channel.

For more information about initializing default social media channels, see Initialize Default Social Media Channels.


Custom Social Media Channels

The Social Media Post service consumers can create their own desired channels besides the default channels. The Social Media Post service is able to store the data from the custom social channel if the social media channel is activated.

For more information about manipulating custom social media channels, see Manipulate Custom Social Media Channels.


Error Messages

The Social Media Post service consumer receives the error code 400 and a corresponding message in these cases:

  • When creating a social media post, socialPostDirection is neither INBOUND nor OUTBOUND.
  • When Activated is not a Boolean value.
  • When updating or deleting multiple social media posts, communicationMediumID is not a defined social media channel. Leave the values for the parameters socialPostRootID and socialPostID empty.


Create Social Media Posts

This example shows how social media posts are created for the consumer of the service:

Request

  • Method: POST
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_manage.
  • URI Parameters
    • {tenant}: The name of the current tenant
  • Body:
    {
     "socialMediaPosts":[
         {
             "socialPostID":"Veasge3asw12523dfda",
             "communicationMediumID":"SAP_COMMUNITY",
             "socialPostOrigin":"1234567890",
             "socialUserID":"1234567890",
             "socialUserName":"John Smith",
             "socialUserEmail":"John.Smith@hybristest.com",
             "socialPostTitle":"This is the first test title",
             "socialPostContent":"This is the first test text",
             "creationDateTime":"14951246230",
             "socialMediaPostLink":"http://xxx.xxx.xxx",
             "socialPostDirection":"INBOUND",
             "socialPostParentID":"",
             "socialPostRootID":"1234567890",
             "readFlag":"false",
             "processAgentID":"John, Doe",
             "postSequence":"1",
             "postDepth":"0",
             "profilePhotoLink":"https://www.facebook.com/images/fb_icon_3 25x325.png",
             "traits":"question",
             "moderationStatus":"moderation_status_escalate"
         } ,
         {
             "socialPostID":"Dsdasetdgreqwegds",
             "communicationMediumID":"SAP_COMMUNITY",
             "socialPostOrigin":"Fsadeqw1254354",
             "socialUserID":"SFWSGdgaewg",
             "socialUserName":"Conrad",
             "socialUserEmail":"Conrad@hybristest.com",
             "socialPostTitle":"This is the second test title",
             "socialPostContent":"This is the second test text",
             "creationDateTime":"14952243230",
             "socialMediaPostLink":"http://xxx.xxx.xxx",
             "socialPostDirection":"INBOUND",
             "socialPostParentID":"0",
             "socialPostRootID":"1234567890",
             "readFlag":"false",
             "processAgentID":"Conrad",
             "postSequence":"2",
             "postDepth":"1",
             "profilePhotoLink":"https://www.facebook.com/images/fb_icon_ 325x325.png",
             "traits":"answer",
             "moderationStatus":"moderation_status_clear"
         }
     ]
    }
    

Response

  • The successful response returns a 201 status code. An example JSON content looks similar to the following:
  • Body: The response body contains the social media post item IDs (id). This ID is used to:
  • Update social media post item details
  • Retrieve social media post item details
  • Delete items from the social media post
[
    {
        "id": "54d1df314b4e9a3a90135790",
        "link": "https://api.beta.yaas.io/repository/v2/cecenteryaas/ uYy0sGWRInslwCPrq4lOkbA0oWiyOZ45/data/socialpost/54d1df314b4e9a3a90135790",
        "postContent": {
            "socialPostID": "Veasge3asw12523dfda",
            "communicationMediumID": "FB",
            "socialPostOrigin": "1234567890",
            "socialUserID": "1234567890",
            "socialUserName": "John Smith",
            "socialUserEmail": "John.Smith@hybristest.com",
            "socialPostTitle": "This is a test title",
            "socialPostContent ":"This is a test text",
            "creationDateTime": "14951246230",
            "socialMediaPostLink": "http://xxx.xxx.xxx",
            "socialPostDirection": "INBOUND",
            "socialPostParentID": "",
            "socialPostRootID": "1234567890",
            "readFlag": "false",
            "processAgentID": "John, Doe",
            "postSequence": "1",
            "postDepth": "0",
            "profilePhotoLink": "https://www.facebook.com/images/fb_icon_ 325x325.png",
            "traits":"question",
            "moderationStatus": "moderation_status_escalate"
        }
    },
    {
        "id":"54d1df314b4e9a3a9013231",
        "link":"https://api.beta.yaas.io/repository/v2/cecenteryaas/ uYy0sGWRInslwCPrq4lOkbA0oWiyOZ45/data/socialpost/54d1df314b4e9a3a9013231",
        "postContent":{
            "socialPostID":"Dsdasetdgreqwegds",
            "communicationMediumID":"SAP_COMMUNITY",
            "socialPostOrigin":"Fsadeqw1254354",
            "socialUserID":"SFWSGdgaewg",
            "socialUserName":"Conrad",
            "socialUserEmail":"Conrad@hybristest.com",
            "socialPostTitle":"This is the second test title",
            "socialPostContent":"This is the second test text",
            "creationDateTime":"14952243230",
            "socialMediaPostLink":"http://xxx.xxx.xxx",
            "socialPostDirection":"INBOUND",
            "socialPostParentID":"0",
            "socialPostRootID":"1234567890",
            "readFlag":"false",
            "processAgentID":"Conrad",
            "postSequence":"2",
            "postDepth":"1",
            "profilePhotoLink":"https://www.facebook.com/images/fb_icon_ 325x325.png",
            "traits":"answer",
            "moderationStatus":"moderation_status_clear"
        }
    }
]


Retrieve a Social Media Post

You can retrieve the social media post item details by performing a request with:

  • The id (you can retrieve the details for the social media post item)
  • The Hybris project identifier (Partial generalterm_project_id doesn't exist)
  • Authorization token header

You must use an appropriate scope to perform this operation. The following request retrieves social media post details:

Request

  • Method: GET
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts/{id}
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_view.
  • URI Parameters
    • {id}: Identifier of an existing social media post item
    • {tenant}: The name of the current tenant

Response

The successful response returns a 200 status code. An example JSON content looks similar to the following:

{
    "socialPostID":"Veasge3asw12523dfda",
    "communicationMediumID":"SAP_COMMUNITY",
    "socialPostOrigin":"1234567890",
    "socialUserID":"1234567890",
    "socialUserName":"John Smith",
    "socialUserEmail":"John.Smith@hybristest.com",
    "socialPostTitle":"This is a test title",
    "socialPostContent":"This is a test text",
    "creationDateTime":"14951246230",
    "socialMediaPostLink":"http://xxx.xxx.xxx",
    "socialPostDirection":"INBOUND",
    "socialPostParentID":"",
    "socialPostRootID":"1234567890",
    "readFlag":"true",
    "processAgentID":"John, Doe",
    "postSequence":"1",
    "postDepth":0,
    "profilePhotoLink":"https://www.facebook.com/images/fb_icon_ 325x325.png",
    "traits":"question",
    "moderationStatus":"moderation_status_escalate"
}


Retrieve Multiple Social Media Posts by Query

You can retrieve the social media post items details by performing a request with:

  • The q URI parameter (must be input fields in the social media post schema)
  • The Hybris project identifier (project ID)
  • Authorization token header

The following request retrieves social media post details:

Request

  • Method: GET
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_view.
  • URI Parameters
    • {tenant}: The name of the current tenant
  • Query Parameters
    • q: Users can use the query to make their search results more specific. For example:
      • If a string value does not have any special characters or spaces, you get all items in the service.
      • To search for more than one value at a time, put the string values separate them with blank space. For example, communicationMediumID:"FB" socialPostRootID:"rootID" socialPostID:("postId1","postId2").

Response

The successful response returns a 200 status code. An example JSON content looks similar to the following:

[
    {
        "socialPostID":"Veasge3asw12523dfda",
        "communicationMediumID":"SAP_COMMUNITY",
        "socialPostOrigin":"1234567890",
        "socialUserID":"1234567890",
        "socialUserName":"John Smith",
        "socialUserEmail":"John.Smith@hybristest.com",
        "socialPostTitle":"This is the first test title",
        "socialPostContent":"This is the first test text",
        "creationDateTime":"14951246230",
        "socialMediaPostLink":"http://xxx.xxx.xxx",
        "socialPostDirection":"INBOUND",
        "socialPostParentID":"",
        "socialPostRootID":"1234567890",
        "readFlag":"true",
        "processAgentID":"John, Doe",
        "postSequence":"1",
        "postDepth":"0",
        "profilePhotoLink":"https://www.facebook.com/images/fb_icon_325x325.png",
        "traits":"question",
        "moderationStatus":"moderation_status_escalate"
    },
    {
        "socialPostID":"Dsdasetdgreqwegds",
        "communicationMediumID":"SAP_COMMUNITY",
        "socialPostOrigin":"Fsadeqw1254354",
        "socialUserID":"SFWSGdgaewg",
        "socialUserName":"Conrad",
        "socialUserEmail":"Conrad@hybristest.com",
        "socialPostTitle":"This is the second test title",
        "socialPostContent":"This is the second test text",
        "creationDateTime":"14952243230",
        "socialMediaPostLink":"http://xxx.xxx.xxx",
        "socialPostDirection":"INBOUND",
        "socialPostParentID":"0",
        "socialPostRootID":"1234567890",
        "readFlag":"true",
        "processAgentID":"Conrad",
        "postSequence":"2",
        "postDepth":"1",
        "profilePhotoLink":"https://www.facebook.com/images/fb_icon_325x325.png",
        "traits":"answer",
        "moderationStatus":"moderation_status_clear"
    }
]


Update a Social Media Post

For an existing social media post item, you can update the readFlag and processAgentID fields you created by using the Social Media Post service. The update is partial and limited to a single social media post item. To update the social media post item, perform a request that contains this information:

  • The social media post id
  • The Hybris project identifier (project ID)
  • Authorization token header

The following example shows you how to update a social media post item:

Request

  • Method: PUT
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts/{id}
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_manage.
  • URI Parameters
    • {id}: Identifier of an existing social media post item
    • {tenant}: The name of the current tenant
  • Body:
    {
      "readFlag":"true",
      "processAgentID":"John, Doe"
    }
    

Response

The successful response returns a 204 status code.


Update Multiple Social Media Posts in a Batch

You can simultaneously update a batch of existing social media post items. The update is partial, but true for all items. A partial update changes the readFlag and processAgentID of all existing items accordingly. To update the social media post items, perform a request that contains this information:

  • q parameter to search these items you want to update. Example: communicationMediumID:"FB" socialPostRootID:"rootID"
  • The Hybris project identifier (project ID)
  • Authorization token header

This example shows you how to update multiple social media posts:

Request

  • Method: PUT
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_manage.
  • URI Parameters
    • {tenant}: The name of the current tenant
  • Query Parameters
    • q: Users can use the query to make their search results more specific. For example:
      • If a string value does not have any special characters or spaces, you get all items in the service.
      • To search for more than one value at a time, put the string values separate them with blank space. For example, communicationMediumID:"FB" socialPostRootID:"rootID" socialPostID:("postId1","postId2").
  • Body:
    {
      "readFlag":"true",
      "processAgentID":"John, Doe"
    }
    

    Response

    The successful response returns a 204 status code.


Delete a Social Media Post

To delete an existing social media post item, send a request that contains this information:

  • ID to be deleted from the Social Media Post service (id)
  • Hybris project identifier (project ID)
  • Authorization token header

This example demonstrates how to delete a single social media post:

Request

  • Method: DELETE
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts/{id}
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_delete.
  • URI Parameters
    • {id}: Identifier of an existing social media post item
    • {tenant}: The name of the current tenant

Response

The successful response returns a 204 status code.


Delete Multiple Social Media Posts in a Batch

Use this request for batch deletion of social media post items from the Social Media Post service. The request must contain this information:

  • Search parameter q that is required for searching for the items to be updated. Example: communicationMediumID:"FB" socialPostRootID:"rootID".
  • Hybris project identifier (project ID)
  • Authorization token header

This example demonstrates how to delete multiple social media posts:

Request

  • Method: DELETE
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaPosts
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_delete.
  • URI Parameters
    • {tenant}: The name of the current tenant
  • Query Parameters
    • q: Use the q parameter to filter search results. For example:
      • If a string value does not have any special characters or spaces, the service returns all items.
      • To search for more than one value at a time, separate query string values with a blank space. For example, communicationMediumID:"FB" socialPostRootID:"rootID" socialPostID:("postId1","postId2").

Response

The successful response returns a 204 status code.


Initialize Default Social Media Channels

The Social Media Post service provides default social media channels. Initialize the default services by sending a request that contains this information:

  • Hybris project identifier (project ID)
  • Authorization token header

This example demonstrates how to initialize the default social media channels:

Request

  • Method: POST
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaChannel
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_configuration_manage.
  • URI Parameters
    • {tenant}: The name of the current tenant

Response

The successful response returns a 201 status code.


Retrieve Social Media Channels

Retrieve the social media channel configurations details by sending a request that contains the following information:

  • Hybris project identifier (project ID)
  • Authorization token header

Use this request to retrieve social media post details:

Request

  • Method: GET
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaChannel
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_configuration_view.
  • URI Parameters
    • {tenant}: The name of the current tenant

Response

The successful response returns a 200 status code. An example JSON content looks similar to the following:

[
    {
        "CommunicationMediaId":"SAP_Community",
        "Description":"SAP Jam Communities",
        "Activated":"true"
    },
    {
        "CommunicationMediaId":"CommunityExample1",
        "Description":"Community Example1",
        "Activated":"true"
    },
    {
        "CommunicationMediaId":"CommunityExample2",
        "Description":"Community Example2",
        "Activated":"true"
    }
]

The first entry is the default channel defined in social media post service.


Manipulate Custom Social Media Channels

To add customer-defined channels in addition to the default channels provided by SAP, perform a request that contains the information from the channel details body. You can also update or delete existing channels in this service.

To create customer-defined channels in the Social Media Post service, first initialize the default social media channels. These channels are saved in a Configuration key in the Configuration service. Next, retrieve all the default channels that defined in YaaS. For information about retrieving the channels, see the Retrieve Social Media Channels section.

After you initialize and retrieve the default channels, you can create, update, or delete customer-defined channels as demonstrated in this example:

Request

  • Method: PUT
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaChannel
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_configuration_manage.
  • URI Parameters

    • {tenant}: The name of the current tenant
  • Body: These are the default channels defined in our service:

[
    {
        "CommunicationMediaId":"SAP_Community",
        "Description":"SAP Jam Communities",
        "Activated":"true"
    }
]

Put all the default channels into the request body as well when you create, update, or delete your own social media channels.

This is an example for the create custom social media channel:

[
    {
        "CommunicationMediaId":"SAP_Community",
        "Description":"SAP Jam Communities",
        "Activated":"true"
    },
    {
        "CommunicationMediaId":"CommunityExample1",
        "Description":"Community Example1",
        "Activated":"true"
    },
    {
        "CommunicationMediaId":"CommunityExample2",
        "Description":"Community Example2",
        "Activated":"true"
    }
]

This is an example for the update custom social media channel:

[
    {
        "CommunicationMediaId":"SAP_Community",
        "Description":"SAP Jam Communities",
        "Activated":"true"
    },
    {
        "CommunicationMediaId":"CommunityExample1",
        "Description":"Community Example1 update",
        "Activated":"false"
    },
    {
        "CommunicationMediaId":"CommunityExample2",
        "Description":"Community Example2 update",
        "Activated":"false"
    }
]

This is an example for the delete custom social media channels:

[
    {
       "CommunicationMediaId":"SAP_Community",
       "Description":"SAP Jam Communities",
       "Activated":"true"
    },
    {
       "CommunicationMediaId":"CommunityExample1",
       "Description":"Community Example1 update",
       "Activated":"false"
    }
]

Response

The successful response returns a 204 status code.


Clean Up Social Media Channels Within the Tenant

For existing channel configurations, to start the clean-up process from the social media post, perform a request that contains this information:

  • Hybris project identifier (project ID)
  • Authorization access token header

This example shows you how to clean up social media channels within the tenant:

Request

  • Method: DELETE
  • Request URL: https://api.beta.yaas.io/hybris/socialmediapost/v2/{tenant}/socialMediaChannel
  • Headers
    • Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.socialmediapost_configuration_delete.
  • URI Parameters
    • {tenant}: The name of the current tenant

Response

The successful response returns a 204 status code.


Error Types

For information about error codes, see the API Reference.


Glossary

TermDescription
batchA collection of social media posts.
social media channelA web site or application through which users can typically reply to or initiate a conversation, for purposes such as sharing content, discussions, questions, and blogs. For example, Facebook and Twitter are well-known social media channels.
social media postA unit of published content harvested from the social media channels that you choose.


  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.