<h2>API - recalculate CDS (config data set)</h2><br/><div style="overflow-x:auto"><p style="margin: 16.3pt 0cm 0cm; background: white; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 10pt;"><strong><span style="color: black;">Recalculate Config Data Sets</span></strong></span></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: verdana, geneva; color: black;">The below endpoint can be used to recalculate the config data set which is approved with snapshot. The config data set id (cdsId) which requires recalculation should be passed in the API call.</span></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 8pt; font-family: verdana, geneva; color: black;">Where to find the cdsId?</span></strong></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: verdana, geneva; color: black;">Once logged in to the sweagle tenant, click on the "Config data sets" section from the menu. Select the config data set which requires recalculation.</span></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: verdana, geneva; color: black;">The config data set id can be found in browser URL as highlighted in the below screenshot</span></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: verdana, geneva; color: black;"><img style="display: block; margin-left: auto; margin-right: auto;" title="" src="sys_attachment.do?sys_id=ca32b7941b09a8106531ea89bd4bcb7d" alt="" width="631" height="251" align="baseline" border="" hspace="" vspace="" /></span></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <h2 style="margin-right: 0cm; margin-left: 0cm; font-size: 18pt; font-family: 'Times New Roman', serif; font-weight: bold;"><span style="font-size: 8pt; font-family: verdana, geneva;">Endpoint</span></h2> <table class="MsoNormalTable" style="height: 36px; width: 0%; margin-left: -0.4pt; border-collapse: collapse; border: solid #000000; border-style: none; border-color: #000000;" border="1" cellspacing="0" cellpadding="0"><tbody><tr style="height: 18px;"><td style="width: 9.8%; background: #61bd6d; padding: 0cm; height: 18px;"> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;"><strong><span style="color: white;">method</span></strong></span></p> </td><td style="width: 90.2%; padding: 0cm; height: 18px;"> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;">POST</span></p> </td></tr><tr style="height: 18px;"><td style="width: 9.8%; background: #61bd6d; padding: 0cm; height: 18px;"> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;"><strong><span style="color: white;">URI</span></strong></span></p> </td><td style="width: 90.2%; padding: 0cm; height: 18px;"> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;">/api/v1/data/include/cdsId/recalculate</span></p> </td></tr></tbody></table> <p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-family: verdana, geneva; font-size: 8pt;"><u>headers</u></span></p> <table class="MsoNormalTable" style="height: 18px; width: 0%; margin-left: -0.4pt; border-collapse: collapse; border: none; border-color: #000000;" border="1" cellspacing="0" cellpadding="0"><tbody><tr style="height: 18px;"><td style="width: 1.04%; padding: 0cm; height: 18px;"> <p style="text-align: center; margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;">!</span></p> </td><td style="width: 15.8%; padding: 0cm; height: 18px;"> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;"> Authorization</span></p> </td><td style="width: 31.06%; padding: 0cm; height: 18px;"> <p style="text-align: center; margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt;">Bearer <userToken or APIkey></span></p> </td><td style="width: 52.1%; padding: 0cm; height: 18px;"><br /></td></tr></tbody></table> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-family: verdana, geneva; font-size: 8pt;"><u>response</u></span></p> <p style="margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-family: verdana, geneva; font-size: 8pt;">the response is a JSON containing the details of the config data set.</span></p> <h2 style="margin-right: 0cm; margin-left: 0cm; font-size: 18pt; font-family: 'Times New Roman', serif; font-weight: bold;"><span style="font-family: verdana, geneva; font-size: 8pt;">Example cURL</span></h2> <table class="MsoTableGrid" style="border-collapse: collapse; border: none; height: 36px;" border="1" width="993" cellspacing="0" cellpadding="0"><tbody><tr><td style="width: 976.625px; border: 1pt solid windowtext; padding: 0cm 5.4pt;" valign="top"> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><span style="font-family: verdana, geneva; font-size: 8pt; color: #000000;"><span style="background: white;">curl --request </span><span style="background: white;">POST</span><span style="background: white;"> 'https://</span><span style="background: white;">tenantName</span><span style="background: white;">.sweagle.com/api/v1/data/include/123456/recalculate’ --header 'Authorization: bearer Xeb940d3-ea37-4766-bb6c-f0b83deafb6</span><span style="background: white;">f</span><span style="background: white;">'</span></span></p> </td></tr></tbody></table> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p> <p style="margin: 0cm; font-size: 12pt; font-family: Calibri, sans-serif;"><br /></p></div>