Version 2.17.4

Base API url path <CONFLUENCE_BASE_URL>/rest/microsoft-teams/1.0/configuration

GET /configuration?spaceKey=<SPACE_KEY>

Where spaceKey is an optional filter.

Gets global or space 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"
                    ]
                }
            ]
        }
    ]
}
JSON

POST /configuration

Creates or saves configuration

The example payload

{
    "id": "39f3f786-4e82-4d39-8dea-a49af023de1a",
    "webHookUrl": "https://outlook.office.com/url",
    "events": [
        "COMMENT_CREATED",
        "PAGE_CREATED",
        "BLOGPOST_CREATED"
    ],
    "spaceKey": "ds"
}
CODE

DELETE /configuration

Deletes an existing configuration

The body should be in the JSON format

{
  "id": "<CONFIGURATION_ID>"
}
CODE