DELETE v1/ads

Remover um anúncio

Requires Authorization

To perform authorization, you must submit the authentication credentials using the HTTP Basic authorization header.
The authorization header is constructed as follows:

  1. The username and password are combined into a string "user:password"
  2. The resulting literal string is then encoded in Base64
  3. The authorization method followed by the word "Basic" is then placed before the coded sequence.
For example, if the user is 'Aladdin' and the password is 'open-sesame' then the header should be:
Authorization: Basic QWxhZGRpbjpvcGVuLXNlc2FtZQ==

Response Codes

  • NoContent (204)
  • Unauthorized (401)
  • NotFound (404)

Request Information

URL Parameters

The parameters must be in the request URL.

Nothing.

Request body parameters

These parameters must be in the request Body.

AdDeleteRequest Model Representation of the Ad Delete Request

NameDescriptionTypeAdditional Information
AdIdAd Id codeintegerRequired
DeleteTypeAd exclusion type (0/0) I don't want to answer (1/1) I sold and this ad helped me (1/0) I sold by other means (2/0) Not soldstringRequired
PriceAd sale value (only if the ad was sold)decimal number
PaymentTypeAd sale payment type (only if the ad was sold) (0) None (1) Cash without exchange (2) Cash on exchange (3) Own financing (4) Bank financing (5) Othersinteger
StateAd's location state of sale (only if the ad was sold)string
CityAd's location city of sale (only if the ad was sold)string

Request Formats

application/json, text/json

Notes:

  • In Json format, the parameter names follow the camelCase pattern, that is, they always start with lowercase letters.
{
  "adId": 1,
  "deleteType": "1/1",
  "price": 125800.0,
  "paymentType": 1,
  "state": "SP",
  "city": "Jundiaí"
}

text/html

{"adId":1,"deleteType":"1/1","price":125800.0,"paymentType":1,"state":"SP","city":"Jundiaí"}

application/xml, text/xml

<AdDeleteRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AdId>1</AdId>
  <DeleteType>1/1</DeleteType>
  <Price>125800</Price>
  <PaymentType>1</PaymentType>
  <State>SP</State>
  <City>Jundiaí</City>
</AdDeleteRequest>

application/x-www-form-urlencoded

Example not available.

Response Information

Resource Description

Description not available.