Skip to main content

Update Metadata

PUT /public/v1/datacatalog/connections/{connection_id}/streams/{stream_name}/metadata

Updates metadata for a specific data stream in the catalog.

You can perform either a full update or a partial update by sending only the fields you want to change.


Request

Path Parameters

ParameterTypeDescriptionRequired
connection_idstringID of the connection (e.g., Kafka cluster)Yes
stream_namestringName of the stream (e.g., Kafka topic)Yes

Body Parameters

FieldTypeDescriptionRequired
tagsstring[]Labels for categorizing the streamOptional
ownerIdstringUser ID of the stream ownerOptional
domainIdstring (UUID)Domain identifierOptional
documentationstringRich text documentation (HTML format)Optional
updatedBystringUser ID of the person making the updateOptional
updatedAtlongUnix timestamp in millisecondsOptional

Example — Full Update

curl --location --request PUT 'https://your-instance.com/public/v1/datacatalog/connections/42/streams/spacecraft.telemetry.raw/metadata' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <your-api-key>' \
--data-raw '{
"metadata": {
"tags": ["spacecraft", "telemetry", "raw-data"],
"ownerId": "sarah.connor@skynet.com",
"domainId": "9f83cc67-d3da-4432-b0b7-0d08e7b41d86",
"documentation": "<h1>Spacecraft Telemetry Stream</h1><p>This stream contains raw telemetry data from our spacecraft fleet, including:</p><ul><li>Position data</li><li>System health metrics</li><li>Environmental readings</li></ul>",
"updatedBy": "sarah.connor@skynet.com",
"updatedAt": 1707347405000
}
}'

Example — Partial Update

curl --location --request PUT 'https://your-instance.com/public/v1/datacatalog/connections/42/streams/spacecraft.telemetry.raw/metadata' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <your-api-key>' \
--data '{
"metadata": {
"tags": ["spacecraft", "telemetry", "processed"],
"documentation": "<h1>Spacecraft Telemetry Stream</h1><p>Updated: This stream now contains processed telemetry data.</p>"
}
}'

Partial updates only modify the specified fields without affecting other metadata.


Response

HTTP Status Code: 200 OK
Response Body: The change (object)


Best Practices

  • Use partial updates when possible to avoid overwriting existing metadata unintentionally.
  • Include meaningful documentation in HTML format to describe the data stream clearly.
  • Keep tags consistent across related streams for better searchability and organization.

Possible Errors

Status CodeDescriptionSolution
400Invalid requestCheck your request payload format
401UnauthorizedVerify your API key
404Stream not foundConfirm connection ID and stream name