Table of Contents

Search

  1. Preface
  2. Introduction to Informatica MDM - Relate 360
  3. Linking Batch Data
  4. Tokenizing Batch Data
  5. Processing Streaming Data
  6. Creating Relationship Graph
  7. Loading Linked and Consolidated Data into Hive
  8. Searching Data
  9. Monitoring the Batch Jobs
  10. Troubleshooting
  11. Glossary

User Guide

User Guide

Create Relationship Web Service

Create Relationship Web Service

The Create Relationship web service creates relationship between two records.

Request URL

Use the POST method to run the Create Relationship web service.
To run the Create Relationship web service, use the following URL format:
http://<Host>:<Port>/<WAR File Name>/<Version Number>/<Configuration File Identifier>/CREATERELATIONSHIP
For example:
http://localhost:8080/MDMBDRMSYS/
v5.0
/SYS/CREATERELATIONSHIP

Request Header

Use the request header to specify the following headers:
Token
Required if you secure the RESTful web services. Authentication token that the Authenticate web service returns. If the token is not valid or you do not specify the
Token
header, the web service request uses the
Authorization
header.
Authorization
Required if you have secured the RESTful web services, but optional if you specify the
Token
header.
Type of authentication and the user credentials in the Base64 format. The RESTful web services use the HTTP basic authentication. Use the following format to specify the value for the
Authorization
header:
Basic <Encoded User Credentials>
Basic
indicates the HTTP basic authentication, and
Encoded User Credentials
indicates the Base64 format of the user name and password separated by a colon. For example,
Authorization: Basic dGVzdDpUZXN0
Accept
Format of the response. The supported response format is JSON. Specify
application/json
as the header value.

Request Body

Use the request body to specify the records that you want to relate.
To specify the business entity type, use the following request body format:
{ "input":{ "startEntitySource":"<Source Column 1>", "startEntityId":"<Primary Key Column 1>", "startEntityType":"<Entity Type 1>", "targetEntitySource":"<Source Column 2>", "targetEntityId":"<Primary Key Column 2>", "targetEntityType":"<Entity Type 2>", "relationship":"<Relationship Name>" } }
The request body format uses the following parameters:
Source Column 1, 2
Source name of the input records.
Primary Key Column 1, 2
Primary key column value of the input records.
Entity Type 1, 2
Name of the business entity types to which the input records belong.
Number of Records
Optional. Maximum number of related records that you want to retrieve. Default is 500.
Number of Child Levels
Optional. Maximum number of child levels to include in the response. Default is 5.
Relationship Name
Name of the relationship that you want to create.
The following sample request body specifies the records that you want to relate:
{ "input":{ "startEntitySource":"CRM", "startEntityId":"10000003", "startEntityType":"Customer", "targetEntitySource":"SAP", "targetEntityId":"60000026", "targetEntityType":"Product", "relationship":"Owns" } }

Sample Response

The following sample response shows the relationship created between two records:
{ "input": { "relationship": "Duplicate", "targetEntitySource": "CRM", "startEntityType": "Customer", "startEntitySource": "CRM", "targetEntityId": "10000006", "targetEntityType": "Customer", "startEntityId": "10000000" }, "debug": false, "resultCount": 0, "messages": { "INFO": "Relationship created successfully" } }

0 COMMENTS

We’d like to hear from you!