Skip to content

Update Social Post Status

PATCH
/api/managing-entity/{managingEntityIdentifier}/studio/managed-social/post/status
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.

managingEntityIdentifier
required
string
""

Load grid for this ID

Example
company-1
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

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
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

Status of post.

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

Platform to publish to

Array<string>
""
Allowed values: WINK_LINKS FACEBOOK INSTAGRAM
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
""
Allowed values: ALL PAGE
postIdentifiers
Array<string>
status
required

The new status.

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

OK

Media type application/json
object
ids
required
Array<string>
status
required

The new status.

string
""
Allowed values: DRAFT PENDING_APPROVAL APPROVED REJECTED PAUSED PUBLISHED FAILED
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"
}
}

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
{}