Skip to content
  • Auto
  • Light
  • Dark

Update Subject

Update Schema Registry Configuration for a Subject of kafka Cluster
put/v2/databases/{database_cluster_uuid}/schema-registry/config/{subject_name}

To update the Schema Registry configuration for a Subject of a Kafka cluster, send a PUT request to /v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME. The response is a JSON object with a compatibility_level key, which is set to an object containing any database configuration parameters.

Path ParametersExpand Collapse
database_cluster_uuid: string
subject_name: string
Body ParametersExpand Collapse
compatibility_level: "NONE" or "BACKWARD" or "BACKWARD_TRANSITIVE" or 4 more

The compatibility level of the schema registry.

Accepts one of the following:
"NONE"
"BACKWARD"
"BACKWARD_TRANSITIVE"
"FORWARD"
"FORWARD_TRANSITIVE"
"FULL"
"FULL_TRANSITIVE"
ReturnsExpand Collapse
compatibility_level: "NONE" or "BACKWARD" or "BACKWARD_TRANSITIVE" or 4 more

The compatibility level of the schema registry.

Accepts one of the following:
"NONE"
"BACKWARD"
"BACKWARD_TRANSITIVE"
"FORWARD"
"FORWARD_TRANSITIVE"
"FULL"
"FULL_TRANSITIVE"
subject_name: string

The name of the schema subject.

Update Schema Registry Configuration for a Subject of kafka Cluster
curl https://api.digitalocean.com/v2/databases/$DATABASE_CLUSTER_UUID/schema-registry/config/$SUBJECT_NAME \
    -X PUT \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN" \
    -d '{
          "compatibility_level": "BACKWARD"
        }'
{
  "compatibility_level": "NONE",
  "subject_name": "subject_name"
}
Returns Examples
{
  "compatibility_level": "NONE",
  "subject_name": "subject_name"
}