Running an API request from Terminal/CLI
- austin.hodgesOP
I want to run the command
curl https://{subdomain}.daml.app/.hub/v1/published/instanceand thencurl https://{subdomain}.daml.app/.hub/v1/published/instance/deleteto delete a specific trigger. When I runcurl https://{subdomain}.daml.app/.hub/v1/published/instance, i get the repsonse:The resource requires authentication, which was not supplied with the request, which makes sense. I was wondering if A) this is the correct way to run this request from the cli and B) what authorization(s) i need to include to be able to get the response and then stop the trigger.
Thanks - sormeter
Austin
These endpoints are detailed on the application api docs
For the delete example, you want to use a
LedgerPartyTokenpassed in the Authorization: Bearer headerAuthorization: Bearer $LEDGER_PARTY_TOKEN"delete
https://hub.daml.com/docs/api#tag/Automation/operation/deleteInstance