Post Git Webhook Event

Post Git Webhook Event

Post event to a Git webhook

Request
URI
POST
https://{api_host}/pipeline/api/git-webhooks/{id}
COPY
Path Parameters
string
id
Required

id


Responses
200

OK

Returns GitEvent 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",
    "timeStampInMicros": 1499279153081002,
    "commitId": "fdsfs33",
    "subject": "Test commit subject",
    "owner": "Test owner",
    "repo": "Test repo",
    "targetBranch": "master",
    "serverURL": "http://gitserver:port/repo",
    "description": "Test description",
    "pipelineName": "Test pipeline name",
    "pipelineLink": "Test pipeline link",
    "executionLink": "/pipeline/api/executions/234324324",
    "executionStatus": "COMPLETED",
    "executionIndex": 2,
    "httpURL": "http://gitserver:port/repo",
    "message": "Comment",
    "serverWebhookId": "{\"serverWebhookId\": \"1234\"}"
}
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

integer As int64 As int64
timeStampInMicros
Optional

timestampInMicros

string
commitId
Optional

commitId

string
subject
Optional

subject

string
owner
Optional

owner

string
repo
Optional

repo

string
targetBranch
Optional

targetBranch

string
serverURL
Optional

serverURL

string
description
Optional

description

string
pipelineName
Optional

pipelineName

string
pipelineLink
Optional

pipelineLink

string
executionLink
Optional

executionLink

string
executionStatus
Optional

executionStatus

integer As int64 As int64
executionIndex
Optional

executionIndex

string
httpURL
Optional

serverURL

string
message
Optional

message

string
serverWebhookId
Optional

webhookId


500

Error

Operation doesn't return any data structure