Changes for page ONEcount API Documentation
Last modified by Rayaan Ahmed on 2025/02/09 22:20
From version 11.1
edited by Rayaan Ahmed
on 2024/02/29 16:10
on 2024/02/29 16:10
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -13398,7 +13398,7 @@ 13398 13398 13399 13399 {{code language="yml" title="Body"}} 13400 13400 {"Metrics":[ 13401 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13401 + {"Attendance Status":[{"text":"check's","value":"check's"},{"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=" (% class=~"documentation-core-item-request-namejbmEtYsc-fzomuh~" style=~"color:#212121~" %)Add optionso metric"}}13412 +{{code language="php" title="Update Engagement Request"}} 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 =>'{"Metrics":[ 13427 - {"Attendance Status":[{"text":" checks","value":"checks"},{"text":"c","value":"c"}]},13428 - {" lagacy status":[{"text":"c","value":"c"}]}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"} 13429 13429 ]}', 13430 13430 CURLOPT_HTTPHEADER => array( 13431 13431 'Appkey: {{ONECOUNT API KEY}}', ... ... @@ -13443,7 +13443,7 @@ 13443 13443 13444 13444 (% style="color:#6b6b6b" %)Response 200 OK 13445 13445 13446 -{{code language="yml" t itle="(%class=~"documentation-core-item-request-namejbmEtYsc-fzomuh~" style=~"color:#212121~" %)Add optionsto metric"}}13446 +{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13447 13447 { 13448 13448 "result": { 13449 13449 "success": "1", ... ... @@ -13468,14 +13468,6 @@ 13468 13468 { 13469 13469 "text": "Not Attended", 13470 13470 "value": "not_attended" 13471 - }, 13472 - { 13473 - "text":"checks", 13474 - "value":"checks" 13475 - }, 13476 - { 13477 - "text":"c", 13478 - "value":"c" 13479 13479 } 13480 13480 ] 13481 13481 },