Skip to content

Commit 3f1cee0

Browse files
author
github-actions
committed
Update OpenAPI schemas
1 parent 936a533 commit 3f1cee0

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

core-api/core-api.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,32 @@
722722
}
723723
}
724724
},
725+
"AppEvent": {
726+
"required": [
727+
"event_type",
728+
"app_object"
729+
],
730+
"properties": {
731+
"event_type": {
732+
"type": "string",
733+
"description": "The type of event this application should handle"
734+
},
735+
"app_object": {
736+
"type": "object",
737+
"description": "Identifier for the app object to which the event is related. Either an ID or an external link is required.\nIf both are provided, the ID will be favored.\n",
738+
"properties": {
739+
"id": {
740+
"type": "string",
741+
"description": "ID of the app object"
742+
},
743+
"ext_link": {
744+
"type": "string",
745+
"description": "External link of the app object"
746+
}
747+
}
748+
}
749+
}
750+
},
725751
"Attachment": {
726752
"type": "object",
727753
"properties": {
@@ -6781,6 +6807,42 @@
67816807
}
67826808
}
67836809
},
6810+
"/applications/{application_uid}/events": {
6811+
"post": {
6812+
"summary": "Trigger application event",
6813+
"operationId": "trigger-app-event",
6814+
"description": "Triggers an event on behalf of an application. These events can trigger Front workflows, like rules.\nFor more information, see the [developer docs](https://dev.frontapp.com/docs/application-triggers#/).\n",
6815+
"tags": [
6816+
"Applications"
6817+
],
6818+
"parameters": [
6819+
{
6820+
"in": "path",
6821+
"name": "application_uid",
6822+
"required": true,
6823+
"description": "The application UID",
6824+
"schema": {
6825+
"type": "string",
6826+
"default": "1f773a300ecb4076"
6827+
}
6828+
}
6829+
],
6830+
"requestBody": {
6831+
"content": {
6832+
"application/json": {
6833+
"schema": {
6834+
"$ref": "#/components/schemas/AppEvent"
6835+
}
6836+
}
6837+
}
6838+
},
6839+
"responses": {
6840+
"204": {
6841+
"description": "No content"
6842+
}
6843+
}
6844+
}
6845+
},
67846846
"/channels": {
67856847
"get": {
67866848
"summary": "List channels",

0 commit comments

Comments
 (0)