diff --git a/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift b/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift index e2789ec2..7294e0fc 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift @@ -30,9 +30,7 @@ public struct Notification: Decodable, Sendable { } public static func dismiss(id notificationID: String) -> Request { - return Request(method: .post, path: "/api/v1/notifications/dismiss", body: ParametersBody([ - "id" => notificationID - ])) + return Request(method: .post, path: "/api/v1/notifications/\(notificationID)/dismiss") } private enum CodingKeys: String, CodingKey {