Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Introducing Reference 360
  3. Getting started with Reference 360
  4. Manage system reference data
  5. Manage reference data sets
  6. Manage code lists
  7. Manage code values
  8. Manage crosswalks
  9. Import data
  10. Manage hierarchies
  11. Manage attributes
  12. Manage workflows
  13. Manage jobs
  14. Monitor Reference 360
  15. Reference 360 REST API
  16. Glossary

Reference 360

Reference 360

Update system reference data values

Update system reference data values

Updates the values of the system reference data.

PATCH request

To update the values of the system reference data, submit a PATCH request with the following URI:
/rdm-service/external/v1/enums
The following table describes the parameter in the request:
Parameter
Description
Overwrite
Optional. Indicates whether to update the existing system reference data values with same keys. Value is
true
or
false
. Default is
false
.
The following table describes the attributes in the request:
Field
Type
Description
key
String
ID of the system reference data value.
In Reference 360, when you sort assets in the
Explore
panel by priority, the assets are sorted based on the key value.
When you import code values, you can provide additional information about the data. For example, you can assign a code value to the Approved status. You can use the key value to assign the appropriate system reference data value.
label
String
Label for the system reference data value.
In Reference 360, the values appear in alphanumeric order based on the label.

PATCH response

The response shows the number of values updated.
The following table describes the attributes in the response:
Field
Type
Description
newEntries
Number
Number of values added.
existingEntries
Number
Number of existing values that are skipped.
updatedEntries
Number
Number of existing values that are updated.

PATCH example

To update values of the system reference data, you can use the following request:
PATCH https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v1/enums?overwrite=true HTTP/1.1 Content-Type: application/json Host: localhost:8080 Content-Length: 368 { "Priority":[ { "key":"0", "label":"Low" }, { "key":"1", "label":"Medium" }, { "key":"2", "label":"High" }, { "key":"9", "label":"Critical" } ], "Domain":[ { "key":"0", "label":"Finance" }, { "key":"1", "label":"Geography" }, { "key":"2", "label":"Social" } ] }
The following sample response shows the number of values updated:
HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: 71 { "newEntries":1, "existingEntries":4, "updatedEntries":2 }

0 COMMENTS

We’d like to hear from you!