The following events are available for the iModels API. To set up automation based on these events, create a webhook using the Webhooks API.
content, eventType, enqueuedDateTime, iTwinId, messageId, and webhookId. The content will vary based on what event has been received. See below for a list of properties included inside the content for each event type.Event content.
Date and time when event was enqueued.
iTwin Id.
Event message Id.
Webhook Id.
{
"content": {
// event specific properties go here
},
"eventType": "api.action.version",
"Base Event eventType":"base-event-eventType",
"enqueuedDateTime":"string",
"iTwinId":"string",
"messageId":"string",
"webhookId":"string"
}Globally Unique Identifier of the iModel.
Globally Unique Identifier of the user that deleted the iModel.
{
"content": {
"imodelId":"72640bf2-2173-4276-b896-c157bee0df76",
"userId":"e5c7ae4f-2d72-4319-b96a-d46492e4f860"
},
"eventType": "iModels.iModelDeleted.v1",
"Base Event eventType":"undefined",
"enqueuedDateTime":"11/3/2023 8:07:01 PM",
"iTwinId":"ce40a55a-6954-4de3-85c7-f796c3e423d9",
"messageId":"32369e4b-c9ff-47e4-b422-83b97247ce5b",
"webhookId":"7da4ba7e-3a35-4d97-a1b0-6d453aa97493"
}Globally Unique Identifier of the iModel.
Globally Unique Identifier of the user that created the iModel.
{
"content": {
"imodelId":"72640bf2-2173-4276-b896-c157bee0df76",
"userId":"e5c7ae4f-2d72-4319-b96a-d46492e4f860"
},
"eventType": "iModels.iModelCreated.v1",
"Base Event eventType":"undefined",
"enqueuedDateTime":"11/3/2023 8:07:01 PM",
"iTwinId":"ce40a55a-6954-4de3-85c7-f796c3e423d9",
"messageId":"32369e4b-c9ff-47e4-b422-83b97247ce5b",
"webhookId":"7da4ba7e-3a35-4d97-a1b0-6d453aa97493"
}Changeset id is a 40 characters SHA1 hash that is used to validate Changeset. The id of Changeset is generated from the id of its parent as well as its contents.
Index of the Changeset (increasing, but not necessarily sequential).
Globally Unique Identifier of the iModel.
Globally Unique Identifier of the user that created iModel named version.
Globally Unique Identifier of the Named Version.
{
"content": {
"changesetId":"254c63645055a96d4a920425f5dfbc3adec5b602",
"changesetIndex":"1",
"imodelId":"72640bf2-2173-4276-b896-c157bee0df76",
"userId":"e5c7ae4f-2d72-4319-b96a-d46492e4f860",
"versionId":"51c0ce59-a60d-47fc-a2e4-974712c707ce"
},
"eventType": "iModels.namedVersionCreated.v1",
"Base Event eventType":"undefined",
"enqueuedDateTime":"11/3/2023 8:07:01 PM",
"iTwinId":"ce40a55a-6954-4de3-85c7-f796c3e423d9",
"messageId":"32369e4b-c9ff-47e4-b422-83b97247ce5b",
"webhookId":"7da4ba7e-3a35-4d97-a1b0-6d453aa97493"
}Changeset id is a 40 characters SHA1 hash that is used to validate Changeset. The id of Changeset is generated from the id of its parent as well as its contents.
Index of the Changeset (increasing, but not necessarily sequential).
Globally Unique Identifier of the iModel.
Globally Unique Identifier of the user that iModel changeset belongs to.
{
"content": {
"changesetId":"254c63645055a96d4a920425f5dfbc3adec5b602",
"changesetIndex":"1",
"imodelId":"72640bf2-2173-4276-b896-c157bee0df76",
"userId":"e5c7ae4f-2d72-4319-b96a-d46492e4f860"
},
"eventType": "iModels.changesReady.v1",
"Base Event eventType":"undefined",
"enqueuedDateTime":"11/3/2023 8:07:01 PM",
"iTwinId":"ce40a55a-6954-4de3-85c7-f796c3e423d9",
"messageId":"32369e4b-c9ff-47e4-b422-83b97247ce5b",
"webhookId":"7da4ba7e-3a35-4d97-a1b0-6d453aa97493"
}Globally Unique Identifier of the iModel that was created.
Globally Unique Identifier of the iModel that was cloned from.
Globally Unique Identifier of the iTwin that the iModel was cloned from.
The last changeset index that was included in the clone.
The last changeset id that was included in the clone.
Globally Unique Identifier of the user that cloned the iModel.
{
"content": {
"imodelId":"0c651407-37d0-43bb-8c68-cb155cfc20b1",
"sourceimodelId":"20df82bd-5000-47ea-891f-690609eb4a3a",
"sourceiTwinId":"20ceaf78-4f84-46e0-bf28-6e5c987a4aa2",
"clonedUpToChangesetIndex":"254c63645055a96d4a920425f5dfbc3adec5b602",
"clonedUpToChangesetId":"1",
"userId":"e5c7ae4f-2d72-4319-b96a-d46492e4f860"
},
"eventType": "iModels.iModelCloned.v1",
"Base Event eventType":"undefined",
"enqueuedDateTime":"11/3/2023 8:07:01 PM",
"iTwinId":"ce40a55a-6954-4de3-85c7-f796c3e423d9",
"messageId":"32369e4b-c9ff-47e4-b422-83b97247ce5b",
"webhookId":"7da4ba7e-3a35-4d97-a1b0-6d453aa97493"
}Was this page helpful?