I'm trying to use the 'Send events using REST API' feature. When I make the POST it responds with a 202 response. But I can't see it in the timeline, I assume it should available almost straightaway.
I've double checked event sources and they seems to be setup correctly. Any ideas really appreciated! :)
Example curl command:
(I've replaced any sensitive information).
curl --location 'https://<mydomain>.atlassian.net/gateway/api/compass/v1/events' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic REMOVED_AUTH' \
--data '{
"cloudId": "CLOUD_ID",
"event": {
"custom": {
"displayName": "test",
"lastUpdated": "2022-05-22T12:23:45Z",
"updateSequenceNumber": 57,
"description": "testing",
"url": "https: //www.example.com",
"externalEventSourceId": "poc-event-source-custom",
"customEventProperties": {
"id": "1234",
"icon": "INFO"
}
}
}
}'
Discovered this was user error. For starters the year is incorrect. Then subsequence updates did not fix the issue until I changed the sequence number.
Hi James,
I have the exact same curl command, the only thing that differs is the `externalEventSourceId` but all I ever get is this response, any chance you ran into this and have a solution to solve it?
NOTE: I did follow the graphql commands and created the custom event type
{
"errors": [
{
"type": "CREATE_EVENT_SOURCE_NOT_FOUND",
"message": "We could not create the event because the event source is not found. Please check that the external event source ID and the type of event being submitted match the event source.If a Forge App ID was used during event source creation, please also check you are using the same Forge App ID when accessing the event source."
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.