Skip to main content
Skip table of contents

Microsoft Teams Bitbucket Connector - 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

JSON
{
    "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

CODE
{
    "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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.