Difference between revisions of "User: JenkinsSBO"

From Genesys Documentation
Jump to: navigation, search
Line 1: Line 1:
 +
 +
== APIs ==
 
{{YAML
 
{{YAML
 
   |id=
 
   |id=
yaml-32-2
+
yaml-23-0
 
  |method=
 
  |method=
DELETE
+
POST
 
  |content=
 
  |content=
  
 
  |path=
 
  |path=
/agents
+
/ab_testing/join
 
|parameters=
 
|parameters=
 
{{{!}}  
 
{{{!}}  
! Name
+
!width="10%"{{!}} Name
! Located in
+
!width="27%"{{!}} Located in
! Description
+
!width="29%"{{!}} Description
! Required
+
!width="21%"{{!}} Required
! Schema
+
!width="10%"{{!}} Schema
 
{{!}}-  
 
{{!}}-  
 
{{!}} json
 
{{!}} json
 
{{!}} body
 
{{!}} body
{{!}} A valid JSON containing '''''token''''' '''id'''
+
{{!}} A valid JSON containing the following parameters: '''token''', '''prrPredictor''', '''from_date''' (optional), '''to_date''' (optional). For additional details, see the schema definition.
 
{{!}} Yes
 
{{!}} Yes
{{!}} object
+
{{!}} [[#predictorabtestrequest|PredictorABTestRequest]]
 
{{!}}}
 
{{!}}}
|summary=Delete agent record.
+
|summary=A/B Test predictor
 
|description=
 
|description=
A DELETE rest endpoint to delete agent records.
+
A POST REST endpoint to join A/B test predictor.
  
<pre>curl -X DELETE \\
+
<pre>curl -X POST
'https://app.journeyoptimization.com/api/v2.0/agents' \\
+
  'https://app.journeyoptimization.com/api/v2.0/ab_testing/join'
-H 'Content-Type: application/json' \\
+
  -H 'Content-Type: application/json'
-d '{
+
  -d '{
 +
    &quot;prrPredictor&quot;: &quot;P1&quot;,
 
     &quot;token&quot;: &quot;token&quot;,
 
     &quot;token&quot;: &quot;token&quot;,
     &quot;id&quot;: &quot;ID1&quot;
+
     &quot;from_date&quot;: &quot;11/11/2011&quot;,
}'</pre>
+
    &quot;to_date&quot;: &quot;12/12/2012&quot;
 +
  }'</pre>
 
|responses=
 
|responses=
{{{!}}  
+
{
 +
{{!}}  
 
! Code
 
! Code
 
! Description
 
! Description
{{!}}}  
+
! Schema
 +
 
 +
{{!}}-
 +
 
 +
 
 +
{{!}} 200
 +
{{!}} The job result to join A/B data.
 +
 
 +
'''Example''' (''JSON response''):
  
{{!}} 200 {{!}} A JSON response is returned. Refer below examples.<br><br>'''Example''' (''JSON response''):<br>
+
<pre>{
<pre>{<br>  "ok": true,<br>  "removed_count": 1<br>}</pre>
+
  "ok": true,
 +
  "message": "Job to join A/B data started successfully."
 +
}</pre>
 +
 
 +
{{!}} object
 
{{!}}
 
{{!}}
 +
{{!}}}
 
|security=
 
|security=
  
 
}}
 
}}

Revision as of 08:23, October 7, 2020

APIs[ | edit source]

POST /ab_testing/join

A/B Test predictor

Description

A POST REST endpoint to join A/B test predictor.

curl -X POST
  'https://app.journeyoptimization.com/api/v2.0/ab_testing/join'
  -H 'Content-Type: application/json'
  -d '{
    "prrPredictor": "P1",
    "token": "token",
    "from_date": "11/11/2011",
    "to_date": "12/12/2012"
  }'

Parameters[edit source]

Name Located in Description Required Schema
json body A valid JSON containing the following parameters: token, prrPredictor, from_date (optional), to_date (optional). For additional details, see the schema definition. Yes PredictorABTestRequest

Responses

{ | ! Code ! Description ! Schema

|-


| 200 | The job result to join A/B data.

Example (JSON response):

{
  "ok": true,
  "message": "Job to join A/B data started successfully."
}

| object | |}

 
Retrieved from "https://all.docs.genesys.com/User:JenkinsSBO (2025-06-19 14:09:17)"