Last modified by Rayaan Ahmed on 2025/02/09 22:20

From version 10.4
edited by Rayaan Ahmed
on 2024/02/29 16:01
Change comment: (Autosaved)
To version 10.5
edited by Rayaan Ahmed
on 2024/02/29 16:06
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -13398,7 +13398,7 @@
13398 13398  
13399 13399  {{code language="yml" title="Body"}}
13400 13400  {"Metrics":[
13401 - {"Attendance Status":[{"text":"check's","value":"check's"},{"text":"c","value":"c"}]},
13401 + {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]},
13402 13402   {"lagacy status":[{"text":"c","value":"c"}]}
13403 13403   ]}
13404 13404  {{/code}}
... ... @@ -13409,7 +13409,7 @@
13409 13409  
13410 13410  (% style="color:#6b6b6b" %)Request
13411 13411  
13412 -{{code language="php" title="Update Engagement Request"}}
13412 +{{code language="php" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}}
13413 13413   <?php
13414 13414  
13415 13415  $curl = curl_init();
... ... @@ -13423,9 +13423,9 @@
13423 13423   CURLOPT_FOLLOWLOCATION => true,
13424 13424   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13425 13425   CURLOPT_CUSTOMREQUEST => 'PUT',
13426 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[
13427 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13428 - {"Price":[],"Type": "text"}
13426 + CURLOPT_POSTFIELDS =>'{"Metrics":[
13427 + {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]},
13428 + {"lagacy status":[{"text":"c","value":"c"}]}
13429 13429   ]}',
13430 13430   CURLOPT_HTTPHEADER => array(
13431 13431   'Appkey: {{ONECOUNT API KEY}}',