Skip to content

Deactivate quality configuration

POST /api/v1/quality/configuration/deactivations: request fields and declared response contract.

POST/api/v1/quality/configuration/deactivations

Authorization
Permissionquality.configure
Workspace scoperequired
Scope targetworkspace

Request body

Request body fields
FieldTypeRequiredNullableDefault
kind"metric_definition" | "objective" | "constraint" | "constraint_group" | "notification_binding"requirednon-null—
resourceIdstringrequirednon-null—
expectedRevisionintegerrequirednon-null—
idempotencyKeystringrequirednon-null—

Response

201

Response fields
FieldTypeRequiredNullableDefault
dataobjectrequirednon-null—
data.revisionobjectrequirednon-null—
data.revision.kind"metric_definition" | "objective" | "constraint" | "constraint_group" | "notification_binding"requirednon-null—
data.revision.resourceIdstringrequirednon-null—
data.revision.revisionintegerrequirednon-null—
data.revision.workspaceIdstringrequirednon-null—
data.revision.lifecycle"active" | "inactive"requirednon-null—
data.revision.resourceobjectrequirednon-null—
data.revision.referencesarrayrequirednon-null—
data.revision.associationsarrayrequirednon-null—
data.revision.contentDigeststringrequirednon-null—
data.revision.createdByPrincipalIdstringrequirednon-null—
data.revision.createdAtstringrequirednon-null—

Declared failures

Declared failures
QUALITY_CONFIGURATION_CAPABILITY_UNAVAILABLE422 — not retryable
QUALITY_CONFIGURATION_CONSTRAINT_GROUP_CYCLE422 — not retryable
QUALITY_CONFIGURATION_COST_REFUSED422 — not retryable
QUALITY_CONFIGURATION_FAILED500 — not retryable
QUALITY_CONFIGURATION_IDEMPOTENCY_MISMATCH409 — not retryable
QUALITY_CONFIGURATION_INVALID422 — not retryable
QUALITY_CONFIGURATION_PLAN_DIGEST_MISMATCH409 — not retryable
QUALITY_CONFIGURATION_REFERENCE_DENIED403 — not retryable
QUALITY_CONFIGURATION_REFERENCE_NOT_FOUND404 — not retryable
QUALITY_CONFIGURATION_SEMANTIC_SUCCESSOR_REQUIRED422 — not retryable
QUALITY_CONFIGURATION_STALE_HEAD409 — not retryable
QUALITY_CONFIGURATION_UNIT_MISMATCH422 — not retryable

Readback

Read the result back with:

  • quality.configuration.get

Request example

Schematic only. Replace placeholders with real values and include all required nested fields.

POST /api/v1/quality/configuration/deactivations HTTP/1.1
Authorization: Bearer <token>
x-merulan-workspace-id: <workspace-id>
Content-Type: application/json

{
  "kind": "metric_definition",
  "resourceId": "<resourceId>",
  "expectedRevision": 0,
  "idempotencyKey": "<idempotencyKey>"
}