github.com/grokify/go-ringcentral-client@v0.3.31/codegen/specs-engagedigital_v3.0.0/openapi-spec_threads.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": "Threads"
    12      }
    13    ],
    14    "paths": {
    15      "/content_threads": {
    16        "get": {
    17          "tags": [
    18            "Threads"
    19          ],
    20          "summary": "Getting all threads",
    21          "operationId": "getAllThreads",
    22          "description": "This method renders threads ordered by last content date (descending). Only threads in sources where token’s user has “read” permission are returned.\n\nAuthorization​: no.",
    23          "parameters": [
    24              {
    25                  "name": "q",
    26                  "in": "query",
    27                  "description": "A search query to filter threads. Please refer to ​Search & filtering parameters​ for more details.",
    28                  "required": false,
    29                  "schema": {
    30                    "type": "integer",
    31                    "format": "int32"
    32                  }
    33                },
    34            {
    35              "name": "offset",
    36              "in": "query",
    37              "description": "The record index to start. Default value is 0.",
    38              "required": false,
    39              "schema": {
    40                "type": "integer",
    41                "format": "int32"
    42              }
    43            },
    44            {
    45              "name": "limit",
    46              "in": "query",
    47              "description": "The max number of records to return. Default value is 30, max value is 150.",
    48              "required": false,
    49              "schema": {
    50                "type": "integer",
    51                "format": "int32"
    52              }
    53            }
    54          ],
    55          "responses": {
    56            "200": {
    57              "description": "Success",
    58              "content": {
    59                "application/json": {
    60                  "schema": {
    61                    "$ref": "#/components/schemas/GetAllThreadsResponse"
    62                  }
    63                }
    64              }
    65            }
    66          }
    67        }
    68      },
    69      "/content_threads/{threadId}": {
    70        "get": {
    71          "tags": [
    72            "Threads"
    73          ],
    74          "summary": "Getting a thread from its id",
    75          "operationId": "getThread",
    76          "description": "This method renders a thread from given id. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned.\n\nAuthorization​: no.",
    77          "parameters": [
    78            {
    79              "name": "threadId",
    80              "in": "path",
    81              "required": true,
    82              "schema": {
    83                "type": "string"
    84              }
    85            }
    86          ],
    87          "responses": {
    88            "200": {
    89              "description": "Success",
    90              "content": {
    91                "application/json": {
    92                  "schema": {
    93                    "$ref": "#/components/schemas/Thread"
    94                  }
    95                }
    96              }
    97            }
    98          }
    99        },
   100      },
   101      "/content_threads/{threadId}/update_categories": {
   102        "put": {
   103          "tags": [
   104            "Threads"
   105          ],
   106          "summary": "Categorizing a thread",
   107          "operationId": "categorizeThread",
   108          "description": "This method updates the categories of a thread. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned.\n\nIf the thread is already being categorized, a 409 HTTP response will be returned.\n\nAuthorization​: no.",
   109          "parameters": [
   110            {
   111              "name": "threadId",
   112              "in": "path",
   113              "required": true,
   114              "schema": {
   115                "type": "string"
   116              }
   117            },
   118            {
   119              "name": "thread_category_ids[]",
   120              "description": "An array containing the new categories to set on the thread.",
   121              "in": "query",
   122              "required": false,
   123              "explode": true,
   124              "schema": {
   125                "type": "array",
   126                "items": {
   127                  "type": "string"
   128                }
   129              }
   130            }
   131          ],
   132          "responses": {
   133            "200": {
   134              "description": "Success",
   135              "content": {
   136                "application/json": {
   137                  "schema": {
   138                    "$ref": "#/components/schemas/Thread"
   139                  }
   140                }
   141              }
   142            }
   143          }
   144        }
   145      },
   146      "/content_threads/{threadId}/ignore": {
   147          "put": {
   148            "tags": [
   149              "Threads"
   150            ],
   151            "summary": "Archiving a thread",
   152            "operationId": "archiveThread",
   153            "description": "Archives the contents of a thread. If token’s user does not have “read” on thread’s source a 404 HTTP response will be returned.\n\nIf the thread is already being archived, a 409 HTTP response will be returned.\n\nAuthorization​: no.",
   154            "parameters": [
   155              {
   156                "name": "threadId",
   157                "in": "path",
   158                "required": true,
   159                "schema": {
   160                  "type": "string"
   161                }
   162              }
   163            ],
   164            "responses": {
   165              "200": {
   166                "description": "Success",
   167                "content": {
   168                  "application/json": {
   169                    "schema": {
   170                      "$ref": "#/components/schemas/Thread"
   171                    }
   172                  }
   173                }
   174              }
   175            }
   176          }
   177      },
   178      "/content_threads/{threadId}/close": {
   179        "put": {
   180          "tags": [
   181            "Threads"
   182          ],
   183          "summary": "Close a thread",
   184          "operationId": "closeThread",
   185          "description": "Thread closure/opening is only available for the following sources:\n* Emails\n* Answers\n* Ideas\n* Facebook Messenger\n* Google+\n* Lithium\n* Mobile Messaging\n\nStarts a job to close a thread. It returns the thread but as the job is asynchronous, the state of the “close” attribute in the returned object do not is the one when the job started.\n\nIf token’s user does not have “read” on thread’s source a 404 HTTP response will be returned. Returns a 403 if the thread cannot be closed or if the user does not have the permission to close a thread.\n\nAuthorization​: no.",
   186          "parameters": [
   187            {
   188              "name": "threadId",
   189              "in": "path",
   190              "required": true,
   191              "schema": {
   192                "type": "string"
   193              }
   194            }
   195          ],
   196          "responses": {
   197            "200": {
   198              "description": "Success",
   199              "content": {
   200                "application/json": {
   201                  "schema": {
   202                    "$ref": "#/components/schemas/Thread"
   203                  }
   204                }
   205              }
   206            }
   207          }
   208        }
   209      },
   210      "/content_threads/{threadId}/open": {
   211          "get": {
   212            "tags": [
   213              "Threads"
   214            ],
   215            "summary": "Open a thread",
   216            "operationId": "openThread",
   217            "description": "Thread closure/opening is only available for the following sources:\n\n* Emails\n* Answers\n* Ideas\n* Facebook Messenger\n* Google+\n* Lithium\n* Mobile Messaging\n\nStarts a job to open a thread. It returns the thread but as the job is asynchronous, the state of the “close” attribute in the returned object is the one when the job started.\n\nIf token’s user does not have “read” on thread’s source a 404 HTTP response will be returned. Returns a 403 if the thread cannot be opened or if the user does not have the permission to open a thread.\n\nAuthorization​: no.",
   218            "parameters": [
   219              {
   220                "name": "threadId",
   221                "in": "path",
   222                "required": true,
   223                "schema": {
   224                  "type": "string"
   225                }
   226              }
   227            ],
   228            "responses": {
   229              "200": {
   230                "description": "Success",
   231                "content": {
   232                  "application/json": {
   233                    "schema": {
   234                      "$ref": "#/components/schemas/Thread"
   235                    }
   236                  }
   237                }
   238              }
   239            }
   240          }
   241        }  
   242    },
   243    "servers": [
   244      {
   245        "url": "https://DOMAIN.api.engagement.dimelo.com/1.0"
   246      }
   247    ],
   248    "components": {
   249      "schemas": {
   250        "GetAllThreadsResponse": {
   251          "properties": {
   252            "count": {
   253              "type": "integer",
   254              "format": "int32"
   255            },
   256            "limit": {
   257              "type": "integer",
   258              "format": "int32"
   259            },
   260            "offset": {
   261              "type": "integer",
   262              "format": "int32"
   263            },
   264            "records": {
   265              "type": "array",
   266              "items": {
   267                "$ref": "#/components/schemas/Thread"
   268              }
   269            }
   270          }
   271        },
   272        "Thread": {
   273          "required": [
   274            "id"
   275          ],
   276          "properties": {
   277            "id": {
   278              "type": "string"
   279            },
   280            "created_at": {
   281              "type": "string",
   282              "format": "date-time"
   283            },
   284            "updated_at": {
   285              "type": "string",
   286              "format": "date-time"
   287            },
   288            "foreign_id": {
   289              "type": "string"
   290            },
   291            "source_id": {
   292              "type": "string"
   293            },
   294            "title": {
   295              "type": "string"
   296            },
   297            "interventions_count": {
   298              "type": "integer"
   299            },
   300            "contents_count": {
   301              "type": "integer"
   302            },
   303            "closed": {
   304              "type": "boolean"
   305            },
   306            "category_ids": {
   307              "type": "array",
   308              "items": {
   309                "type": "string"
   310              }
   311            },
   312            "thread_category_ids": {
   313              "type": "array",
   314              "items": {
   315                "type": "string"
   316              }
   317            },
   318            "extra_data": {
   319              "type": "object"
   320            }
   321          }
   322        }
   323      }
   324    }
   325  }