M20 Azure RAFS - Legal Tag Not Found While creating Well Record
URL : https://{{STORAGE_HOST}}/records
request body :
[
{
"acl": {
"viewers": [
"data.default.viewers@{{data-partition-id}}{{domain}}"
],
"owners": [
"data.default.owners@{{data-partition-id}}{{domain}}"
]
},
"data": {
"FacilityName": "Faciliity_{{RAFSTestWellRecordID}}",
"ExtensionProperties": {
"UWI": "20-000-00000-00"
}
},
"id": "{{data-partition-id}}:master-data--Well:{{RAFSDMSRunId}}",
"kind": "{{authority}}:{{schemaSource}}:master-data--Well:1.0.0",
"legal": {
"legaltags": [
"{{LtagName}}"
],
"otherRelevantDataCountries": [
"FR",
"US"
],
"status": "compliant"
}
}
]
Response :
{
"code": 400,
"reason": "Invalid legal tags",
"message": "Invalid legal tags found on record"
}
Steps To Reproduce:
1 . Create the legal tag .
2 . Create Well record - to verify the Well record is created or not.
3 . Again execute the create legal tag API with response 400 HTTP response code.
4 . Again execute the Create Well record - to verify the Well record is created or not.
As an end user point of view:
The legal tag is already created.
If we run the legal tag again with invalid request body, the API should not affect the already created legal tag .Am correct?
Why there is no API is available to fetch the created legal tag?
Why there is no API is available to update the created legal tag?