{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To create a Kafka schema for a database cluster, send a POST request to\n`/v2/databases/$DATABASE_ID/schema-registry`.\n","properties":{"path":{"type":"object","properties":{"database_cluster_uuid":{"type":"string","format":"uuid","examples":["9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"],"description":"A unique identifier for a database cluster."}},"required":["database_cluster_uuid"],"additionalProperties":false},"body":{"allOf":[{"$ref":"#/definitions/database_kafka_schema_create"}],"required":["subject_name","schema_type","schema"],"examples":[{"subject_name":"customer-schema","schema_type":"AVRO","schema":"{\n  \"type\": \"record\",\n  \"name\": \"Customer\",\n  \"fields\": [\n    {\"name\": \"id\", \"type\": \"string\"},\n    {\"name\": \"name\", \"type\": \"string\"},\n    {\"name\": \"email\", \"type\": \"string\"},\n    {\"name\": \"created_at\", \"type\": \"long\"}\n  ]\n}\n"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"database_kafka_schema_create":{"type":"object","properties":{"subject_name":{"type":"string","description":"The name of the schema subject.","examples":["customer-schema"]},"schema_type":{"type":"string","enum":["AVRO","JSON","PROTOBUF"],"description":"The type of the schema.","examples":["AVRO"]},"schema":{"type":"string","description":"The schema definition in the specified format.","examples":["{\n  \"type\": \"record\",\n  \"name\": \"Customer\",\n  \"fields\": [\n    {\"name\": \"id\", \"type\": \"int\"},\n    {\"name\": \"name\", \"type\": \"string\"}\n  ]\n}"]}}}}},"name":"Create Schema Registry for Kafka Cluster\n","id":"digitalocean.databases_create_kafka_schema","example":{"path":{"database_cluster_uuid":"9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"},"body":{"subject_name":"customer-schema","schema_type":"AVRO","schema":"{\n  \"type\": \"record\",\n  \"name\": \"Customer\",\n  \"fields\": [\n    {\"name\": \"id\", \"type\": \"string\"},\n    {\"name\": \"name\", \"type\": \"string\"},\n    {\"name\": \"email\", \"type\": \"string\"},\n    {\"name\": \"created_at\", \"type\": \"long\"}\n  ]\n}\n"}},"maxRequests":1,"summary":false}}