admin

Add or modify a comment on a booking

If you want to add a new comment, just send a content. If you want to modify a comment, send its id and the new content. A comment can be modified until 10 minutes after its creation.

post/v0/bookings/{booking_id}/comments

Request

  • Base URL: https://api.clubmed.com
  • URL: https://api.clubmed.com/v0/bookings/{booking_id}/comments
  • Auth: OpenID Connect (https://auth.clubmed.com/.well-known/openid-configuration, scopes: openid, email, profile, clubmed)

Path parameters

booking_idstring required

booking Id (file number)

Example:0123456789

Headers

authorizationstring required

Optional Access Token (bearer)

Example:Bearer aaaa.vbbbB.bbbb

Access Token (bearer)

x-api-keystring required

Api_key provided by ClubMed API team

Request body

idstring

Booking comment identifier. Required only when updating a comment

contentstring required

Booking comment text

Example request

{
  "id": "127143253_12675595",
  "content": "A useful comment about the booking"
}

Response

ok

idstring

Booking comment identifier. Required only when updating a comment

contentstring required

Booking comment text

ownerstring

Heptagram of the GO creating or updating the comment

booking_idstring

Identifier of the booking the comment applies to

Example response

{
  "id": "127143253_12675595",
  "content": "A useful comment about the booking",
  "owner": "smithjo",
  "booking_id": "127143253",
  "creation": {
    "origin": "CXO",
    "date": "20100430"
  },
  "last_update": {
    "origin": "CXO",
    "date": "20100430"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.