Geek Social — Documentação
API ReferenceListings

PATCH /listings/{id}/pause

Pausar anúncio

PATCH/listings/{id}/pauseAuth: accessToken

UPDATE status=paused. Listing some do marketplace mas pode ser reativado. Pendente NÃO impacta ofertas existentes.

Request

Esta requisição não tem corpo.

Response

200

Sem corpo na resposta.

Erros

Sem respostas de erro documentadas.

Exemplos

curl -X PATCH 'http://localhost:3003/listings/{id}/pause' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/listings/{id}/pause', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page