Skip to main content
Matrix42 Self-Service Help Center

Fragments Data Service: Create Fragment

Details

Creates a new Data Definition fragment. The operation is required for cases of multi-fragments or optional fragments.

Request

URL

POST https://{server_domain}/m24Services/api/data/fragments/{ddname}

URL Attributes  

Element Description Type Required
ddName Technical name of the Data Definition (e.g. SPSRatingSummaryClassBase) string Required

Headers 

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

 POST body 

Element Description Type Required

fragmentData

Request Body with a JSON containing all necessary data for Fragment creation.

For JSON  structure examples see  Fragments Data Service: Get Fragment page.

JSON Required

 Sample Request 

POST https://{server_domain}/m24Services/api/data/fragments/{ddname}

Authorization: Bearer YWsamplezhZARaccessGDuctoken2sYW1

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

Explicit-Language: en

 {

"requiredDDElements": "value"

}

Response 

Element Description Type
GuidType Id of the created Fragment. GUID

Sample Response 

 

Status codes and errors  

The following table lists the returned HTTP status codes.

Code Description
   
   

 

  • Was this article helpful?