Diff two YAML strings
POST /Platform/entities/diff-yaml
Diff two YAML strings.
Body parameters
old_yaml: str. Left-side YAML.new_yaml: str. Right-side YAML.label_old: optional str. Header label for the old side (defaultcurrent).label_new: optional str. Header label for the new side (defaultpending).
Returns
EntityDiffResponse
diff: optional str or null. Unified diff; empty when the versions are identical.changed_fields: optional List[str] or null. Top-level fields that differ.commit_id: optional str or null. Right-side (newer) commit.parent_commit_id: optional str or null. Left-side (older) commit.committed_at: optional moment or null. When the right-side commit was made.
Example request
curl -X POST "https://api.hilus.ai/Platform/entities/diff-yaml" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'