Requires write_content access scope.
For more info, refer to:
POST https://{handle}.myshopline.com/admin/openapi/v20260301/store/comments/:comment_id/approve.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
Path Parameters
  • comment_id string required
    Review id to be approved
    Example: 638040c6a0a9ba4487960880
Request Headers
  • Content-Type string required
    The field must be set to the fixed value application/json; charset=utf-8.
  • Authorization string required
    The access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
For the complete list of codes and messages, see Http status code.

Response Headers
  • traceId
    A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
  • commentobject
    Review information
  • updated_at string
    Update time ISO 8601
    Example: 2022-08-03T10:45:00+08:00
  • author string
    Author of the review
    Example: demo-author
  • body string
    Comment content
    Example: demo-content
  • user_agent string
    User agent
  • body_html string
    Body content with html markings
    Example: <p>demo-content</p>
  • id string
    Comment id
    Example: 63aaa20f6b7b014b289c0765
  • ip string
    Ip to post a review
    Example: 63aaa20f6b7b014b289c0765
  • published_at string
    Time to post a review ISO 8601
    Example: 2022-08-03T10:45:00+08:00
  • blog_collection_id string
    Comment on the blog collection id for articles belonging to
    Example: 639bfda0ee877c4a9bd600b6
  • status string
    Comment status , post value : unapproved ( default state , comment waiting to be approved , c end does not show this state comment ) ; published : ( posted state , and visible to users on the end of c ) ; spam : ( garbage review , c end )Removed : ( review is marked as deleted status , not visible for users on the end of the c )
    Example: unapproved
  • blog_id string
    Comment on blog id
    Example: 63a2afa527797d5cedcecb52
  • create_at string
    Created time for reviews ISO 8601
    Example: 2022-08-03T10:45:00+08:00
  • email string
    Comment on the e-mail address of the author
    Example: demo@qq.com
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301

ParamOptions

path required
header required

Language

curl --request POST \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301/store/comments/comment_id/approve.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
Approve the review
Response
{
"comment": {
"ip": "157.119.232.38,10.98.209.49",
"status": "published",
"author": "testdet",
"blog_id": "63357995840927149ba6c75c",
"body": "test",
"create_at": "2022-11-25T12:12:54+08:00",
"updated_at": "2022-12-27T20:44:05+08:00",
"blog_collection_id": "632c137a0fe5b42e60a04b62",
"id": "638040c6a0a9ba4487960880",
"published_at": "2022-12-27T20:44:05+08:00",
"email": "test@qq.com"
}
}
Was this article helpful to you?