Webhooks

Get organization's webhook

Changed on

Get organization's webhook

get/webhooks/org/{orgName}/{webhookID}

Request

Path parameters

orgNamestring required
Example:org1

Organization name

webhookIDstring uuid required

Webhook ID

Response

namestring required
descriptionstring
urlstring uri required
secretstring
content_typestring
templatestring
activeboolean required
event_kindsEventKindId[]
webhook_idstring uuid required

Example response

{
  "name": "webhook1",
  "description": "description",
  "url": "http://url",
  "secret": "123abc",
  "content_type": "application/json",
  "template": "{\"text\": \"Package {{ .Package.Name }} version {{ .Package.Version }} released! {{ .Package.URL }}\"}",
  "packages": [
    {
      "name": "pkg1",
      "normalized_name": "pkg1",
      "logo_image_id": "12345abcde",
      "display_name": "Package 1",
      "description": "This is a package sample",
      "version": "1.0.0",
      "app_version": "0.1.0",
      "license": "MIT",
      "repository": {
        "name": "repo1",
        "display_name": "Repository 1",
        "url": "http://repourl",
        "user_alias": "jdoe",
        "organization_name": "org1",
        "organization_display_name": "Organization 1"
      },
      "category_display_name": "Database",
      "stars": 3
    }
  ],
  "last_notifications": [
    {
      "error": "error"
    }
  ]
}

Changes

    • warning

      added the new 10.00 enum value to the //// response property for the response status

    • warning

      added the new 11.00 enum value to the //// response property for the response status

    • warning

      added the new 9.00 enum value to the //// response property for the response status

    • info

      added the optional property //// to the response with the status

    • warning

      added the new 22.00 enum value to the //////// response property for the response status

    • warning

      added the new 23.00 enum value to the //////// response property for the response status

    • warning

      added the new 24.00 enum value to the //////// response property for the response status

    • warning

      added the new 25.00 enum value to the //////// response property for the response status

    • warning

      added the new 26.00 enum value to the //////// response property for the response status

    • warning

      added the new 27.00 enum value to the //////// response property for the response status