Advanced Microsoft Teams Connector for Bitbucket - Server API
Version 3.04.14
Base API url path <BITBUCKET_BASE_URL>/rest/mtbs/1.0/configuration
GET /filter?projectKey=<>&repositoryKey=<>
Where projectKey
is an optional project filter and repositoryKey
is an optional repository filter.
Gets global or project level configuration configurations
{
"filters": [
{
"id": 1,
"name": "Filter-Name",
"enabled": true,
"webHookURL": "https:\/\/incoming-webhook-url.moveworkforward.com",
"eventTypes": [
{
"type": "PULL_REQUEST_OPENED",
"name": "Pull Request Opened"
},
{
"type": "PULL_REQUEST_MERGED",
"name": "Pull Request Merged"
}
],
"projects": [
{
"name": "Project 1",
"key": "PROJECT_1"
}
],
"repositories": [
{
"slug": "rep_1",
"name": "rep_1",
"branches": [
"master",
"basic_branching"
]
}
]
}
]
}
POST /filter
Creates or saves configuration
The example payload
{
"id": null,
"name": "Filter-Name",
"enabled": true,
"webHookURL": "https://incoming-webhook-url.moveworkforward.com",
"eventTypes": [
{
"type": "PULL_REQUEST_OPENED",
"text": "Pull Request Opened"
},
{
"type": "PULL_REQUEST_MERGED",
"text": "Pull Request Merged"
}
],
"projects": [
{
"key": "PROJECT_1",
"name": "Project 1"
}
],
"repositories": [
{
"name": "rep_1",
"slug": "rep_1",
"branches": [
"master",
"basic_branching"
]
}
]
}
DELETE /filter?id=<>
Deletes an existing filter by id
GET /eventTypes
Updated: