Closed uriel-kluk closed 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sourabhguha, @inesk-vt.
Author: | uriel-kluk |
---|---|
Assignees: | - |
Labels: | `Client`, `Digital Twins`, `Docs`, `Service Attention`, `customer-reported`, `needs-team-attention`, `needs-triage`, `question` |
Milestone: | - |
Thank you for your feedback. Tagging and routing to the team best able to assist.
Hi @uriel-kluk you do not need to do a GetDigitalTwin after UpdateDigitalTwin in order to get the ETag. Within the Http headers of the Response object that UpdateDigitalTwin returns should be the new ETag for your digital twin after the update
From the swagger, you can see that this ETag is returned for you:
"responses": {
"204": {
"description": "Success",
"headers": {
"ETag": {
"description": "Weak Etag.",
"type": "string"
}
}
}
}
[Enter feedback here] The UpdateDigitalTwinAsync returns an HTTP Response object, but it is not clear how to grab the computed ETag.
The workaround is to do a new Read, but the extra trip is undesirable.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.