Skip to main content
POST
/
api
/
monitors
/
automated
/
v1
/
deployment-rules
/
batch
BatchUpsertDeploymentRules
curl --request POST \
  --url https://developer.synq.io/api/monitors/automated/v1/deployment-rules/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "deploymentRules": [
    {
      "exclusiveQueryConfig": {
        "query": {
          "parts": [
            {
              "identifierList": {
                "identifiers": [
                  {
                    "airflowDag": {
                      "integrationId": "<string>",
                      "dagId": "<string>"
                    }
                  }
                ]
              }
            }
          ],
          "operand": "QUERY_OPERAND_UNSPECIFIED"
        }
      },
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "source": "SOURCE_APP",
      "configId": "<string>"
    }
  ]
}
'
{
  "createdIds": [
    "<string>"
  ],
  "updatedIds": [
    "<string>"
  ],
  "errors": [
    {
      "id": "<string>",
      "reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
deploymentRules
MonitorsDeploymentRule · object[]

List of DeploymentRules to upsert.

  • MonitorsDeploymentRule
  • MonitorsDeploymentRule
  • MonitorsDeploymentRule
  • MonitorsDeploymentRule
  • MonitorsDeploymentRule

Response

200 - application/json

Success

createdIds
string[]

IDs for which DeploymentRules were created without error.

updatedIds
string[]

IDs for which DeploymentRules were updated without error.

errors
UpsertError · object[]

Errors raised while upsert. This list will be empty if there were no errors.