Skip to main content
Matrix42 Self-Service Help Center

Fragments Data Service: Add Fragment Relation


Adds relation to the Database defined by Data Definition name, fragment ID and Relation name.

The operation is required for managing many-to-many relations. 

The operation adds a single object to relation. If you need to add multiple relations to the object, you need to make a call of the Service for each of them



POST https://{server_domain}/m42Services/api/data/fragments/{ddname}/{fragmentid}/{relationname}/{relationfragmentid}

URL Attributes  

Element Description Type Required
ddName Technical name of the Data Definition (e.g. SPSRatingSummaryClassBase) string Required
fragmentId Id of the specified Data Definition's fragment. GUID Required
relationName Technical name of the relation (e.g. AttachedUsers). string Required
relationFragmentId Id of the Data Definition's fragment that is added as a relation. GUID Required


For a list of available HTTP request headers see Web Services: REST API integration.

 POST body 

The request doesn't have body message.

 Sample Request 

POST https://{server_domain}/m42Services/api/data/fragments/SPSActivityClassBase/2A810BC4-9745-E911-20A7-0C9D921BFEDC/AttachedUsers/93012973-64df-4b19-8e76-f3801d74932b

 Authorization: BearerYWsamplezhZARaccessGDuctoken2sYW1

Content-Type: application/json;charset=UTF-8



The server does not return any response.

Status codes and errors  

The following table lists the returned HTTP status codes.

Code Description


  • Was this article helpful?