diff --git a/resources/service.php b/resources/service.php index 5f45e1c..b68402b 100644 --- a/resources/service.php +++ b/resources/service.php @@ -396,6 +396,74 @@ ] ] ], + 'editListing' => [ + 'httpMethod' => 'POST', + 'uri' => '/marketplace/listings/{listing_id}', + 'summary' => 'Edits a Marketplace listing.', + 'responseModel' => 'GetResponse', + 'parameters' => [ + 'listing_id' => [ + 'type' => 'string', + 'location' => 'uri', + 'required' => true + ], + 'release_id' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => true + ], + 'condition' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => true, + ], + 'sleeve_condition' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => false, + ], + 'price' => [ + 'type' => 'number', + 'location' => 'json', + 'required' => true, + ], + 'comments' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => false, + ], + 'allow_offers' => [ + 'type' => 'boolean', + 'location' => 'json', + 'required' => false, + ], + 'status' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => false, + ], + 'external_id' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => false, + ], + 'location' => [ + 'type' => 'string', + 'location' => 'json', + 'required' => false, + ], + 'weight' => [ + 'type' => 'number', + 'location' => 'json', + 'required' => false, + ], + 'format_quantity' => [ + 'type' => 'number', + 'location' => 'json', + 'required' => false, + ] + ] + ], 'deleteListing' => [ 'httpMethod' => 'DELETE', 'uri' => 'marketplace/listings/{listing_id}',