Structure change

POST https://webhook.example.com

Payload sent when your documentation receives a deployment with a structure change.

Headers

  • X_BUMP_SIGNATURE_256 string Required

    The hash signature of the payload. Bump uses a HMAC hex digest (SHA256) to compute the signature of the body payload with the webhook secret. More info in help.

Body

Information about last documentation structure change of your API history

  • api object Required
    Hide api attributes Show api attributes object
    • id string

      UUID of this API

    • name string

      Name of this API

    • Description of this API from the latest definition

    • slug string

      Slug of this API

    • url string

      public documentation URL

    • version string

      Version of this API taken from the latest definition

    • properties array[object]

      Extra properties attached to this API

      Hide properties attributes Show properties attributes array[object]
      • type string

        Type of the extra property

        Values are x-access-level or x-definition-type.

      • data string

        Content of the extra property

    • Creation date of this API

    • Last udpate date of this API

  • diff object Required
    Hide diff attributes Show diff attributes object
    • id string

      Unique id of your diff

    • title string

      The title of the last parsed definition

    • The public URL of your diff

    • breaking boolean

      Identifies if the diff includes breaking changes

    • details array[object]

      Details of each change as a list of diff items

      Hide details attributes Show details attributes array[object]
      • id string

        The identifier of the diff change

      • name string

        The human name of diff change

      • status string

        Values are added, modified, or removed.

      • type string

        The object type of the diff change

      • breaking boolean

        Identifies if the item is a breaking change

      • A list of children item changes

    • URL of previous version specification, in JSON format

    • URL of current version specification, in JSON format

POST DocStructureChange
Request example
# Headers
X_BUMP_SIGNATURE_256: a0b1c1d2e3f5a8b13c21d34e55f89a144b233c377d610e987f1597a2584b4181

# Payload
{
  "api": {
    "id": "42",
    "name": "Bump",
    "description": "The official Bump API documentation",
    "slug": "bump",
    "url": "https://developers.bump.sh/",
    "version": "1.0",
    "created": "2019-05-05",
    "modified": "2022-04-07"
  },
  "diff": {
    "id": "ef41eb26-5e7f-47b9-9854-fa170d46bbd2",
    "title": "Bump Api",
    "public_url": "https://developers.bump.sh/changes/ef41eb26-5e7f-47b9-9854-fa170d46bbd2",
    "breaking": false,
    "details": [
      {
        "id": "post-DocStructureChange",
        "name": "POST DocStructureChange",
        "status": "added",
        "type": "webhook",
        "breaking": false,
        "children": []
      }
    ],
    "previous_version_url": "https://developers.bump.sh/changes/ef41eb26-5e7f-47b9-9854-fa170d46bbd2/previous.json",
    "current_version_url": "https://developers.bump.sh/changes/ef41eb26-5e7f-47b9-9854-fa170d46bbd2/current.json"
  }
}
Request examples
# Headers
X_BUMP_SIGNATURE_256: a0b1c1d2e3f5a8b13c21d34e55f89a144b233c377d610e987f1597a2584b4181

# Payload
{
  "api": {
    "id": "3ef8f52f-9056-4113-840e-2f7183b90e06",
    "name": "Bump",
    "description": "This is the official Bump API documentation. Obviously created with Bump.",
    "slug": "bump",
    "url": "https://developers.bump.sh/",
    "version": "1.0",
    "properties": [
      {
        "type": "x-access-level",
        "data": "string"
      }
    ],
    "created": "2022-01-07",
    "modified": "2022-04-07"
  },
  "diff": {
    "id": "2361df99-1234-4c80-a0cc-45c9fe565812",
    "title": "Bump Api",
    "public_url": "https://bump.sh/doc/my-own-documentation/change/2361df99-3467-4c80-a0cc-45c9fe565812",
    "breaking": false,
    "details": [
      {
        "id": "post-versions",
        "name": "POST /versions",
        "status": "added",
        "type": "endpoint",
        "breaking": false,
        "children": []
      }
    ],
    "previous_version_url": "https://developers.bump.sh/changes/750f15d8-6c41-47b9-8f80-e3ed812dbca9/previous.json",
    "current_version_url": "https://developers.bump.sh/changes/750f15d8-6c41-47b9-8f80-e3ed812dbca9/current.json"
  }
}