Get original content ID of the Shared content
hamerlis Mar 26, 2019 9:16 AMI have a question related to content which is a share (type 2901).
When I use this API:
[Host]/api/core/v3/contents/129435
I get :
{
"entityType": "2901",
"id": "52154",
"resources": {
"entitlements": {
"allowed": [
"GET"
],
"ref": "https://givaudan-sandbox.jiveon.com/api/core/v3/contents/129435/entitlements"
},
"followingIn": {
"allowed": [
"GET",
"POST"
],
"ref": "https://givaudan-sandbox.jiveon.com/api/core/v3/contents/129435/followingIn"
},
"followers": {
"allowed": [
"GET"
],
"ref": "https://givaudan-sandbox.jiveon.com/api/core/v3/contents/129435/followers"
},
"self": {
"allowed": [
"GET"
],
"ref": "https://givaudan-sandbox.jiveon.com/api/core/v3/contents/129435"
},
"html": {
"allowed": [
"GET"
],
"ref": "https://givaudan-sandbox.jiveon.com/groups/test-groep-place/blog/2019/01/09/header"
}
},
"followerCount": 0,
"followed": true,
"published": "2019-03-13T15:56:38.505+0000",
"tags": [],
"updated": "2019-03-13T15:56:38.505+0000",
"iconCss": "jive-icon-blog",
"parentPlace": {
"id": "2057",
"html": "https://givaudan-sandbox.jiveon.com/groups/opentext-community",
"placeID": "60074",
"name": "OTCS (OpenText Content Server) Community",
"type": "group",
"uri": "https://givaudan-sandbox.jiveon.com/api/core/v3/places/60074",
"iconCss": "jive-icon-group"
},
"contentID": "129435",
"author": {..},
"content": {
"text": "<body><!-- [DocumentBodyStart:716b6b3c-b01a-4df5-85d0-1605a0fd9523] --><div class=\"jive-rendered-content\"><p>content</p></div><!-- [DocumentBodyEnd:716b6b3c-b01a-4df5-85d0-1605a0fd9523] --></body>",
"editable": false,
"type": "text/html"
},
"parent": "https://givaudan-sandbox.jiveon.com/api/core/v3/places/60074",
"status": "published",
"subject": "This is a Blog Post within Test Group Place",
"viewCount": 0,
"visibleToExternalContributors": false,
"parentVisible": true,
"parentContentVisible": true,
"lastActivity": 1552492598505,
"abuseCount": 0,
"type": "2901",
"lastActivityDate": "2019-03-13T15:56:38.505+0000"
-> I would like to get the contentID of the shared content, the ID of the share.
I am aware of the Share service, but this does not work, using the ID:
[host]/api/core/v3/shares/52154:
{
"error": {
"code": "objectNotFound",
"message": "Missing share 52154",
"status": 404
}
}
Any help would be very appreciated !