Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. Enterprise Java Bean Business Entity Service Calls
  4. Representational State Transfer Business Entity Service Calls
  5. Simple Object Access Protocol Business Entity Service Calls
  6. Services for Cross-reference Records and BVT Calculations
  7. Supporting Corporate Linkage Service
  8. External Calls to Cleanse, Analyze, and Transform Data
  9. Appendix A: Using REST APIs to Add Records
  10. Appendix B: Using REST APIs to Upload Files
  11. Appendix C: Using REST APIs to Manage Reports

Step 2. Create a Record

Step 2. Create a Record

Use the Create Record REST API to create a record. The name of the business entity and the name of the source system are required parameters. Send data for the record in the request body.
The Create Record URL has the following format:
http://<host>:<port>/<context>/<database ID>/<business entity>?systemName=<name of the source system>
The
systemName
parameter is a required parameter and specifies the name of the source system.
The Person business entity has the Person root node, and the second level address, gender, and phone nodes.
The following sample request creates a Person record:
POST http://localhost:8080/cmx/cs/localhost-hub101-ds_ui1/Person?systemName=Admin { "firstName": "Boris", "lastName": "Isaac", "genderCd": { "genderCode": "M" }, "Address": { "item": [ { "Address": { "addressLine1": "B-203, 101 Avenue, New York", "stateCd": { "stateAbbreviation": "NY" }, "countryCode": { "countryCode": "US" } } } ] }, "Telephone": { "item": [ { "phoneNum": "1234567", "phoneTypeCd": { "phoneType": "HOM" } }, { "phoneNum": "7654321", "phoneTypeCd": { "phoneType": "MOB" } } ] } }
The request body specifies the following details of the Person record:
  • First name.
  • Last name.
  • Gender.
  • Address with the state code and the country code.
  • Phone numbers along with the phone type, such as home phone and mobile phone.

0 COMMENTS

We’d like to hear from you!