Excluir tarefa
DELETE
/api/seller/external/v1/task/{id}
curl --request DELETE \ "https://api.spelt.com.br/api/seller/external/v1/task/architecto" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/task/architecto");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "DELETE", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto';$response = $client->delete( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('DELETE', url, headers=headers)response.json()Tira o card do quadro. Comentários, checklist e anexos saem junto da tela; o histórico da conta guarda quem
excluiu. As tarefas que dependiam desta deixam de esperar por ela e, se o card era o modelo de uma rotina
(is_template), a rotina se encerra (as tarefas já criadas ficam). Não há como restaurar pela API.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
ULID da tarefa.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
id
string
Example
{ "data": { "id": "01JA0000000000000000000010" }}Media typeapplication/json
object
message
string
code
string
Example
{ "message": "Tarefas e leads não têm modo de teste: a chave de homologação só lê. Use a chave de produção para gravar.", "code": "test_mode"}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}