Update Social Post Status
PATCH
/api/managing-entity/{managingEntityIdentifier}/studio/managed-social/post/status
const url = 'https://api.wink.travel/api/managing-entity/company-1/studio/managed-social/post/status';const options = { method: 'PATCH', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"filter":"","mode":"ALL","postIdentifiers":[""],"status":"DRAFT"}'};
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/status \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "filter": "", "mode": "ALL", "postIdentifiers": [ "" ], "status": "DRAFT" }'Update managed social post status for one or more posts.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” managingEntityIdentifier
required
string
Load grid for this ID
Example
company-1Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ”Managed social settings request body
Media type application/json
object
filter
The current filter applied to the page. This is mutually exclusive with the postIdentifiers
object
skip
Number of records to be skipped by the pager.
integer format: int32
Example
0 take
Number of records to take.
integer format: int32
Example
10 sort
Descriptors used for sorting result set.
Array<object>
object
dir
Descriptors used for sorting result set
string
Example
asc field
Data set field to sort on
string
Example
hotel.name status
Status of post.
Array<string>
Example
APPROVED platform
Platform to publish to
Array<string>
Example
WINK_LINKS term
Keyword search.
string
Example
test scheduledDate
Search by scheduled date
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 mode
What to update .
string
postIdentifiers
Array<string>
status
required
The new status.
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
ids
required
Array<string>
status
required
The new status.
string
count
required
How many records that were updated in the db.
integer format: int64
Example
{ "ids": [ "" ], "status": "DRAFT", "count": ""}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" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
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
{}