Library Content update
PUT
/library/update/{contentid}This endpoint will update Library content
Request
Path Params
contentid
string
required
required parameter to identify the content
Default:
2df83cc9-b0fa-4085-a653-3781e449e898
Body Params application/json
currentActiveTab
string
required
it Active tab At the tme of draft Updated
tags
array[number]
optional
type
string
required
type of content
title
string
required
title of content
posts
array [object {23}]
required
It contains post related fields like post content, post image,post title
type
string
optional
social media item type
postDesc
string
optional
post description
instagramPostType
string
optional
instagram post type default POST
comment
string
optional
It is comment on post
mediaId
array[string]
optional
altTexts
array [object {2}]
optional
carousel
array [object {3}]
optional
fbAudianceTargeting
object
optional
place
object
optional
linkedinAudianceTargeting
object
optional
action
object
optional
youtubePrivacy
string
optional
youtubeTags
array[string]
optional
videoCategory
string
optional
youtubeAllowEmbedding
boolean
optional
youtubeNotifySubscriber
boolean
optional
youtubeMadeForKids
boolean
optional
youtubeLicense
string
optional
adDetails
object
optional
previewImgUrl
string
optional
removeCarousel
boolean
optional
pinTitle
string
optional
destinationUrl
string
optional
Example
{
"posts": [
{
"type": "original",
"postDesc": "Post on India Cricket Update Coming Soon",
"instagramPostType": "post",
"place": null,
"previewImgUrl": ""
}
],
"title": "Indian Cricket",
"tags": [
"ckicket"
],
"type": "post",
"currentActiveTab": "original"
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Parameter Error(422)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
Post updated successfully.
Data Schema
message
string
optional
Post updated successfully.
response
object
optional
id
string
optional
it carries the id of the updated content
data
object
optional
accountId
array[number]
optional
title
string
optional
title of content
lastEditedBy
number
optional
id of content updater
lastEditedOn
optional
Time of content updated
tags
array[string]
optional
content
object
optional
Example
{
"message": "Post updated successfully.",
"response": {
"id": "44432615-1626-4257-900e-c90ed2d1658d"
},
"data": {
"title": "Indian Cricket",
"content": {
"postDesc": "Post on India Cricket Update Coming Soon",
"postTitle": "",
"postImage": [],
"postUrl": "",
"longPostDesc": "",
"postVideo": "",
"companyId": 103953,
"postType": "T",
"createdOn": "2023-07-04T07:35:13.474Z",
"extraData": {
"place": null,
"enableShortUrl": false,
"currentActiveTab": "original",
"original": {
"postDesc": "Post on India Cricket Update Coming Soon",
"postTitle": "",
"postImage": [],
"postUrl": "",
"longPostDesc": "",
"postVideo": "",
"companyId": 103953,
"postType": "T",
"createdOn": "2023-07-04T07:35:13.474Z",
"extraData": {
"place": null,
"enableShortUrl": false
},
"ownerId": 103953,
"taggedPeople": {},
"utmSetId": "",
"utmParameters": {}
}
},
"ownerId": 103953,
"taggedPeople": {},
"utmSetId": "",
"utmParameters": {},
"boostExtraParams": {}
},
"tags": [
"ckicket"
],
"lastEditedBy": 103953,
"lastEditedOn": "2023-07-04T07:35:13.475Z",
"accountId": [
0
]
}
}
Last modified: 18 days ago