Draft update
PUT
/draft/update/{draftId}This endpoint will update Draft on draftId
Request
Path Params
draftId
string
required
required parameter to identify the Draft
Default:
2df83cc9-b0fa-4085-a653-3781e449e898
Body Params application/json
currentActiveTab
string
required
it Active tab At the tme of draft Updated
loginIds
array[number]
required
enableShortUrl
boolean
optional
flag showing the Urlshort Apply or not
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
{
"loginIds": [
1010448,
1010711,
1010898
],
"enableShortUrl": true,
"posts": [
{
"type": "original",
"postDesc": "ghjkl",
"instagramPostType": "post",
"place": null,
"previewImgUrl": ""
},
{
"type": "facebook",
"postDesc": "ghjklcvbnm",
"instagramPostType": "post",
"place": null,
"comment": "",
"fbAction": null,
"fbAudianceTargeting": {
"limitAudiance": null
},
"previewImgUrl": ""
},
{
"type": "gmb",
"postDesc": "ghjklcvb",
"instagramPostType": "post",
"place": null,
"action": {
"cta": "",
"link": ""
},
"previewImgUrl": ""
},
{
"type": "instagram",
"postDesc": "Draft Up",
"instagramPostType": "post",
"place": null,
"comment": "",
"previewImgUrl": ""
}
],
"currentActiveTab": "instagram"
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Parameter Error(422)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
Your draft has been updated successfully.
Data Schema
message
string
optional
Your draft has been updated successfully.
response
object
optional
draftId
string
optional
it carries the draftId of the updated Draft
Example
{
"message": "Your draft has been updated successfully.",
"response": {
"draftId": "2df83cc9-b0fa-4085-a653-3781e449e898"
}
}
Last modified: 18 days ago