admin

Send a quable event to update the cache

This route is a webhook called by Quable to update a quable document in the cache

post/v0/quable_events

Request

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

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

uuidstring required

Identifier of the event

code'document.create' | 'document.update' | 'document.delete' | 'link.create' | 'link.delete' required

code of event

created_atstring nullable

Date of creation of the event

created_bystring nullable

Login of the creator of the event

Example request

{
  "uuid": "4323676NIB68UIHO70N80",
  "code": "document.update",
  "created_at": "2019-04-23T12:09:00Z",
  "created_by": "user1",
  "resource": {
    "code": "product_AGAC",
    "type": "document",
    "document_type_code": "product",
    "link_type_code": "product_activity",
    "links": [
      {
        "rel": "self",
        "deprecated_rel": true,
        "method": "GET",
        "href": "https://api.clubmed.com/products",
        "label": "A label"
      }
    ],
    "updated_items": [
      {
        "type": "field",
        "code": "product_name",
        "link_type_code": "product_stop_over",
        "links": [
          {
            "rel": "self",
            "deprecated_rel": true,
            "method": "GET",
            "href": "https://api.clubmed.com/products",
            "label": "A label"
          }
        ]
      }
    ]
  },
  "links": [
    {
      "rel": "self",
      "deprecated_rel": true,
      "method": "GET",
      "href": "https://api.clubmed.com/products",
      "label": "A label"
    }
  ]
}

Response

ok

string required

Changes

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