diff --git a/plugins/events-backend/src/schema/openapi.generated.ts b/plugins/events-backend/src/schema/openapi.generated.ts index 7d17ad2bf6..90a9b10011 100644 --- a/plugins/events-backend/src/schema/openapi.generated.ts +++ b/plugins/events-backend/src/schema/openapi.generated.ts @@ -137,6 +137,13 @@ export const spec = { operationId: 'PostEvent', description: 'Publish a new event', responses: { + '201': { + description: 'The event was published successfully', + }, + '204': { + description: + 'The event did not need to be published as all subscribers have already been notified', + }, default: { $ref: '#/components/responses/ErrorResponse', }, diff --git a/plugins/events-backend/src/schema/openapi.yaml b/plugins/events-backend/src/schema/openapi.yaml index 1adee01ab5..bec0b2461b 100644 --- a/plugins/events-backend/src/schema/openapi.yaml +++ b/plugins/events-backend/src/schema/openapi.yaml @@ -93,6 +93,10 @@ paths: operationId: PostEvent description: Publish a new event responses: + '201': + description: The event was published successfully + '204': + description: The event did not need to be published as all subscribers have already been notified default: $ref: '#/components/responses/ErrorResponse' security: