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. Reference 360 REST API
  15. Glossary

Reference 360

Reference 360

Export code values to JSON format

Export code values to JSON format

Exports the code values in a code list to the JSON format.

POST request

To export code values in a code list, submit a POST request with the following URI:
/rdm-service/external/v2/export
In the request header, you must specify the
Accept
attribute to
application/json
.
Use the following parameters in the request body to specify the code list to export:
Field
Type
Description
dateFormat
String
Format used for dates. Use one of the following formats:
  • DE
    . For dd.mm.yyyy format.
  • ISO
    . For yyyy-mm-dd format.
  • US
    . For mm/dd/yyyy format.
containerType
String
Type of asset that contains code values. Value must be
codelist
.
containerId
String
The ID of the code list.
You can find the ID of assets in
Reference 360
or use REST APIs to retrieve the IDs. For more information, see Asset IDs.
filter
Object
Optional. Filter criteria for exporting filtered code values. For more information, see Filter criteria for export version 2 and 3.

POST response

The response is in JSON format.

POST example

To export the code values in a code list, you might use the following request:
POST https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v2/export HTTP/1.1 Content-Type: application/json Accept: application/json IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX { "dateFormat":"ISO", "containerType":"codelist", "containerId":"1c03a6555058fdd134f7f417", "filter":{ "_and":[ { "Name":{ "_eq":"ABC University" } } ] } }
The following sample response shows the exported data in JSON format:
HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: 292 { "content":[ { "Code":"UNIVERSITY-001", "children":[ { "Code":"STUDENT-1001", "fields":{ "Code":"STUDENT-1001", "Name":"BKImL" } } ], "fields":{ "Code":"UNIVERSITY-001", "Name":"ABC University" } } ] }

0 COMMENTS

We’d like to hear from you!