Changes for page OLD-ONEcount API Documentation
Last modified by Admin on 2025/06/27 12:14
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Admin1 +XWiki.mikef - Content
-
... ... @@ -2,7 +2,7 @@ 2 2 **Introduction** 3 3 4 4 (% class="western" %) 5 -ONEcount REST API is designed to allow you to directly manipulate the underlying data within the ONEcount application. This API can be used to lookup, create and update ddifferent ONEcount data components which are listed below.5 +ONEcount REST API is designed to allow you to directly manipulate the underlying data within the ONEcount application. This API can be used to lookup, create and update different ONEcount data components which are listed below. 6 6 7 7 (% class="western" %) 8 8 REST takes advantage of the HTTP request methods to layer itself into the existing HTTP architecture. These operations consist of the following: ... ... @@ -249,6 +249,7 @@ 249 249 250 250 251 251 252 +(% class="wrapped" %) 252 252 |((( 253 253 (% class="western" %) 254 254 **Method** ... ... @@ -368,6 +368,7 @@ 368 368 (% class="western" %) 369 369 **GET method should be used to lookup users.** 370 370 372 +(% class="wrapped" %) 371 371 |((( 372 372 (% class="western" %) 373 373 **Request** ... ... @@ -399,6 +399,7 @@ 399 399 400 400 401 401 404 +(% class="wrapped" %) 402 402 |((( 403 403 (% class="western" %) 404 404 **Response** ... ... @@ -425,6 +425,7 @@ 425 425 (% class="western" %) 426 426 **POST method should be used to create users.** 427 427 431 +(% class="wrapped" %) 428 428 |((( 429 429 (% class="western" %) 430 430 **Request** ... ... @@ -476,6 +476,7 @@ 476 476 CSV of ONEcount QuestionId's requested back in Users object in response. 477 477 ))) 478 478 483 +(% class="wrapped" %) 479 479 |((( 480 480 (% class="western" %) 481 481 **Response** ... ... @@ -502,6 +502,7 @@ 502 502 (% class="western" %) 503 503 **PUT method should be used to update users.** 504 504 510 +(% class="wrapped" %) 505 505 |((( 506 506 (% class="western" %) 507 507 **Request** ... ... @@ -543,6 +543,7 @@ 543 543 RequestDate to use for the demo update. If not provided current date will be used. 544 544 ))) 545 545 552 +(% class="wrapped" %) 546 546 |((( 547 547 (% class="western" %) 548 548 **Response** ... ... @@ -935,7 +935,7 @@ 935 935 } 936 936 937 937 (% class="western" %) 938 - \\945 + 939 939 940 940 (% class="western" %) 941 941 **COMPONENT: Products** ... ... @@ -1608,6 +1608,9 @@ 1608 1608 1609 1609 (% class="western" %) 1610 1610 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 1618 + 1619 +(% class="western" %) 1620 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1611 1611 ))) 1612 1612 1613 1613 (% class="wrapped" %) ... ... @@ -1666,6 +1666,9 @@ 1666 1666 1667 1667 (% class="western" %) 1668 1668 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 1679 + 1680 +(% class="western" %) 1681 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1669 1669 ))) 1670 1670 1671 1671 (% class="wrapped" %) ... ... @@ -2949,14 +2949,30 @@ 2949 2949 )))|((( 2950 2950 (% class="western" %) 2951 2951 String 2965 + 2966 +(% class="western" %) 2967 +or 2968 + 2969 +(% class="western" %) 2970 +Array 2952 2952 )))|((( 2953 2953 (% class="western" %) 2954 -Value of Resource Type .2973 +Value of Resource Type: 2955 2955 2956 2956 (% class="western" %) 2957 - Example:ifthe Type sent is3thenValuewouldbe**/digital/**2976 +When requesting a resource (GET), you should expect a string if there is only one value. If there are multiple values, you should expect an array. 2958 2958 2959 2959 (% class="western" %) 2979 +For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests. 2980 + 2981 +(% class="western" %) 2982 +Example : 2983 + 2984 +(% class="western" %) 2985 +if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].** ** 2986 +**if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 2987 + 2988 +(% class="western" %) 2960 2960 For Function type resource leave it blank. 2961 2961 ))) 2962 2962 |(((
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -353901 01 +3539018 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/353901 0/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/3539018/ONEcount API Documentation