When I submit a deployment event, it gets tagged to multiple components, not just the one I specified the componentId for

When I use the REST API to create a deployment event, I see that event on lots of my components, not just the component that I specified in the body for the componentID field.

Here is an example payload.

{
    "cloudId": "3db6REDACTEDf95039a",
    "event": {
              "deployment": {
                "displayName": "Deploy",
                "updateSequenceNumber": 1,
                "url": "https://github.com",
                "description": "GitHub Action Deploy to test",
                "lastUpdated": "2026-01-06T13:01:00Z",
                "externalEventSourceId": "UNKNOWN",
                "deploymentProperties": {
                  "sequenceNumber": 1,
                  "state": "PENDING",
                  "pipeline": {
                    "pipelineId": "1",
                    "url": "https://github.com",
                    "displayName": "Deploy To Test"
                  },
                  "environment": {
                    "category": "STAGING",
                    "displayName": "STAGING",
                    "environmentId": "STAGING"
                  }
                }
              }
            },
            "componentId": "ari:cloud:compass:3db6fREDACTED9a:component/d58REDACTEDa91/5b6acREDACTED95e"
}

After the runs I get a successful 202 back, but if I go look at activities, I see this event showing up on like 6 different totally unrelated components. not just the component with ID ending in 95e.

Hi, @AndrewHarmon , welcome to the community!

The situation that you describe is happening because you’re using the same external event source identifier (the string “UNKNOWN”) for all events sent - hence, all components connected to the event source of the same identifier would receive a new event submitted.

You can solve this by providing a unique external event source Id per every one of the separate components that you want to send events to. Here’s some more information on how to do that: https://developer.atlassian.com/cloud/compass/components/send-events-using-rest-api/#what-is-an-external-event-source-id-

this appears to be related to externalEventSourceId. It wasn’t clear to me that need to be unique for each component. (Oops, replied at the same time. Thanks!)

1 Like