Desfazer a dependência entre duas tarefas
DELETE
/api/seller/external/v1/task/{id}/dependency/{otherId}
curl --request DELETE \ "https://api.spelt.com.br/api/seller/external/v1/task/architecto/dependency/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/dependency/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/dependency/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/dependency/architecto'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('DELETE', url, headers=headers)response.json()Vale nos dois sentidos: desfaz a ligação que existir entre as duas.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
ULID da tarefa.
otherId
required
string
ULID da outra tarefa da ligação.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
depends_on
array
blocks
array
Example
{ "data": { "depends_on": [], "blocks": [] }}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}