Update 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', Authorization: 'Bearer <token>', '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 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "filter": "", "mode": "ALL", "postIdentifiers": [ "" ], "status": "DRAFT" }'Bulk-updates the status (e.g. scheduled, paused, cancelled) of one or more posts for the account.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Load grid for this ID
Example
company-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Managed social settings request body
object
The current filter applied to the page. This is mutually exclusive with the postIdentifiers
object
Number of records to be skipped by the pager.
Example
0Number of records to take.
Example
10Descriptors used for sorting result set.
object
Descriptors used for sorting result set
Example
ascData set field to sort on
Example
hotel.nameStatus of post.
Example
APPROVEDPlatform to publish to
Example
WINK_LINKSKeyword search.
Example
testSearch by scheduled date
object
Retrieve data range starting with and including this start date
Example
2020-12-24Retrieve data range ending with and including this end date
Example
2020-12-31What to update .
The new status.
Responses
Section titled “ Responses ”OK
object
The new status.
How many records that were updated in the db.
Example
{ "ids": [ "" ], "status": "DRAFT", "count": ""}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
{}