Trigger same deployment with APIs

How can I retrigger the same deployment multiple times without encountering the “Artifact already installed” message?

Is there an API-based solution for this? One approach is to create two artifact versions and trigger two separate deployment APIs, ensuring that one always works. However, is there a more efficient way to handle this via API integration?

Hi @vimoxshah,

As I understand you don’t re-trigger a deployment. But you could create a new deployment and force installation of the artifact.

The documentation for deployments says

  • A device won’t take part in the same Deployment twice
    • This can be overridden with the “Force update” option

I’m not sure that is well worded. Looking at the API documentation for deployments briefly
I find you can list, create and abort deployments.

The NewDeployment and NewDeploymenForGroup
has a force_installation property which is false by default but when enabled forces the installation of the Artifact disabling the already-installed check. So, I suspect that rather than force update allowing a device to take part in the same deployment it means the check if the artifact is already installed will be skipped so artifact installation will be done again.