Update a Post
PUT/api/v2/posts/:post_id
Update a Post
Request
Path Parameters
- application/json
Body
required
Main text content of the post.
Terms and conditions of the offer
Title of the post.
URL of the image displayed with the post.
Possible values: [book
, order
, shop
, learn_more
, sign_up
, call
, no_cta
]
The type of the post to be created. Some type mig.
link
object
Use the business google url for link on the post.
An URL to redirect client when they click on the button
Date when the Post will be published. No scheduled start time means that the Post will be published immediately. @default null
For either event or offer post type. Defined when it start. Timezone is defined by the business timezone.
For either event or offer post type. Defined when it end. Timezone is defined by the business timezone.
Offer code that is usable in store or online
Responses
- 200
- 400
- 401
- 403
- 404
This endpoint lets you update a Post. The update will not happen in real time and might take a few minutes
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
Main text content of the post.
The Post id
Business id
The title of the post
Possible values: [standard
, event
, offer
, alert
]
The type of the post to be created. Event and Offer are not yet available for Facebook.
For either event or offer post type. Defined when it start. Timezone is defined by the business timezone.
For either event or offer post type. Defined when it end. Timezone is defined by the business timezone.
Date when the Post will be published. No scheduled start time means that the Post will be published immediately. @default null
post_medias
object[]
@description The photo that will be on the Post
URL of the image displayed with the post.
Creation date
Last update date (either on our platform or on Partner platform)
name and address of the business that the post is related to.
post_insight
object[]
Statistics related to the posts on the different platforms.
⚠️ Due to a Google deprecation, on 20/02/2023, Google views and counts won't be available anymore. Old insights will still be sent. Facebook ones will still be available.
Possible values: [google_my_business__posts
, facebook__posts
]
Publisher related to the post
number of times a user has clicked on the post.
number of times the post has been viewed.
post_status
object[]
Status related to the posts on the different platforms.
Possible values: [google_my_business__posts
, facebook__posts
]
Publisher related to the post
Possible values: [live
, to_configure
, pending
, scheduled
, error
, expired
]
The state of the post, indicating at which lifecycle stage it is currently.
Link displayed in the post to redirect the client clicking on it.
Terms and conditions of the offer
Offer code that is usable in store or online
Link displayed in the post to redirect the client clicking on it.
Possible values: [book
, order
, shop
, learn_more
, sign_up
, call
, no_cta
]
The type of the post to be created. Some type mig.
{
"summary": "Wonderful post summary!",
"id": 34,
"business_id": "5409c35a97bbc544d8e26737",
"title": "string",
"post_type": "standard",
"start_at": "2050-01-01T09:00:00.000Z",
"end_at": "2050-01-01T09:00:00.000Z",
"schedule_time": "2020-01-01T10:00:00.000Z",
"post_medias": [
{
"media_url": "wxx"
}
],
"created_at": "2019-08-01T17:15:54.256Z",
"updated_at": "2019-09-01T13:12:35.256Z",
"business_info": "string",
"post_insight": [
{
"name": "facebook__posts",
"click_count": 1512,
"view_count": 2012
}
],
"post_status": [
{
"name": "facebook__posts",
"state": "live",
"link": "google.com"
}
],
"offer_terms": "string",
"offer_code": "PROMO25",
"cta_link": "google.com",
"cta_type": "book"
}