Update Social Post
const url = 'https://api.wink.travel/api/managing-entity/company-1/studio/managed-social/post/post-1';const options = { method: 'PATCH', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"customizationIdentifier":"","postType":"TRANSACTIONAL","toneOfVoice":"NEUTRAL","type":"MANUAL","link":"","location":"","descriptions":[""],"multimedias":[null],"userTags":[""],"hashTags":[""],"scheduledDate":"","timezone":"","platform":"WINK_LINKS","metadata":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.wink.travel/api/managing-entity/company-1/studio/managed-social/post/post-1 \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "customizationIdentifier": "", "postType": "TRANSACTIONAL", "toneOfVoice": "NEUTRAL", "type": "MANUAL", "link": "", "location": "", "descriptions": [ "" ], "multimedias": [ null ], "userTags": [ "" ], "hashTags": [ "" ], "scheduledDate": "", "timezone": "", "platform": "WINK_LINKS", "metadata": "" }'Update managed social post.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Update post for this owner ID
Example
company-1Update post for this post ID
Example
post-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Managed social settings request body
object
The template identifier that was used to create this post
Example
post-template-1The structural intent of this post.
Example
TRANSACTIONALThe language style used for this post.
Example
NEUTRALType of post.
Example
MANUALA link to go with the text
object
A url url
Example
https://www.google.comDescription of url
Example
Links to Top 5 hotels in BKKTop 5
Example
Caption of url. usually the domain of the URL.Optional geo-location
object
A single entry array under most circumstances in the language the post was created for.
object
Use as title or short text description
Example
An example titleLonger text description
Example
This is a longer description in the specified language.Indicate which language this description is written in.
Example
enWhether it was user or system generated.
Example
SYSTEMThe md5 hash of the name, description and language.
CDN image assets. Most social networks support more than one image [but no more than 10]
object
Document identifier
Example
image-1Use this identifier to communicate with Cloudinary.
Example
cloudinary-image-1Whether Cloudinary media is a VIDEO or IMAGE.
Example
IMAGECurrently ONLY using Cloudinary to store all image / video assets.
Example
CLOUDINARYSort allows you to control how you want to sort this record in a list of media records.
Example
10Media angle
Example
-90Media width in pixels.
Example
2560Media height in pixels.
Example
1600Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.
Example
trueLocalized media captions to give user some context about where this media was taken.
object
Use as title or short text description
Example
An example titleLonger text description
Example
This is a longer description in the specified language.Indicate which language this description is written in.
Example
enWhether it was user or system generated.
Example
SYSTEMThe md5 hash of the name, description and language.
Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.
Example
LIFESTYLE_HEALTH_FITNESSWhether image has attribution properties
object
URL to contributor
Example
https://maps.google.com/maps/contrib/111628493169070103594Name of contributor
Example
Samuel AdamsTrue if media width is greater or equal to height
Example
trueWhen the post is scheduled to go out.
Timezone code.
Which platform to post to.
Extended metadata
object
Responses
Section titled “ Responses ”OK
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
The user ID that owns the account
The owner entity this entry associates with
The template identifier that was used to create this post
Status of post.
The structural intent of this post.
The language style used for this post.
Type of post.
A link to go with the text
object
A url url
Description of url
Top 5
Optional geo-location
object
A single entry array under most circumstances in the language the post was created for.
object
Use as title or short text description
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
CDN image assets. Most social networks support more than one image [but no more than 10]
object
Document identifier
Use this identifier to communicate with Cloudinary.
Whether Cloudinary media is a VIDEO or IMAGE.
Currently ONLY using Cloudinary to store all image / video assets.
Sort allows you to control how you want to sort this record in a list of media records.
Media angle
Media width in pixels.
Media height in pixels.
Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.
Supported OTA specification PIC code. See OTA geoname data
Localized media captions to give user some context about where this media was taken.
object
Use as title or short text description
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.
Whether image has attribution properties
object
URL to contributor
Name of contributor
True if media width is greater or equal to height
ZoneId-aware date for exactly when the post goes out.
Timezone code.
Which platform to post to.
Extended metadata
object
Platform response to go along with the status. Mostly for use with errors.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "ownerIdentifier": "", "customizationIdentifier": "", "status": "DRAFT", "postType": "TRANSACTIONAL", "toneOfVoice": "NEUTRAL", "type": "MANUAL", "link": "", "location": "", "descriptions": [ "" ], "multimedias": [ null ], "userTags": [ "" ], "hashTags": [ "" ], "scheduledDate": "", "timezone": "", "platform": "WINK_LINKS", "metadata": "", "statusText": ""}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}