/rdm-service/external/v2/codelists/{codeListKey}/codevalues
Parameter | Type | Description |
---|---|---|
codeListKey | String | Internal ID or alias of the code list that contains the code values to
delete. |
Field | Type | Description |
---|---|---|
action | String | Action to perform on code values. Set to DELETE . |
records | Array | List of code values to delete. You can delete 50
code values at a time. |
Code | String | The code field for the code value. |
Field
| Type
| Description
|
---|---|---|
successfulRecords | Array | An array that lists the code values that were deleted successfully. |
Code
| String
| Code attribute value for deleted code value.
|
label | String
| Display attribute value for deleted code value.
|
failedRecords | Array | An array that lists the code values that weren't deleted and describes
the reasons. |
Code
| String
| Code attribute value for the code value.
|
label
| String
| Display attribute value for the code value.
|
errorCauses | - | Error details for the code values that weren't
deleted. |
errorCode
| String
| Error code for the error type.
|
errorSummary
| String
| Explains why the code value wasn't deleted. |
localizedErrorSummary | String | A short summary that explains the error in the
user locale. |
errorParameter | String | Parameter that provides details of an error.
|
successfulRecordsCount | String | Number of code values that were deleted
successfully. |
failedRecordsCount | String | Number of code values that weren't deleted.
|
PATCH https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v2/codelists/country/codevalues HTTP/1.1 Content-Type: application/json Content-Length: 30 IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX { "action": "DELETE", "records": [ { "Code": "CODE-A" } ] } }
HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: 34 { "successfulRecords": [ { "Code": "CODE-A" } ], "failedRecords": [], "successfulRecordsCount": 1, "failedRecordsCount": 0 }