github.com/grokify/go-ringcentral-client@v0.3.31/codegen/specs-engagedigital_v3.0.0/openapi-spec_tasks.json (about)

     1  {
     2      "openapi":"3.0.0",
     3      "info":{
     4        "description":"",
     5        "version":"1.0",
     6        "title":"Engage Digital API",
     7        "termsOfService":"https://developer.ringcentral.com"
     8      },
     9      "tags":[
    10        {
    11          "name":"Tasks"
    12        }
    13      ],
    14      "paths":{
    15        "/tasks":{
    16          "get":{
    17            "tags":[
    18              "Tasks"
    19            ],
    20            "summary":"Getting all tasks",
    21            "operationId":"getAllTasks",
    22            "description":"This method renders tasks ordered by priority (highest first) and then by creation date (latest first).\n\nAuthorization​: only users that can read tasks.",
    23            "parameters":[
    24              {
    25                "name":"queue",
    26                "in":"query",
    27                "description":"To filter tasks on given queue name (filters on the “global” queue by default).The most commonly used queues are: “global” (contains every task pending assignation), “workbin_{agent_id}” (contains every tasks assigned to the {agent_id} agent, “history” (contains every processed tasks), and “undelivered” (contains every undelivered tasks). If queue is set to “workbins” all the tasks currently in a workbin will be returned.",
    28                "required":false,
    29                "schema":{
    30                  "type":"string"
    31                }
    32              },
    33              {
    34                "name":"channel_id",
    35                "in":"query",
    36                "description":"To filter tasks on given channel id.",
    37                "required":false,
    38                "schema":{
    39                  "type":"string"
    40                }
    41              },
    42              {
    43                "name":"step",
    44                "in":"query",
    45                "description":"To filter tasks on the step they’re currently in.",
    46                "required":false,
    47                "schema":{
    48                  "type":"string"
    49                }
    50              },
    51              {
    52                "name":"offset",
    53                "in":"query",
    54                "description":"The record index to start. Default value is 0.",
    55                "required":false,
    56                "schema":{
    57                  "type":"integer",
    58                  "format":"int32"
    59                }
    60              },
    61              {
    62                "name":"limit",
    63                "in":"query",
    64                "description":"The max number of records to return. Default value is 30, max value is 150.",
    65                "required":false,
    66                "schema":{
    67                  "type":"integer",
    68                  "format":"int32"
    69                }
    70              }
    71            ],
    72            "responses":{
    73              "200":{
    74                "description":"Success",
    75                "content":{
    76                  "application/json":{
    77                    "schema":{
    78                      "$ref":"#/components/schemas/GetAllTasksResponse"
    79                    }
    80                  }
    81                }
    82              }
    83            }
    84          }
    85        },
    86        "/tasks/{taskId}":{
    87          "get":{
    88            "tags":[
    89              "Tasks"
    90            ],
    91            "summary":"Getting a task from its id",
    92            "operationId":"getTask",
    93            "description":"This method renders a task from given id.",
    94            "parameters":[
    95              {
    96                "name":"taskId",
    97                "in":"path",
    98                "required":true,
    99                "schema":{
   100                  "type":"string"
   101                }
   102              }
   103            ],
   104            "responses":{
   105              "200":{
   106                "description":"Success",
   107                "content":{
   108                  "application/json":{
   109                    "schema":{
   110                      "$ref":"#/components/schemas/Task"
   111                    }
   112                  }
   113                }
   114              }
   115            }
   116          }
   117        },
   118        "/tasks/{taskId}/transfer":{
   119          "put":{
   120            "tags":[
   121              "Tasks"
   122            ],
   123            "summary":"Transferring a task",
   124            "operationId":"transferTask",
   125            "description":"This method transfers an existing task and renders it in case of success.\n\nAuthorization​: only users that have the right to monitor the task view.",
   126            "parameters":[
   127              {
   128                "name":"taskId",
   129                "in":"path",
   130                "required":true,
   131                "schema":{
   132                  "type":"string"
   133                }
   134              },
   135              {
   136                "name":"agent_ids",
   137                "in":"query",
   138                "required":false,
   139                "explode":true,
   140                "description":"List of agents to transfer the task to (multiple).",
   141                "schema":{
   142                  "type":"array",
   143                  "items":{
   144                    "type":"string"
   145                  }
   146                }
   147              },
   148              {
   149                "name":"bypass",
   150                "in":"query",
   151                "required":false,
   152                "description":"Force the transfer to the first agent in agent_ids if set. When bypass is used,",
   153                "schema":{
   154                  "type":"string"
   155                }
   156              },
   157              {
   158                "name":"category_ids",
   159                "in":"query",
   160                "required":false,
   161                "explode":true,
   162                "description":"Filter agents receiving the task depending on their categories.",
   163                "schema":{
   164                  "type":"array",
   165                  "items":{
   166                    "type":"string"
   167                  }
   168                }
   169              },
   170              {
   171                "name":"language",
   172                "in":"query",
   173                "required":false,
   174                "description":"Filter agents receiving the task depending on their spoken languages.",
   175                "schema":{
   176                  "type":"string"
   177                }
   178              },
   179              {
   180                "name":"team_ids",
   181                "in":"query",
   182                "required":false,
   183                "explode":true,
   184                "description":"Filter agents receiving the task depending on their teams.",
   185                "schema":{
   186                  "type":"array",
   187                  "items":{
   188                    "type":"string"
   189                  }
   190                }
   191              },
   192              {
   193                "name":"comment",
   194                "in":"query",
   195                "required":false,
   196                "description":"Add a comment to the task.",
   197                "schema":{
   198                  "type":"string"
   199                }
   200              }
   201            ],
   202            "responses":{
   203              "200":{
   204                "description":"Success",
   205                "content":{
   206                  "application/json":{
   207                    "schema":{
   208                      "$ref":"#/components/schemas/Task"
   209                    }
   210                  }
   211                }
   212              }
   213            }
   214          }
   215        },
   216        "/tasks/{taskId}/move":{
   217          "delete":{
   218            "tags":[
   219              "Tasks"
   220            ],
   221            "summary":"Move a task to another queue",
   222            "operationId":"moveTask",
   223            "description":"This method changes a task queue and renders it in case of success. Only accepts “undelivered” and special queue defined in topology (e.g. triage).\n\nAuthorization​: only users that have the right to monitor the task view.",
   224            "parameters":[
   225              {
   226                "name":"taskId",
   227                "in":"path",
   228                "required":true,
   229                "schema":{
   230                  "type":"string"
   231                }
   232              },
   233              {
   234                "name":"queue",
   235                "in":"query",
   236                "required":true,
   237                "description":"Name of the queue task has to be moved in.",
   238                "schema":{
   239                  "type":"string"
   240                }
   241              }
   242            ],
   243            "responses":{
   244              "200":{
   245                "description":"Success",
   246                "content":{
   247                  "application/json":{
   248                    "schema":{
   249                      "$ref":"#/components/schemas/Task"
   250                    }
   251                  }
   252                }
   253              }
   254            }
   255          }
   256        }
   257      },
   258      "servers":[
   259        {
   260          "url":"https://DOMAIN.api.engagement.dimelo.com/1.0"
   261        }
   262      ],
   263      "components":{
   264        "schemas":{
   265          "GetAllTasksResponse":{
   266            "properties":{
   267              "count":{
   268                "type":"integer",
   269                "format":"int32"
   270              },
   271              "limit":{
   272                "type":"integer",
   273                "format":"int32"
   274              },
   275              "offset":{
   276                "type":"integer",
   277                "format":"int32"
   278              },
   279              "records":{
   280                "type":"array",
   281                "items":{
   282                  "$ref":"#/components/schemas/Task"
   283                }
   284              }
   285            }
   286          },
   287          "Task":{
   288            "required":[
   289              "id"
   290            ],
   291            "properties":{
   292              "id":{
   293                "type":"string"
   294              },
   295              "created_at":{
   296                "type":"string",
   297                "format":"date-time"
   298              },
   299              "updated_at":{
   300                "type":"string",
   301                "format":"date-time"
   302              },
   303              "channel_id":{
   304                "type":"string"
   305              },
   306              "priority":{
   307                "type":"integer"
   308              },
   309              "content_id":{
   310                "type":"string"
   311              },
   312              "intervention_id":{
   313                "type":"string"
   314              },
   315              "thread_id":{
   316                "type":"string"
   317              },
   318              "agent_ids":{
   319                "type":"array",
   320                "items":{
   321                  "type":"string"
   322                }
   323              },
   324              "accepted_at":{
   325                "type":"string",
   326                "format":"date-time"
   327              },
   328              "completed_at":{
   329                "type":"string",
   330                "format":"date-time"
   331              },
   332              "expire_at":{
   333                "type":"string",
   334                "format":"date-time"
   335              },
   336              "locked_at":{
   337                "type":"string",
   338                "format":"date-time"
   339              },
   340              "transfered_at":{
   341                "type":"string",
   342                "format":"date-time"
   343              },
   344              "step":{
   345                "type":"string"
   346              }
   347            }
   348          }
   349        }
   350      }
   351    }