diff --git a/api/spec/src/notification/channel.tsp b/api/spec/src/notification/channel.tsp index 2bb4778bb..441f40ae0 100644 --- a/api/spec/src/notification/channel.tsp +++ b/api/spec/src/notification/channel.tsp @@ -197,7 +197,7 @@ interface Channels { @put @operationId("updateNotificationChannel") @summary("Update a notification channel") - update(@body request: ChannelCreateRequest): { + update(@path channelId: ULID, @body request: ChannelCreateRequest): { @statusCode _: 200; @body body: Channel; } | OpenMeter.CommonErrors; diff --git a/api/spec/src/notification/rule.tsp b/api/spec/src/notification/rule.tsp index cd11dcf72..2940158c7 100644 --- a/api/spec/src/notification/rule.tsp +++ b/api/spec/src/notification/rule.tsp @@ -278,7 +278,7 @@ interface Rules { @put @operationId("updateNotificationRule") @summary("Update a notification rule") - update(@body request: RuleCreateRequest): { + update(@path ruleId: ULID, @body request: RuleCreateRequest): { @statusCode _: 200; @body body: Rule; } | OpenMeter.CommonErrors; @@ -311,5 +311,6 @@ interface Rules { @operationId("testNotificationRule") test(@path ruleId: ULID): { @statusCode _: 201; + @body body: Event; } | OpenMeter.NotFoundError | OpenMeter.CommonErrors; }