Incluir item no checklist
POST
/api/seller/external/v1/task/{id}/checklist
curl --request POST \ "https://api.spelt.com.br/api/seller/external/v1/task/architecto/checklist" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --data "{ \"title\": \"architecto\"}"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/task/architecto/checklist");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
let body = { "title": "architecto"};
fetch(url, { method: "POST", headers, body: JSON.stringify(body),}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto/checklist';$response = $client->post( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'title' => 'architecto', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto/checklist'payload = { "title": "architecto"}headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('POST', url, headers=headers, json=payload)response.json()Entra no fim. Devolve o checklist inteiro.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
ULID da tarefa.
Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
title
required
Texto do item.
string
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
Array<object>
object
object
string
id
string
task_id
string
title
string
position
integer
done
boolean
done_at
string | null
done_by_id
string | null
Example
{ "data": [ { "object": "task_checklist_item", "id": "01JA0000000000000000000050", "task_id": "01JA0000000000000000000010", "title": "Enviar a proposta", "position": 0, "done": false, "done_at": null, "done_by_id": null } ]}Media typeapplication/json
object
message
string
Example
{ "message": "O checklist aceita até 100 itens."}