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": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "source": "SOURCE_APP",
      "configId": "<string>",
      "exclusiveQueryConfig": {
        "query": {
          "parts": [
            "<any>"
          ],
          "operand": "QUERY_OPERAND_UNSPECIFIED"
        }
      }
    }
  ]
}'
{
  "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.