API ReferenceListings
DELETE /listings/{id}
Encerrar (ou excluir permanentemente)
DELETE
/listings/{id}Auth: accessTokenDefault: UPDATE status=closed (mantém histórico). Com ?hard=true em listing já closed: DELETE permanente. Auto-rejeita ofertas pendentes em ambos os casos.
Request
Esta requisição não tem corpo.
Response
204
objectErros
Sem respostas de erro documentadas.
Exemplos
curl -X DELETE 'http://localhost:3003/listings/{id}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/listings/{id}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})