Check Authorization And Create Git Webhook
Create Git webhook
Request
URI
POST
https://{api_host}/pipeline/api/git-webhooks
COPY
Responses
200
OK
Returns
GitWebhook
of type(s)
application/json
{
"name": "string",
"kind": "string",
"tags": [
"string"
],
"_link": "/pipeline/api/..",
"_createdBy": "Test user",
"_updatedBy": "Test user",
"_updateTimeInMicros": 1499279153081002,
"project": "Test Project",
"description": "Test description",
"isGitSyncComplete": false,
"repoName": "Test repository",
"branch": "develop",
"fileNameRegExPattern": "TestFile",
"secretToken": "oqDttdIKB59puQONVs6T3pGNhOA=",
"serverType": "GITHUB",
"eventCategory": "PUSH",
"enabled": true,
"pipelineLink": "/pipeline/api/pipelines/test-pipelineLink",
"comments": "Test repository",
"externalListenerLink": "/pipeline/api/git-webhook-listners",
"refreshToken": "User refresh token",
"endpoint": "github endpoint",
"serverWebhookId": "id generated of webhook",
"delayTimeInMins": 1
}
string
name
Optional
name
string
kind
Optional
kind
array of
string
tags
Optional
tags
string
_link
Optional
_link
string
_createdBy
Optional
_createdBy
string
_updatedBy
Optional
updatedBy
integer As int64
As int64
_updateTimeInMicros
Optional
_updateTimeInMicros
string
project
Optional
project
string
description
Optional
description
boolean
isGitSyncComplete
Optional
sync Git
string
repoName
Optional
repoName
string
branch
Optional
branch
string
fileNameRegExPattern
Optional
File name regex pattern
string
secretToken
Optional
secretToken
string
serverType
Optional
serverType
string
eventCategory
Optional
eventCategory
boolean
enabled
Optional
enabled
string
pipelineLink
Optional
pipelineLink
object
input
Optional
input
string
comments
Optional
comments
string
externalListenerLink
Optional
external listener link
string
refreshToken
Optional
refreshToken
string
endpoint
Optional
endpoint
string
serverWebhookId
Optional
id
integer As int32
As int32
delayTimeInMins
Optional
delayTimeInMins
404
Not found
Operation doesn't return any data structure
500
Error
Operation doesn't return any data structure