Pular para o conteúdo

Despublicar

POST
/api/seller/external/v1/hub/post/{id}/unpublish
curl --request POST \
"https://api.spelt.com.br/api/seller/external/v1/hub/post/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/unpublish" \
--header "Authorization: Bearer splt_live_SUA_CHAVE" \
--header "Content-Type: application/json" \
--header "Accept: application/json"

Volta a rascunho e sai do ar. A data de publicação fica: republicar mostra a mesma data.

id
required
string

The ID of the post.

Media typeapplication/json
object
data
object
id
string
status
string
profile_enabled
boolean
Example
{
"data": {
"id": "01J...",
"status": "draft",
"profile_enabled": true
}
}
Media typeapplication/json
object
error
string
Example
{
"error": "Recurso não encontrado"
}