Skip to content

Grid

POST
/api/managing-entity/{managingEntityIdentifier}/studio/managed-social/post/grid
curl --request POST \
--url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/managed-social/post/grid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "skip": 0, "take": 30, "sort": "", "status": "", "platform": "", "term": "", "scheduledDate": "" }'

Returns a paginated page of scheduled posts for the account driven by the supplied search/filter state.

managingEntityIdentifier
required
string
""

Fetch posts for this managing entity ID

Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Search and filter criteria

Media type application/json
object
skip

Number of records to be skipped by the pager.

integer format: int32
0
Example
0
take

Number of records to take.

integer format: int32
default: 30 >= 1 <= 180
Example
10
sort

Descriptors used for sorting result set.

Array<object>
""
object
dir

Descriptors used for sorting result set

string
""
Allowed values: asc desc
Example
asc
field

Data set field to sort on

string
""
Example
hotel.name
status

Filter by post status (APPROVED, DRAFT, PUBLISHED, CANCELLED, etc)

Array<string>
""
Allowed values: DRAFT PENDING_APPROVAL APPROVED REJECTED PAUSED PUBLISHED FAILED
Example
APPROVED
platform

Filter by target social platform

Array<string>
""
Allowed values: WINK_LINKS FACEBOOK INSTAGRAM
Example
WINK_LINKS
term

Full-text search keyword

string
""
Example
luxury accommodation
scheduledDate

Filter by post scheduled date range

object
startDate
required

Retrieve data range starting with and including this start date

string format: date
""
Example
2020-12-24
endDate
required

Retrieve data range ending with and including this end date

string format: date
""
Example
2020-12-31

OK

Media type application/json
object
totalPages
integer format: int32
totalElements
integer format: int64
size
integer format: int32
content
Array<object>
object
id

Document UUID

string format: uuid
""
createdDate

Datetime this record was first created

string format: date-time
""
lastUpdate

Datetime this record was last updated

string format: date-time
""
version

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.

integer format: int64
""
userIdentifier
required

The user ID that owns the account

string format: uuid
"" >= 1 characters
ownerIdentifier
required

The managing entity this post belongs to

string format: uuid
"" >= 1 characters
customizationIdentifier
required

The post customization/template identifier used to create this post

string format: uuid
"" >= 1 characters
status
required

Status of post.

string
""
Allowed values: DRAFT PENDING_APPROVAL APPROVED REJECTED PAUSED PUBLISHED FAILED
postType
required

The structural intent of this post.

string
default: TRANSACTIONAL
Allowed values: TRANSACTIONAL AWARENESS SENTIMENT
toneOfVoice
required

The language style used for this post.

string
default: NEUTRAL
Allowed values: NEUTRAL FRIENDLY LUXURY FOODIE ADVENTUROUS FAMILY ROMANTIC HUMOROUS ECO LOCAL_INSIDER INCLUSIVE BUDGET
type
required

Type of post.

string
default: MANUAL
Allowed values: MANUAL TRANSACTIONAL AWARENESS SENTIMENT
link

A link to go with the text

object
url
required

A url url

string
"" >= 1 characters
description

Description of url

string
""
caption

Top 5

string
""
location

Optional geo-location

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
descriptions
required

A single entry array under most circumstances in the language the post was created for.

Array<object>
>= 1 items
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
multimedias
Array<object>

CDN image/media assets (most platforms support up to 10 images per post)

object
multimediaIdentifier
required

Document identifier

string format: uuid
"" >= 1 characters
identifier
required

Use this identifier to communicate with Cloudinary.

string
"" >= 1 characters
type
required

Whether Cloudinary media is a VIDEO or IMAGE.

string
""
Allowed values: IMAGE VIDEO AUDIO RAW
source
required

Currently ONLY using Cloudinary to store all image / video assets.

string
default: CLOUDINARY
Allowed values: YOUTUBE CLOUDINARY
sort
required

Sort allows you to control how you want to sort this record in a list of media records.

integer format: int32
default: 999
angle

Media angle

string
""
width
required

Media width in pixels.

integer format: int32
"" >= 1
height
required

Media height in pixels.

integer format: int32
"" >= 1
published

Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.

boolean
category

Supported OTA specification PIC code. See OTA geoname data

string
""
descriptions

Localized media captions to give user some context about where this media was taken.

Array<object>
""
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
lifestyleType

Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.

string
""
Allowed values: LIFESTYLE_HEALTH_FITNESS LIFESTYLE_RELAX LIFESTYLE_ADULT_ONLY LIFESTYLE_ADVENTURE LIFESTYLE_BUSINESS LIFESTYLE_LGBT LIFESTYLE_SINGLE_PARENT LIFESTYLE_SOLO_FEMALE LIFESTYLE_BEAUTY LIFESTYLE_FOODIE LIFESTYLE_FAMILY LIFESTYLE_ROMANCE LIFESTYLE_COUPLE LIFESTYLE_SOLO LIFESTYLE_BACKPACKER LIFESTYLE_SHOPPING LIFESTYLE_SPORTS LIFESTYLE_MOUNTAIN LIFESTYLE_BEACH LIFESTYLE_CITY LIFESTYLE_COUNTRY LIFESTYLE_CULTURE LIFESTYLE_ECO
attribution

Whether image has attribution properties

Array<object>
""
object
url

URL to contributor

string
""
name
required

Name of contributor

string
"" >= 1 characters
isLandscape

True if media width is greater or equal to height

boolean
userTags
Array<string>
hashTags
Array<string>
scheduledDate
required

Exact date and time when the post will be published (ISO 8601 format)

string format: date-time
""
timezone
required

IANA timezone identifier (e.g. Asia/Bangkok, America/New_York)

string
"" >= 1 characters
platform
required

Which platform to post to.

string
""
Allowed values: WINK_LINKS FACEBOOK INSTAGRAM
metadata

Platform-specific metadata for this post

object
key
additional properties
statusText

Human-readable status explanation (typically used for error messages)

string
""
number
integer format: int32
first
boolean
last
boolean
numberOfElements
integer format: int32
sort
object
empty
boolean
unsorted
boolean
sorted
boolean
pageable
object
offset
integer format: int64
pageNumber
integer format: int32
sort
object
empty
boolean
unsorted
boolean
sorted
boolean
pageSize
integer format: int32
paged
boolean
unpaged
boolean
empty
boolean
Example
{
"content": [
{
"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
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Forbidden

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Internal Server Error

object
Example generated
{}