Excluir app
curl --request DELETE \
--url https://api.upag.io/v1/apps/{appId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/apps/{appId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/apps/{appId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Apps
Excluir app
Remove um app da conta
DELETE
https://api.upag.io
/
v1
/
apps
/
{appId}
Excluir app
curl --request DELETE \
--url https://api.upag.io/v1/apps/{appId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/apps/{appId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/apps/{appId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Exclusão lógica. Em apps Shopify, desinstale o script antes se quiser removê-lo da loja.
Permissão:
app.write (chave secreta).
Endpoint
curl -X DELETE https://api.upag.dev/v1/apps/b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d01 \
-H "Authorization: Bearer sk_test_your_api_key"
import { Upag } from 'upag';
const upag = new Upag('sk_test_your_api_key');
await upag.apps.delete('b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d01');
Em produção use
https://api.upag.io/v1 com sk_live_....Parâmetros
string (uuid)
required
ID do app.
Resposta
204 No Content — sem corpo em caso de sucesso.
404 (APP_NOT_FOUND) se o app não existir.