TrylleDocs
API ReferenceOpenAPI 3 reference

Webhooks

GET
/v1/repositories/{owner}/{name}/webhooks

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/v1/repositories/aa/aa/webhooks"
"abc123"
POST
/v1/repositories/{owner}/{name}/webhooks

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/repositories/aa/aa/webhooks" \  -H "Content-Type: application/json" \  -d '{    "active": false,    "authorizationHeader": "abc123",    "branchFilter": "abc123",    "contentType": "abc123",    "events": [      "abc123"    ],    "secret": "abc123",    "type": "abc123",    "url": "aa"  }'
"abc123"
PATCH
/v1/repositories/{owner}/{name}/webhooks/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length
id*integer

Webhook id.

Formatint64
Range1 <= value

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/repositories/aa/aa/webhooks/2" \  -H "Content-Type: application/json" \  -d '{    "active": false,    "authorizationHeader": "abc123",    "branchFilter": "abc123",    "contentType": "abc123",    "events": [      "abc123"    ],    "secret": "abc123",    "type": "abc123",    "url": "aa"  }'
"abc123"
DELETE
/v1/repositories/{owner}/{name}/webhooks/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length
id*integer

Webhook id.

Formatint64
Range1 <= value

Response Body

application/json

curl -X DELETE "https://example.com/v1/repositories/aa/aa/webhooks/2"
"abc123"
PATCH
/v1/repositories/{owner}/{name}/webhooks/{id}/presence-safe

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length
id*integer

Webhook id.

Formatint64
Range1 <= value

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/repositories/aa/aa/webhooks/2/presence-safe" \  -H "Content-Type: application/json" \  -d '{    "active": false,    "authorizationHeader": "abc123",    "branchFilter": "abc123",    "contentType": "abc123",    "events": [      "abc123"    ],    "secret": "abc123",    "type": "abc123",    "url": "aa"  }'
"abc123"