diff --git a/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift b/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift index 83b83b9a..bf68c10a 100644 --- a/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift +++ b/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift @@ -41,7 +41,7 @@ public struct FilterV2: Decodable { return Request(method: .put, path: "/api/v2/filters/\(filterID)", body: ParametersBody([ "title" => title, "expires_in" => expiresIn, - "action" => action.rawValue, + "filter_action" => action.rawValue, ] + "context" => context.contextStrings + keywordsParams)) } @@ -65,7 +65,7 @@ public struct FilterV2: Decodable { return Request(method: .post, path: "/api/v2/filters", body: ParametersBody([ "title" => title, "expires_in" => expiresIn, - "action" => action.rawValue, + "filter_action" => action.rawValue, ] + "context" => context.contextStrings + keywordsParams)) }