Description
Update a mapping group ruleset, specified by the mapping group GUID.
POST
/v1/dataprep/mapping_groups/{mappingGroupGuid}/update_rules
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
mappingGroupGuid | path | string | true | The GUID of the Mapping Group. |
file | body | string(binary) | false | |
mode | body | string | false |
Enumerated Values
Parameter | Value |
---|---|
mode | published |
mode | draft |
mode | both |
Body parameter example
file: string
mode: published
Code Samples
curl -X POST https://h.app.wdesk.com/s/wdata/oc/api/v1/dataprep/mapping_groups/{mappingGroupGuid}/update_rules \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json'
http POST https://h.app.wdesk.com/s/wdata/oc/api/v1/dataprep/mapping_groups/{mappingGroupGuid}/update_rules \
Content-Type:multipart/form-data \
Accept:application/json
wget --method=POST "https://h.app.wdesk.com/s/wdata/oc/api/v1/dataprep/mapping_groups/{mappingGroupGuid}/update_rules" \
--output-document - \
--header 'Content-Type: multipart/form-data' \
--header 'Accept: application/json'
import requests
headers = {
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
r = requests.post('https://h.app.wdesk.com/s/wdata/oc/api/v1/dataprep/mapping_groups/{mappingGroupGuid}/update_rules', headers = headers)
print(r.json())
Returns
200 - OK
Returns a MappingRuleUploadResult
containing an object with a mappingRule
field that has an array of MappingRule
objects and an errors
field that has an array of ErrorWithLineNumber
for the provided mappingGroupGuid
.
Example Responses
{
"mappingRules": [
{
"id": 0,
"mappingGroupGuid": "4ef64a1e-55da-4071-8168-d3387d99035d",
"type": "LIKE",
"source": "",
"target": "",
"position": 0,
"conditions": {
"combinator": "AND",
"rules": [
{
"combinator": "AND",
"rules": [
{
"field": "name",
"operator": "NULL",
"value": [
"Monthly Audit"
]
}
]
}
]
}
}
],
"errors": [
{
"error": "",
"lineNumber": null
}
]
}