Skip to main content

POST Webhook Subscribers

Overview


The following table contains important information about the POST method in regards to the managing process.

POST Webhook Subscribers
MethodPOST
URL or Endpoint/api/v1/projects/projectId/webhook-subscribers/subscriberId/events
ParameterssubscriberId, projectId
BodyCheck request body below.

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdNostringUnique Id of the project.

Request Body

{
"name": "string",
"description": "string",
"url": "string",
"active": true,
"secret": "string"
}

Information about the fields that appear when you receive the response are displayed in the table below.

Parameter NameMandatoryTypeDescription
nameYesstringName of he webhook subscriber
descriptionNostringDescription
urlYesstringThe url of the webhook
activeNoboolThe activity status of the webhook subscriber

Response

{
"id": 0,
"url": "string",
"name": "string",
"description": "string",
"active": true,
"secret": "string"
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
idintegerThe unique Id of the webhook subscriber
urlstringThe url of the webhook subscriber
namestringName of the webhook subscriber
descriptionstringDescription
activeboolThe activity status of the webhook subsecriber
secretstringEnsures that the payload URL receives POST requests from GitHub.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed