From a9e9c3328c178638e0173e54990cf9bd6c338f3e Mon Sep 17 00:00:00 2001 From: Arul1998 Date: Sun, 23 Aug 2026 23:19:26 +0100 Subject: [PATCH] fix(api): correct watchlist POST request schema in OpenAPI spec --- seerr-api.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/seerr-api.yml b/seerr-api.yml index f691df2905..0c703a60d5 100644 --- a/seerr-api.yml +++ b/seerr-api.yml @@ -61,6 +61,24 @@ components: userId: type: number example: 1 + WatchlistRequest: + type: object + required: + - tmdbId + - mediaType + properties: + tmdbId: + type: number + example: 1 + mediaType: + type: string + enum: + - movie + - tv + ratingKey: + type: string + title: + type: string Watchlist: type: object properties: @@ -5052,9 +5070,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Watchlist' + $ref: '#/components/schemas/WatchlistRequest' responses: - '200': + '201': description: Watchlist data returned content: application/json: