From 27f7603e9e980bdac135d186f5ccc9d8c79e3d2e Mon Sep 17 00:00:00 2001 From: varunbharill Date: Fri, 10 Dec 2021 17:57:44 -0800 Subject: [PATCH] fix(docs): datahub cli docs have the wrong case for corpuser (#3717) --- docs/cli.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 3e34b84c5e..8badb7545e 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -156,11 +156,11 @@ The JSON in the `ownership.json` file needs to conform to the [`Ownership`](http { "owners": [ { - "owner": "urn:li:corpUser:jdoe", + "owner": "urn:li:corpuser:jdoe", "type": "DEVELOPER" }, { - "owner": "urn:li:corpUser:jdub", + "owner": "urn:li:corpuser:jdub", "type": "DATAOWNER" } ] @@ -171,6 +171,6 @@ The JSON in the `ownership.json` file needs to conform to the [`Ownership`](http datahub --debug put --urn "urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)" --aspect ownership -d ownership.json [DATE_TIMESTAMP] DEBUG {datahub.cli.cli_utils:340} - Attempting to emit to DataHub GMS; using curl equivalent to: -curl -X POST -H 'User-Agent: python-requests/2.26.0' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'Connection: keep-alive' -H 'X-RestLi-Protocol-Version: 2.0.0' -H 'Content-Type: application/json' --data '{"proposal": {"entityType": "dataset", "entityUrn": "urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)", "aspectName": "ownership", "changeType": "UPSERT", "aspect": {"contentType": "application/json", "value": "{\"owners\": [{\"owner\": \"urn:li:corpUser:jdoe\", \"type\": \"DEVELOPER\"}, {\"owner\": \"urn:li:corpUser:jdub\", \"type\": \"DATAOWNER\"}]}"}}}' 'http://localhost:8080/aspects/?action=ingestProposal' +curl -X POST -H 'User-Agent: python-requests/2.26.0' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'Connection: keep-alive' -H 'X-RestLi-Protocol-Version: 2.0.0' -H 'Content-Type: application/json' --data '{"proposal": {"entityType": "dataset", "entityUrn": "urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)", "aspectName": "ownership", "changeType": "UPSERT", "aspect": {"contentType": "application/json", "value": "{\"owners\": [{\"owner\": \"urn:li:corpuser:jdoe\", \"type\": \"DEVELOPER\"}, {\"owner\": \"urn:li:corpuser:jdub\", \"type\": \"DATAOWNER\"}]}"}}}' 'http://localhost:8080/aspects/?action=ingestProposal' Update succeeded with status 200 ```