Skip to content
CCPEDIAby Unity Nodes
App Development

Damlhub-cli documentation

2 posts144 viewsLast activity Dec 2023

  1. austin.hodgesOP

    Hi I’m writing a bash script that needs to stop an old version of a trigger. I was trying to find documentation on the cli for what command I would use to stop the trigger from the cli if it is possible. I thought I would use damlhub ledger trigger with one of the [options] being stop or pause but was unsure if that is the proper argument. Is it even possible to stop a trigger from the cli?

  2. rohitt

    Hi @austin.hodges ,

    To stop a trigger you can send a DELETE method using an HTTP request :

    HTTP Request

    • URL: /v1/triggers/:id
    • Method: DELETE
    • Content-Type: application/json
    • Content:

    HTTP Response

    • Content-Type: application/json
    • Content:

    { “result”: {“triggerId”:“4d539e9c-b962-4762-be71-40a5c97a47a6”}, “status”:200 }

    For more refer to this link.