Listar dependências da tarefa
GET
/api/seller/external/v1/task/{id}/dependency
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/task/architecto/dependency" \ --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/dependency");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/task/architecto/dependency';$response = $client->get( $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/dependency'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers)response.json()depends_on são as tarefas de que esta depende (com alguma aberta, esta aparece como Bloqueada no quadro);
blocks são as que dependem dela.
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
depends_on
Array<object>
object
id
string
title
string
column
object
id
string
name
string
type
string
completed
boolean
blocks
array
Example
{ "data": { "depends_on": [ { "id": "01JA0000000000000000000011", "title": "Aprovar o orçamento", "column": { "id": "01JA0000000000000000000002", "name": "Fazendo", "type": "open" }, "completed": false } ], "blocks": [] }}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}