capabilities.work

Upsert Environment

A 3-step recipe with MuleSoft. We can help you get access.

Recipe · 3 steps

Upsert Environment

Upsert a single environment into an organization by name.

  1. List the organization's environments and capture the id of the first one whose name matches the supplied value, if any.
  2. Update the matched environment with the supplied name and type.
  3. Create a new environment when no existing environment matched the name.
What you'll need to have ready
  • bearerToken: Anypoint Platform bearer access token.
  • orgId: The organization id to upsert the environment into.
  • environmentName: The environment name used to detect an existing environment.
  • environmentType: The environment type (design, sandbox, or production).
For your developer

Arazzo workflow mulesoft:upsert-environment, 3 operations: listEnvironments → updateEnvironment → createEnvironment. Specs on APIs.io.