DELETE InputFields -> Deleting input fields
Explains how to use the DELETE method to delete input fields from the repository.
Calling this method allows to delete input fields from the repository.
To delete, the key values of the object to be deleted must be saved in a file in JSON format, and this file is then sent in the request data. The names of the field values correspond to the field names in repository table “InputFields”, and are not case sensitive.
The individual input field objects are embedded within the JSON array “InputFields”, this identifier is also not case sensitive.
{
"InputFields": [
{"GroupId": "DEFAULT",
"SourceType": "ADABAS",
"SourceName": "00010.00010",
"FieldSequence": 1,
"FieldName": "ISN",
"ValidFrom": "0000-00-00-00.00.00.000000",
"ValidUntil": "9999-99-99-99.99.99.999999"
}
]
}This file is then passed in the call.
{"UpdateSequenceNumbers":true,"Input fields deleted":[
{"GroupId":"DEFAULT","SourceType":"ADABAS","SourceName":"00010.00010","FieldSequence":1,"FieldName":"ISN","ValidFrom":"0000-00-00-00.00.00.000000","ValidUntil":"9999-99-99-99.99.99.999999"}
]}curl -d @data.json -H "@auth" -iX DELETE "http://127.0.0.1:8080/InputFields"{
"InputFields": [
{"GroupId": "DEFAULT",
"SourceType": "ADABAS",
"SourceName": "00010.00010",
"FieldSequence": 2,
"FieldName": "ADABAS_AA",
"ValidFrom": "0000-00-00-00.00.00.000000",
"ValidUntil": "9999-99-99-99.99.99.999999"
},
{"GroupId": "DEFAULT",
"SourceType": "ADABAS",
"SourceName": "00010.00010",
"FieldSequence": 1,
"FieldName": "ISN",
"ValidFrom": "0000-00-00-00.00.00.000000",
"ValidUntil": "9999-99-99-99.99.99.999999"
}
]
}This file is then passed in the call.
curl -d @data.json -H "@auth" -iX DELETE "http://127.0.0.1:8080/InputFields"
HTTP/1.1 200 OK
{"UpdateSequenceNumbers":true,"Input fields deleted":[
{"GroupId":"DEFAULT","SourceType":"ADABAS","SourceName":"00010.00010","FieldSequence":2,"FieldName":"ADABAS_AA","ValidFrom":"0000-00-00-00.00.00.000000","ValidUntil":"9999-99-99-99.99.99.999999"},
{"GroupId":"DEFAULT","SourceType":"ADABAS","SourceName":"00010.00010","FieldSequence":1,"FieldName":"ISN","ValidFrom":"0000-00-00-00.00.00.000000","ValidUntil":"9999-99-99-99.99.99.999999"}
]}