Advertisement
clabnet

paperless api

Jan 17th, 2025
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 165.31 KB | None | 0 0
  1. openapi: 3.0.3
  2. info:
  3.     title: Paperless-ngx
  4.     version: 1.0.0
  5.     contact: {}
  6. servers:
  7.     - url: ''
  8. paths:
  9.     /api/storage_paths/:
  10.         get:
  11.             tags:
  12.                - Storage paths
  13.             summary: Get storage paths
  14.             description: >-
  15.                 This endpoint retrieves storage paths via an HTTP GET request to the
  16.                 specified URL. The request includes query parameters "full_perms" set to
  17.                 true and "format" set to json.
  18.  
  19.  
  20.                 ### Request Body
  21.  
  22.  
  23.                 This request does not require a request body.
  24.  
  25.  
  26.                 ### Response Body
  27.  
  28.  
  29.                 The response will include the storage paths in JSON format.
  30.  
  31.  
  32.                 #### Response JSON Schema
  33.  
  34.  
  35.                 ``` json
  36.  
  37.                 {
  38.                   "type": "object",
  39.                   "properties": {
  40.                     "storage_paths": {
  41.                       "type": "array",
  42.                       "items": {
  43.                         "type": "string"
  44.                       }
  45.                     }
  46.                   }
  47.                 }
  48.  
  49.                  ```
  50.             operationId: getStoragePaths
  51.             parameters:
  52.                 - name: id__in
  53.                   in: query
  54.                   schema:
  55.                       type: string
  56.                       example: ''
  57.                 - name: name__istartswith
  58.                   in: query
  59.                   schema:
  60.                       type: string
  61.                       example: ''
  62.                 - name: name__iendswith
  63.                   in: query
  64.                   schema:
  65.                       type: string
  66.                       example: ''
  67.                 - name: name__icontains
  68.                   in: query
  69.                   schema:
  70.                       type: string
  71.                       example: ''
  72.                 - name: name__iexact
  73.                   in: query
  74.                   schema:
  75.                       type: string
  76.                       example: ''
  77.                 - name: path__istartswith
  78.                   in: query
  79.                   schema:
  80.                       type: string
  81.                       example: ''
  82.                 - name: path__iendswith
  83.                   in: query
  84.                   schema:
  85.                       type: string
  86.                       example: ''
  87.                 - name: path__icontains
  88.                   in: query
  89.                   schema:
  90.                       type: string
  91.                       example: ''
  92.                 - name: path__iexact
  93.                   in: query
  94.                   schema:
  95.                       type: string
  96.                       example: ''
  97.                 - name: id
  98.                   in: query
  99.                   schema:
  100.                       type: string
  101.                       example: ''
  102.                 - name: ordering
  103.                   in: query
  104.                   schema:
  105.                       type: string
  106.                       example: ''
  107.                 - name: full_perms
  108.                   in: query
  109.                   schema:
  110.                       type: string
  111.                       example: 'true'
  112.             responses:
  113.                 '200':
  114.                     description: ''
  115.         post:
  116.             tags:
  117.                - Storage paths
  118.             summary: Add storage path
  119.             description: >-
  120.                 The endpoint makes an HTTP POST request to create a new storage path
  121.                 with the option to grant full permissions. The request payload includes
  122.                 parameters such as slug, name, path, match, matching_algorithm,
  123.                 is_insensitive, document_count, owner, and set_permissions for view and
  124.                 change. The request body is in raw JSON format.
  125.  
  126.  
  127.                 ### Response
  128.  
  129.  
  130.                 The response of this request is a JSON schema representing the structure
  131.                 of the data returned upon successful creation of the storage path.
  132.             operationId: addStoragePath
  133.             requestBody:
  134.                 content:
  135.                     application/json:
  136.                         schema:
  137.                             type: object
  138.                             properties:
  139.                                 document_count:
  140.                                     type: number
  141.                                     example: 0
  142.                                 is_insensitive:
  143.                                     type: boolean
  144.                                     example: true
  145.                                 match:
  146.                                     type: string
  147.                                     example: ''
  148.                                 matching_algorithm:
  149.                                     type: number
  150.                                     example: 6
  151.                                 name:
  152.                                     type: string
  153.                                     example: Prova
  154.                                 owner:
  155.                                     type: number
  156.                                     example: 2
  157.                                 path:
  158.                                     type: string
  159.                                     example: Prova
  160.                                 set_permissions:
  161.                                     type: object
  162.                                     properties:
  163.                                         change:
  164.                                             type: object
  165.                                             properties:
  166.                                                 groups:
  167.                                                     type: array
  168.                                                     items:
  169.                                                         type: number
  170.                                                         example: 2
  171.                                                     example:
  172.                                                        - 2
  173.                                                 users:
  174.                                                     type: array
  175.                                                     items:
  176.                                                         type: number
  177.                                                         example: 4
  178.                                                     example:
  179.                                                        - 4
  180.                                         view:
  181.                                             type: object
  182.                                             properties:
  183.                                                 groups:
  184.                                                     type: array
  185.                                                     items:
  186.                                                         type: number
  187.                                                         example: 1
  188.                                                     example:
  189.                                                        - 1
  190.                                                         - 2
  191.                                                 users:
  192.                                                     type: array
  193.                                                     items:
  194.                                                         type: number
  195.                                                         example: 4
  196.                                                     example:
  197.                                                        - 4
  198.                                 slug:
  199.                                     type: string
  200.                                     example: prova12
  201.                         example:
  202.                             document_count: 0
  203.                             is_insensitive: true
  204.                             match: ''
  205.                             matching_algorithm: 6
  206.                             name: Prova
  207.                             owner: 2
  208.                             path: Prova
  209.                             set_permissions:
  210.                                 change:
  211.                                     groups:
  212.                                        - 2
  213.                                     users:
  214.                                        - 4
  215.                                 view:
  216.                                     groups:
  217.                                        - 1
  218.                                         - 2
  219.                                     users:
  220.                                        - 4
  221.                             slug: prova12
  222.             responses:
  223.                 '200':
  224.                     description: ''
  225.     /api/storage_paths/{pathId}/:
  226.         put:
  227.             tags:
  228.                - Storage paths
  229.             summary: Update storage path
  230.             description: >-
  231.                 ### Update Storage Path
  232.  
  233.  
  234.                 This endpoint allows the client to update a specific storage path
  235.                 identified by `pathId`.
  236.  
  237.  
  238.                 #### Request Body
  239.  
  240.  
  241.                 - `slug` (string): A unique identifier for the storage path.
  242.                    
  243.                 - `name` (string): The name of the storage path.
  244.                    
  245.                 - `path` (string): The path of the storage location.
  246.                    
  247.  
  248.                 #### Response
  249.  
  250.  
  251.                 The response will be a JSON object conforming to the following schema:
  252.  
  253.                 ``` json
  254.  
  255.                 {
  256.                   "type": "object",
  257.                   "properties": {
  258.                     "status": {
  259.                       "type": "string"
  260.                     },
  261.                     "message": {
  262.                       "type": "string"
  263.                     },
  264.                     "data": {
  265.                       "type": "object",
  266.                       "properties": {
  267.                         "id": {
  268.                           "type": "string"
  269.                         },
  270.                         "slug": {
  271.                           "type": "string"
  272.                         },
  273.                         "name": {
  274.                           "type": "string"
  275.                         },
  276.                         "path": {
  277.                           "type": "string"
  278.                         }
  279.                       }
  280.                     }
  281.                   }
  282.                 }
  283.  
  284.                  ```
  285.             operationId: updateStoragePath
  286.             requestBody:
  287.                 content:
  288.                     application/json:
  289.                         schema:
  290.                             type: object
  291.                             properties:
  292.                                 name:
  293.                                     type: string
  294.                                     example: ovako/line-production-billets
  295.                                 path:
  296.                                     type: string
  297.                                     example: >-
  298.                                         99999998-0001-0000-0000-000000000000/4879a52a-9aa5-429c-9c68-fe4b11622f3f
  299.                                 slug:
  300.                                     type: string
  301.                                     example: ovakolineproductionbillets
  302.                         example:
  303.                             name: ovako/line-production-billets
  304.                             path: >-
  305.                                 99999998-0001-0000-0000-000000000000/4879a52a-9aa5-429c-9c68-fe4b11622f3f
  306.                             slug: ovakolineproductionbillets
  307.             responses:
  308.                 '200':
  309.                     description: ''
  310.         delete:
  311.             tags:
  312.                - Storage paths
  313.             summary: Delete storage path
  314.             description: >-
  315.                 The API endpoint sends an HTTP DELETE request to the specified storage
  316.                 path identified by the pathId in the URL. Upon successful deletion, the
  317.                 response will conform to the following JSON schema:
  318.  
  319.                 ``` json
  320.  
  321.                 {
  322.                   "type": "object",
  323.                   "properties": {
  324.                     "message": {
  325.                       "type": "string"
  326.                     }
  327.                   }
  328.                 }
  329.  
  330.                  ```
  331.  
  332.                 The response will contain a message indicating the success of the
  333.                 deletion operation.
  334.             operationId: deleteStoragePath
  335.             responses:
  336.                 '200':
  337.                     description: ''
  338.         parameters:
  339.             - name: pathId
  340.               in: path
  341.               required: true
  342.               schema:
  343.                   type: string
  344.     /api/documents/{documentId}/preview/:
  345.         get:
  346.             tags:
  347.                - Documents
  348.             summary: Preview document
  349.             description: >-
  350.                 # Get Document Preview
  351.  
  352.  
  353.                 This endpoint retrieves the preview of a specific document in JSON
  354.                 format.
  355.  
  356.  
  357.                 ## Request
  358.  
  359.  
  360.                 ### Path Parameters
  361.  
  362.  
  363.                 - `documentId` (string, required): The unique identifier of the
  364.                 document.
  365.                    
  366.  
  367.                 ### Query Parameters
  368.  
  369.  
  370.                 - `format` (string, required): The format of the document preview. Set
  371.                 to "json" for JSON format.
  372.                    
  373.  
  374.                 ## Response
  375.  
  376.  
  377.                 The response will be a JSON object representing the preview of the
  378.                 document. For documentation of the response schema, please refer to the
  379.                 provided JSON schema.
  380.             operationId: previewDocument
  381.             responses:
  382.                 '200':
  383.                     description: ''
  384.         parameters:
  385.             - name: documentId
  386.               in: path
  387.               required: true
  388.               schema:
  389.                   type: string
  390.     /api/documents/{documentId}/download/:
  391.         get:
  392.             tags:
  393.                - Documents
  394.             summary: Download document
  395.             description: >-
  396.                 # Download Document
  397.  
  398.  
  399.                 This endpoint is used to download a specific document by providing the
  400.                 document ID in the URL.
  401.  
  402.  
  403.                 ### Request
  404.  
  405.  
  406.                 - Method: GET
  407.                    
  408.                 - URL: `/api/documents//download/`
  409.                    
  410.  
  411.                 ### Response
  412.  
  413.  
  414.                 The response for this request follows the JSON schema below:
  415.  
  416.                 ``` json
  417.  
  418.                 {
  419.                   "type": "object",
  420.                   "properties": {
  421.                     "documentId": {
  422.                       "type": "string"
  423.                     },
  424.                     "documentName": {
  425.                       "type": "string"
  426.                     },
  427.                     "downloadLink": {
  428.                       "type": "string"
  429.                     }
  430.                   }
  431.                 }
  432.  
  433.                  ```
  434.             operationId: downloadDocument
  435.             responses:
  436.                 '200':
  437.                     description: ''
  438.         parameters:
  439.             - name: documentId
  440.               in: path
  441.               required: true
  442.               schema:
  443.                   type: string
  444.     /api/documents/{documentId}/thumb/:
  445.         get:
  446.             tags:
  447.                - Documents
  448.             summary: Thumbnail document
  449.             description: >-
  450.                 This endpoint retrieves the thumbnail of a specific document in JSON
  451.                 format.
  452.  
  453.  
  454.                 The response of this request can be documented as a JSON schema.
  455.             operationId: thumbnailDocument
  456.             responses:
  457.                 '200':
  458.                     description: ''
  459.         parameters:
  460.             - name: documentId
  461.               in: path
  462.               required: true
  463.               schema:
  464.                   type: string
  465.     /api/documents/:
  466.         get:
  467.             tags:
  468.                - Documents
  469.             summary: Get documents
  470.             description: >-
  471.                 ### Get Documents
  472.  
  473.  
  474.                 This endpoint retrieves documents based on the specified page and full
  475.                 permissions.
  476.  
  477.  
  478.                 #### Request
  479.  
  480.  
  481.                 - Method: GET
  482.                    
  483.                 - URL: `/api/documents/?title__istartswith=horizon`
  484.                    
  485.                 - Query Parameters:
  486.                    
  487.                     - `title__istartswith` (string, required): Filter documents based on the starting of the title.
  488.                        
  489.  
  490.                 #### Response
  491.  
  492.  
  493.                 The response for this request follows the JSON schema below:
  494.  
  495.                 ``` json
  496.  
  497.                 {
  498.                   "type": "object",
  499.                   "properties": {
  500.                     "count": {
  501.                       "type": "integer"
  502.                     },
  503.                     "next": {
  504.                       "type": "null"
  505.                     },
  506.                     "previous": {
  507.                       "type": "null"
  508.                     },
  509.                     "all": {
  510.                       "type": "array",
  511.                       "items": {
  512.                         "type": "integer"
  513.                       }
  514.                     },
  515.                     "results": {
  516.                       "type": "array",
  517.                       "items": {
  518.                         "type": "object",
  519.                         "properties": {
  520.                           "id": {
  521.                             "type": "integer"
  522.                           },
  523.                           "correspondent": {
  524.                             "type": "integer"
  525.                           },
  526.                           "document_type": {
  527.                             "type": "null"
  528.                           },
  529.                           "storage_path": {
  530.                             "type": "integer"
  531.                           },
  532.                           "title": {
  533.                             "type": "string"
  534.                           },
  535.                           "content": {
  536.                             "type": "string"
  537.                           },
  538.                           "tags": {
  539.                             "type": "array",
  540.                             "items": {}
  541.                           },
  542.                           "created": {
  543.                             "type": "string"
  544.                           },
  545.                           "created_date": {
  546.                             "type": "string"
  547.                           },
  548.                           "modified": {
  549.                             "type": "string"
  550.                           },
  551.                           "added": {
  552.                             "type": "string"
  553.                           },
  554.                           "deleted_at": {
  555.                             "type": "null"
  556.                           },
  557.                           "archive_serial_number": {
  558.                             "type": "null"
  559.                           },
  560.                           "original_file_name": {
  561.                             "type": "string"
  562.                           },
  563.                           "archived_file_name": {
  564.                             "type": "string"
  565.                           },
  566.                           "owner": {
  567.                             "type": "null"
  568.                           },
  569.                           "user_can_change": {
  570.                             "type": "boolean"
  571.                           },
  572.                           "is_shared_by_requester": {
  573.                             "type": "boolean"
  574.                           },
  575.                           "notes": {
  576.                             "type": "array",
  577.                             "items": {}
  578.                           },
  579.                           "custom_fields": {
  580.                             "type": "array",
  581.                             "items": {}
  582.                           },
  583.                           "page_count": {
  584.                             "type": "null"
  585.                           }
  586.                         }
  587.                       }
  588.                     }
  589.                   }
  590.                 }
  591.  
  592.                  ```
  593.             operationId: getDocuments
  594.             parameters:
  595.                 - name: id__in
  596.                   in: query
  597.                   schema:
  598.                       type: string
  599.                       example: ''
  600.                 - name: id
  601.                   in: query
  602.                   schema:
  603.                       type: string
  604.                       example: ''
  605.                 - name: title__istartswith
  606.                   in: query
  607.                   schema:
  608.                       type: string
  609.                       example: ''
  610.                 - name: title__iendswith
  611.                   in: query
  612.                   schema:
  613.                       type: string
  614.                       example: ''
  615.                 - name: title__icontains
  616.                   in: query
  617.                   schema:
  618.                       type: string
  619.                       example: ''
  620.                 - name: title__iexact
  621.                   in: query
  622.                   schema:
  623.                       type: string
  624.                       example: ''
  625.                 - name: content__istartswith
  626.                   in: query
  627.                   schema:
  628.                       type: string
  629.                       example: ''
  630.                 - name: content__iendswith
  631.                   in: query
  632.                   schema:
  633.                       type: string
  634.                       example: ''
  635.                 - name: content__icontains
  636.                   in: query
  637.                   schema:
  638.                       type: string
  639.                       example: ''
  640.                 - name: content__iexact
  641.                   in: query
  642.                   schema:
  643.                       type: string
  644.                       example: ''
  645.                 - name: archive_serial_number
  646.                   in: query
  647.                   schema:
  648.                       type: string
  649.                       example: ''
  650.                 - name: archive_serial_number__gt
  651.                   in: query
  652.                   schema:
  653.                       type: string
  654.                       example: ''
  655.                 - name: archive_serial_number__gte
  656.                   in: query
  657.                   schema:
  658.                       type: string
  659.                       example: ''
  660.                 - name: archive_serial_number__lt
  661.                   in: query
  662.                   schema:
  663.                       type: string
  664.                       example: ''
  665.                 - name: archive_serial_number__lte
  666.                   in: query
  667.                   schema:
  668.                       type: string
  669.                       example: ''
  670.                 - name: archive_serial_number__isnull
  671.                   in: query
  672.                   schema:
  673.                       type: string
  674.                       example: ''
  675.                 - name: created__year
  676.                   in: query
  677.                   schema:
  678.                       type: string
  679.                       example: ''
  680.                 - name: created__month
  681.                   in: query
  682.                   schema:
  683.                       type: string
  684.                       example: ''
  685.                 - name: created__day
  686.                   in: query
  687.                   schema:
  688.                       type: string
  689.                       example: ''
  690.                 - name: created__date__gt
  691.                   in: query
  692.                   schema:
  693.                       type: string
  694.                       example: ''
  695.                 - name: created__gt
  696.                   in: query
  697.                   schema:
  698.                       type: string
  699.                       example: ''
  700.                 - name: created__date__lt
  701.                   in: query
  702.                   schema:
  703.                       type: string
  704.                       example: ''
  705.                 - name: created__lt
  706.                   in: query
  707.                   schema:
  708.                       type: string
  709.                       example: ''
  710.                 - name: added__year
  711.                   in: query
  712.                   schema:
  713.                       type: string
  714.                       example: ''
  715.                 - name: added__month
  716.                   in: query
  717.                   schema:
  718.                       type: string
  719.                       example: ''
  720.                 - name: added__day
  721.                   in: query
  722.                   schema:
  723.                       type: string
  724.                       example: ''
  725.                 - name: added__date__gt
  726.                   in: query
  727.                   schema:
  728.                       type: string
  729.                       example: ''
  730.                 - name: added__gt
  731.                   in: query
  732.                   schema:
  733.                       type: string
  734.                       example: ''
  735.                 - name: added__date__lt
  736.                   in: query
  737.                   schema:
  738.                       type: string
  739.                       example: ''
  740.                 - name: added__lt
  741.                   in: query
  742.                   schema:
  743.                       type: string
  744.                       example: ''
  745.                 - name: modified__year
  746.                   in: query
  747.                   schema:
  748.                       type: string
  749.                       example: ''
  750.                 - name: modified__month
  751.                   in: query
  752.                   schema:
  753.                       type: string
  754.                       example: ''
  755.                 - name: modified__day
  756.                   in: query
  757.                   schema:
  758.                       type: string
  759.                       example: ''
  760.                 - name: modified__date__gt
  761.                   in: query
  762.                   schema:
  763.                       type: string
  764.                       example: ''
  765.                 - name: modified__gt
  766.                   in: query
  767.                   schema:
  768.                       type: string
  769.                       example: ''
  770.                 - name: modified__date__lt
  771.                   in: query
  772.                   schema:
  773.                       type: string
  774.                       example: ''
  775.                 - name: modified__lt
  776.                   in: query
  777.                   schema:
  778.                       type: string
  779.                       example: ''
  780.                 - name: original_filename__istartswith
  781.                   in: query
  782.                   schema:
  783.                       type: string
  784.                       example: ''
  785.                 - name: original_filename__iendswith
  786.                   in: query
  787.                   schema:
  788.                       type: string
  789.                       example: ''
  790.                 - name: original_filename__icontains
  791.                   in: query
  792.                   schema:
  793.                       type: string
  794.                       example: ''
  795.                 - name: original_filename__iexact
  796.                   in: query
  797.                   schema:
  798.                       type: string
  799.                       example: ''
  800.                 - name: checksum__istartswith
  801.                   in: query
  802.                   schema:
  803.                       type: string
  804.                       example: ''
  805.                 - name: checksum__iendswith
  806.                   in: query
  807.                   schema:
  808.                       type: string
  809.                       example: ''
  810.                 - name: checksum__icontains
  811.                   in: query
  812.                   schema:
  813.                       type: string
  814.                       example: ''
  815.                 - name: checksum__iexact
  816.                   in: query
  817.                   schema:
  818.                       type: string
  819.                       example: ''
  820.                 - name: correspondent__isnull
  821.                   in: query
  822.                   schema:
  823.                       type: string
  824.                       example: ''
  825.                 - name: correspondent__id__in
  826.                   in: query
  827.                   schema:
  828.                       type: string
  829.                       example: ''
  830.                 - name: correspondent__id
  831.                   in: query
  832.                   schema:
  833.                       type: string
  834.                       example: ''
  835.                 - name: correspondent__name__istartswith
  836.                   in: query
  837.                   schema:
  838.                       type: string
  839.                       example: ''
  840.                 - name: correspondent__name__iendswith
  841.                   in: query
  842.                   schema:
  843.                       type: string
  844.                       example: ''
  845.                 - name: correspondent__name__icontains
  846.                   in: query
  847.                   schema:
  848.                       type: string
  849.                       example: ''
  850.                 - name: correspondent__name__iexact
  851.                   in: query
  852.                   schema:
  853.                       type: string
  854.                       example: ''
  855.                 - name: tags__id__in
  856.                   in: query
  857.                   schema:
  858.                       type: string
  859.                       example: ''
  860.                 - name: tags__id
  861.                   in: query
  862.                   schema:
  863.                       type: string
  864.                       example: ''
  865.                 - name: tags__name__istartswith
  866.                   in: query
  867.                   schema:
  868.                       type: string
  869.                       example: ''
  870.                 - name: tags__name__iendswith
  871.                   in: query
  872.                   schema:
  873.                       type: string
  874.                       example: ''
  875.                 - name: tags__name__icontains
  876.                   in: query
  877.                   schema:
  878.                       type: string
  879.                       example: ''
  880.                 - name: tags__name__iexact
  881.                   in: query
  882.                   schema:
  883.                       type: string
  884.                       example: ''
  885.                 - name: document_type__isnull
  886.                   in: query
  887.                   schema:
  888.                       type: string
  889.                       example: ''
  890.                 - name: document_type__id__in
  891.                   in: query
  892.                   schema:
  893.                       type: string
  894.                       example: ''
  895.                 - name: document_type__id
  896.                   in: query
  897.                   schema:
  898.                       type: string
  899.                       example: ''
  900.                 - name: document_type__name__istartswith
  901.                   in: query
  902.                   schema:
  903.                       type: string
  904.                       example: ''
  905.                 - name: document_type__name__iendswith
  906.                   in: query
  907.                   schema:
  908.                       type: string
  909.                       example: ''
  910.                 - name: document_type__name__icontains
  911.                   in: query
  912.                   schema:
  913.                       type: string
  914.                       example: ''
  915.                 - name: document_type__name__iexact
  916.                   in: query
  917.                   schema:
  918.                       type: string
  919.                       example: ''
  920.                 - name: storage_path__isnull
  921.                   in: query
  922.                   schema:
  923.                       type: string
  924.                       example: ''
  925.                 - name: storage_path__id__in
  926.                   in: query
  927.                   schema:
  928.                       type: string
  929.                       example: ''
  930.                 - name: storage_path__id
  931.                   in: query
  932.                   schema:
  933.                       type: string
  934.                       example: ''
  935.                 - name: storage_path__name__istartswith
  936.                   in: query
  937.                   schema:
  938.                       type: string
  939.                       example: ''
  940.                 - name: storage_path__name__iendswith
  941.                   in: query
  942.                   schema:
  943.                       type: string
  944.                       example: ''
  945.                 - name: storage_path__name__icontains
  946.                   in: query
  947.                   schema:
  948.                       type: string
  949.                       example: ''
  950.                 - name: storage_path__name__iexact
  951.                   in: query
  952.                   schema:
  953.                       type: string
  954.                       example: ''
  955.                 - name: owner__isnull
  956.                   in: query
  957.                   schema:
  958.                       type: string
  959.                       example: ''
  960.                 - name: owner__id__in
  961.                   in: query
  962.                   schema:
  963.                       type: string
  964.                       example: ''
  965.                 - name: owner__id
  966.                   in: query
  967.                   schema:
  968.                       type: string
  969.                       example: ''
  970.                 - name: custom_fields__icontains
  971.                   in: query
  972.                   schema:
  973.                       type: string
  974.                       example: ''
  975.                 - name: is_tagged
  976.                   in: query
  977.                   schema:
  978.                       type: string
  979.                       example: ''
  980.                 - name: tags__id__all
  981.                   in: query
  982.                   schema:
  983.                       type: string
  984.                       example: ''
  985.                 - name: tags__id__none
  986.                   in: query
  987.                   schema:
  988.                       type: string
  989.                       example: ''
  990.                 - name: correspondent__id__none
  991.                   in: query
  992.                   schema:
  993.                       type: string
  994.                       example: ''
  995.                 - name: document_type__id__none
  996.                   in: query
  997.                   schema:
  998.                       type: string
  999.                       example: ''
  1000.                 - name: storage_path__id__none
  1001.                   in: query
  1002.                   schema:
  1003.                       type: string
  1004.                       example: ''
  1005.                 - name: is_in_inbox
  1006.                   in: query
  1007.                   schema:
  1008.                       type: string
  1009.                       example: ''
  1010.                 - name: title_content
  1011.                   in: query
  1012.                   schema:
  1013.                       type: string
  1014.                       example: ''
  1015.                 - name: owner__id__none
  1016.                   in: query
  1017.                   schema:
  1018.                       type: string
  1019.                       example: ''
  1020.                 - name: custom_fields__id__all
  1021.                   in: query
  1022.                   schema:
  1023.                       type: string
  1024.                       example: ''
  1025.                 - name: custom_fields__id__none
  1026.                   in: query
  1027.                   schema:
  1028.                       type: string
  1029.                       example: ''
  1030.                 - name: custom_fields__id__in
  1031.                   in: query
  1032.                   schema:
  1033.                       type: string
  1034.                       example: ''
  1035.                 - name: has_custom_fields
  1036.                   in: query
  1037.                   schema:
  1038.                       type: string
  1039.                       example: ''
  1040.                 - name: custom_field_query
  1041.                   in: query
  1042.                   schema:
  1043.                       type: string
  1044.                       example: ''
  1045.                 - name: shared_by__id
  1046.                   in: query
  1047.                   schema:
  1048.                       type: string
  1049.                       example: ''
  1050.                 - name: search
  1051.                   in: query
  1052.                   schema:
  1053.                       type: string
  1054.                 - name: ordering
  1055.                   in: query
  1056.                   schema:
  1057.                       type: string
  1058.             responses:
  1059.                 '200':
  1060.                     description: ''
  1061.     /api/documents/post_document/:
  1062.         post:
  1063.             tags:
  1064.                - Documents
  1065.             summary: Add document
  1066.             description: Add document
  1067.             operationId: addDocument
  1068.             requestBody:
  1069.                 content:
  1070.                     multipart/form-data:
  1071.                         schema:
  1072.                             type: object
  1073.                             properties:
  1074.                                 archive_serial_number:
  1075.                                     type: string
  1076.                                     example: ''
  1077.                                 correspondent:
  1078.                                     type: string
  1079.                                     example: Claudio
  1080.                                 created:
  1081.                                     description: e.g. "2016-04-19" or "2016-04-19 06:15:00+02:00"
  1082.                                     type: string
  1083.                                     example: ''
  1084.                                 custom_fields:
  1085.                                     type: string
  1086.                                     example: ''
  1087.                                 document:
  1088.                                     type: string
  1089.                                     format: binary
  1090.                                 document_type:
  1091.                                     type: string
  1092.                                     example: ''
  1093.                                 storage_path:
  1094.                                     type: string
  1095.                                     example: ''
  1096.                                 tags:
  1097.                                     type: string
  1098.                                     example: ''
  1099.                                 title:
  1100.                                     type: string
  1101.                                     example: Document
  1102.             responses:
  1103.                 '200':
  1104.                     description: ''
  1105.     /api/custom_fields/:
  1106.         get:
  1107.             tags:
  1108.                - Custom fields
  1109.             summary: Get custom fields
  1110.             description: >-
  1111.                 ### API Request Description
  1112.  
  1113.  
  1114.                 This endpoint makes an HTTP GET request to retrieve custom fields in
  1115.                 JSON format.
  1116.  
  1117.  
  1118.                 ### Request Body
  1119.  
  1120.  
  1121.                 This request does not require a request body.
  1122.  
  1123.  
  1124.                 ### Response Body
  1125.  
  1126.  
  1127.                 The response is a JSON object with the following schema:
  1128.  
  1129.                 ``` json
  1130.  
  1131.                 {
  1132.                   "count": integer,
  1133.                   "next": string or null,
  1134.                   "previous": string or null,
  1135.                   "all": array of integers,
  1136.                   "results": [
  1137.                     {
  1138.                       "id": integer,
  1139.                       "name": string,
  1140.                       "data_type": string,
  1141.                       "extra_data": {
  1142.                         "select_options": array of strings or null,
  1143.                         "default_currency": string or null
  1144.                       },
  1145.                       "document_count": integer
  1146.                     }
  1147.                   ]
  1148.                 }
  1149.  
  1150.                  ```
  1151.  
  1152.                 The `count` field represents the total count of custom fields, `next`
  1153.                 and `previous` are URLs for pagination, `all` contains all the custom
  1154.                 field IDs, and `results` is an array of custom field objects containing
  1155.                 their respective IDs, names, data types, extra data, and document
  1156.                 counts.
  1157.             operationId: getCustomFields
  1158.             parameters:
  1159.                 - name: id
  1160.                   in: query
  1161.                   schema:
  1162.                       type: string
  1163.                       example: ''
  1164.                 - name: id__in
  1165.                   in: query
  1166.                   schema:
  1167.                       type: string
  1168.                       example: ''
  1169.                 - name: name__istartswith
  1170.                   in: query
  1171.                   schema:
  1172.                       type: string
  1173.                       example: ''
  1174.                 - name: name__iendswith
  1175.                   in: query
  1176.                   schema:
  1177.                       type: string
  1178.                       example: ''
  1179.                 - name: name__icontains
  1180.                   in: query
  1181.                   schema:
  1182.                       type: string
  1183.                       example: ''
  1184.                 - name: name__iexact
  1185.                   in: query
  1186.                   schema:
  1187.                       type: string
  1188.                       example: ''
  1189.                 - name: page
  1190.                   in: query
  1191.                   schema:
  1192.                       type: string
  1193.                       example: ''
  1194.                 - name: page_size
  1195.                   in: query
  1196.                   schema:
  1197.                       type: string
  1198.                       example: ''
  1199.                 - name: ordering
  1200.                   in: query
  1201.                   schema:
  1202.                       type: string
  1203.             responses:
  1204.                 '200':
  1205.                     description: ''
  1206.         post:
  1207.             tags:
  1208.                - Custom fields
  1209.             summary: Add custom field
  1210.             description: >-
  1211.                 ### Create Custom Field
  1212.  
  1213.  
  1214.                 This endpoint allows you to create a custom field with specified
  1215.                 attributes.
  1216.  
  1217.  
  1218.                 #### Request Body
  1219.  
  1220.  
  1221.                 - `name` (string, required): The name of the custom field.
  1222.                    
  1223.                 - `data_type` (string, required): The data type of the custom field.
  1224.                    
  1225.                 - `extra_data` (object, optional): Additional data for the custom field.
  1226.                    
  1227.                     - `select_options` (array): Array of select options for the custom field.
  1228.                        
  1229.                     - `default_currency` (string): Default currency for monetary data type.
  1230.                        
  1231.  
  1232.                 #### Response
  1233.  
  1234.  
  1235.                 The response for this request is a JSON schema representing the
  1236.                 structure of the created custom field object.
  1237.  
  1238.  
  1239.                 ``` json
  1240.  
  1241.                 {
  1242.                   "type": "object",
  1243.                   "properties": {
  1244.                     "id": {
  1245.                       "type": "string"
  1246.                     },
  1247.                     "name": {
  1248.                       "type": "string"
  1249.                     },
  1250.                     "data_type": {
  1251.                       "type": "string"
  1252.                     },
  1253.                     "extra_data": {
  1254.                       "type": "object",
  1255.                       "properties": {
  1256.                         "select_options": {
  1257.                           "type": "array"
  1258.                         },
  1259.                         "default_currency": {
  1260.                           "type": "string"
  1261.                         }
  1262.                       }
  1263.                     }
  1264.                   }
  1265.                 }
  1266.  
  1267.                  ```
  1268.             operationId: addCustomField
  1269.             requestBody:
  1270.                 content:
  1271.                     application/json:
  1272.                         schema:
  1273.                             type: object
  1274.                             properties:
  1275.                                 data_type:
  1276.                                     type: string
  1277.                                     example: monetary
  1278.                                 extra_data:
  1279.                                     type: object
  1280.                                     properties:
  1281.                                         default_currency:
  1282.                                             nullable: true
  1283.                                             example: null
  1284.                                         select_options:
  1285.                                             type: array
  1286.                                             items:
  1287.                                                 nullable: true
  1288.                                                 example: null
  1289.                                             example:
  1290.                                                - null
  1291.                                 name:
  1292.                                     type: string
  1293.                                     example: Prova
  1294.                         example:
  1295.                             data_type: monetary
  1296.                             extra_data:
  1297.                                 default_currency: null
  1298.                                 select_options:
  1299.                                    - null
  1300.                             name: Prova
  1301.             responses:
  1302.                 '200':
  1303.                     description: ''
  1304.     /api/custom_fields/{customFieldId}/:
  1305.         put:
  1306.             tags:
  1307.                - Custom fields
  1308.             summary: Update custom field
  1309.             description: >-
  1310.                 ### Update Custom Field
  1311.  
  1312.  
  1313.                 This endpoint allows the user to update a specific custom field by
  1314.                 making an HTTP PUT request to the specified URL.
  1315.  
  1316.  
  1317.                 #### Request Body
  1318.  
  1319.  
  1320.                 - `id` (number): The unique identifier of the custom field.
  1321.                    
  1322.                 - `name` (string): The name of the custom field.
  1323.                    
  1324.                 - `data_type` (string): The type of data the custom field holds (e.g.,
  1325.                 monetary, text, date).
  1326.                    
  1327.                 - `extra_data` (object): Additional data related to the custom field,
  1328.                 including select options and default currency.
  1329.                    
  1330.                     - `select_options` (array): An array of select options for the custom field.
  1331.                        
  1332.                     - `default_currency` (string): The default currency for the monetary field.
  1333.                        
  1334.                 - `document_count` (number): The count of documents associated with the
  1335.                 custom field.
  1336.                    
  1337.                 - `permissions_form` (object): Permissions related to the custom field.
  1338.                    
  1339.  
  1340.                 #### Response
  1341.  
  1342.  
  1343.                 The response of this request will be a JSON object conforming to the
  1344.                 following schema:
  1345.  
  1346.                 ``` json
  1347.  
  1348.                 {
  1349.                   "type": "object",
  1350.                   "properties": {
  1351.                     "status": {
  1352.                       "type": "string"
  1353.                     },
  1354.                     "message": {
  1355.                       "type": "string"
  1356.                     },
  1357.                     "updated_custom_field": {
  1358.                       "type": "object",
  1359.                       "properties": {
  1360.                         "id": {
  1361.                           "type": "number"
  1362.                         },
  1363.                         "name": {
  1364.                           "type": "string"
  1365.                         },
  1366.                         "data_type": {
  1367.                           "type": "string"
  1368.                         },
  1369.                         "extra_data": {
  1370.                           "type": "object",
  1371.                           "properties": {
  1372.                             "select_options": {
  1373.                               "type": "array"
  1374.                             },
  1375.                             "default_currency": {
  1376.                               "type": "string"
  1377.                             }
  1378.                           }
  1379.                         },
  1380.                         "document_count": {
  1381.                           "type": "number"
  1382.                         },
  1383.                         "permissions_form": {
  1384.                           "type": "object"
  1385.                         }
  1386.                       }
  1387.                     }
  1388.                   }
  1389.                 }
  1390.  
  1391.                  ```
  1392.             operationId: updateCustomField
  1393.             requestBody:
  1394.                 content:
  1395.                     application/json:
  1396.                         schema:
  1397.                             type: object
  1398.                             properties:
  1399.                                 data_type:
  1400.                                     type: string
  1401.                                     example: monetary
  1402.                                 document_count:
  1403.                                     type: number
  1404.                                     example: 0
  1405.                                 extra_data:
  1406.                                     type: object
  1407.                                     properties:
  1408.                                         default_currency:
  1409.                                             type: string
  1410.                                             example: EUR
  1411.                                         select_options:
  1412.                                             type: array
  1413.                                             items:
  1414.                                                 nullable: true
  1415.                                                 example: null
  1416.                                             example:
  1417.                                                - null
  1418.                                 id:
  1419.                                     type: number
  1420.                                     example: 1
  1421.                                 name:
  1422.                                     type: string
  1423.                                     example: Prova
  1424.                                 permissions_form:
  1425.                                     type: object
  1426.                                     properties: {}
  1427.                         example:
  1428.                             data_type: monetary
  1429.                             document_count: 0
  1430.                             extra_data:
  1431.                                 default_currency: EUR
  1432.                                 select_options:
  1433.                                    - null
  1434.                             id: 1
  1435.                             name: Prova
  1436.                             permissions_form: {}
  1437.             responses:
  1438.                 '200':
  1439.                     description: ''
  1440.         delete:
  1441.             tags:
  1442.                - Custom fields
  1443.             summary: Delete custom field
  1444.             description: >-
  1445.                 This endpoint sends an HTTP DELETE request to remove a specific custom
  1446.                 field identified by the customFieldId parameter.
  1447.  
  1448.  
  1449.                 ### Response
  1450.  
  1451.  
  1452.                 The response of this request is a JSON schema describing the structure
  1453.                 of the response data.
  1454.             operationId: deleteCustomField
  1455.             responses:
  1456.                 '200':
  1457.                     description: ''
  1458.         parameters:
  1459.             - name: customFieldId
  1460.               in: path
  1461.               required: true
  1462.               schema:
  1463.                   type: string
  1464.     /api/groups/:
  1465.         get:
  1466.             tags:
  1467.                - Groups
  1468.             summary: Get groups
  1469.             description: >-
  1470.                 This endpoint makes an HTTP GET request to retrieve a list of groups in
  1471.                 JSON format. The request does not include any specific parameters in the
  1472.                 URL.
  1473.  
  1474.  
  1475.                 The response returns a status code of 200 and the content type is
  1476.                 "application/json". The response body includes a "count" field
  1477.                 indicating the total number of groups, "next" and "previous" fields for
  1478.                 pagination, an "all" array, and a "results" array containing the list of
  1479.                 groups. In the example response, the "count" is 0, "next" and "previous"
  1480.                 are null, and both "all" and "results" arrays are empty.
  1481.             operationId: getGroups
  1482.             parameters:
  1483.                 - name: name__istartswith
  1484.                   in: query
  1485.                   schema:
  1486.                       type: string
  1487.                       example: ''
  1488.                 - name: name__iendswith
  1489.                   in: query
  1490.                   schema:
  1491.                       type: string
  1492.                       example: ''
  1493.                 - name: name__icontains
  1494.                   in: query
  1495.                   schema:
  1496.                       type: string
  1497.                       example: ''
  1498.                 - name: name__iexact
  1499.                   in: query
  1500.                   schema:
  1501.                       type: string
  1502.                       example: ''
  1503.                 - name: ordering
  1504.                   in: query
  1505.                   schema:
  1506.                       type: string
  1507.                       example: name
  1508.                 - name: full_perms
  1509.                   in: query
  1510.                   schema:
  1511.                       type: string
  1512.                       example: 'true'
  1513.             responses:
  1514.                 '200':
  1515.                     description: ''
  1516.         post:
  1517.             tags:
  1518.                - Groups
  1519.             summary: Add group
  1520.             description: >-
  1521.                 ### Create a New Group
  1522.  
  1523.  
  1524.                 This endpoint allows you to create a new group.
  1525.  
  1526.  
  1527.                 #### Request Body
  1528.  
  1529.  
  1530.                 - `name` (string, required): The name of the group.
  1531.                    
  1532.                 - `permissions` (array, required): An array of permissions for the
  1533.                 group.
  1534.                    
  1535.  
  1536.                 Example:
  1537.  
  1538.                 ``` json
  1539.  
  1540.                 {
  1541.                   "name": "group name",
  1542.                   "permissions": ["view_document"]
  1543.                 }
  1544.  
  1545.                  ```
  1546.  
  1547.                 #### Response
  1548.  
  1549.  
  1550.                 The response will contain the details of the newly created group.
  1551.             operationId: addGroup
  1552.             requestBody:
  1553.                 content:
  1554.                     application/json:
  1555.                         schema:
  1556.                             type: object
  1557.                             properties:
  1558.                                 name:
  1559.                                     type: string
  1560.                                     example: group name
  1561.                                 permissions:
  1562.                                     type: array
  1563.                                     items:
  1564.                                         type: string
  1565.                                         example: view_document
  1566.                                     example:
  1567.                                        - view_document
  1568.                                         - delete_document
  1569.                         example:
  1570.                             name: group name
  1571.                             permissions:
  1572.                                - view_document
  1573.                                 - delete_document
  1574.             responses:
  1575.                 '200':
  1576.                     description: ''
  1577.     /api/groups/{groupId}/:
  1578.         put:
  1579.             tags:
  1580.                - Groups
  1581.             summary: Update group
  1582.             description: >-
  1583.                 This endpoint allows you to update a specific group by making an HTTP
  1584.                 PUT request to the specified URL. The request should be in JSON format
  1585.                 and include the ID of the group, its name, and the permissions
  1586.                 associated with it. The request payload should include the following
  1587.                 parameters:
  1588.  
  1589.                 - id (number): The ID of the group to be updated.
  1590.                    
  1591.                 - name (string): The new name for the group.
  1592.                    
  1593.                 - permissions (array of strings): The updated permissions for the group.
  1594.                    
  1595.                 - set_permissions (array of strings): The updated set of permissions for
  1596.                 the group.
  1597.                    
  1598.                 - permissions_form (object): An object containing the updated set of
  1599.                 permissions for the group.
  1600.                    
  1601.  
  1602.                 Upon a successful update, the response will include the updated details
  1603.                 of the group in JSON format.
  1604.             operationId: updateGroup
  1605.             requestBody:
  1606.                 content:
  1607.                     application/json:
  1608.                         schema:
  1609.                             type: object
  1610.                             properties:
  1611.                                 id:
  1612.                                     type: number
  1613.                                     example: 1
  1614.                                 name:
  1615.                                     type: string
  1616.                                     example: readers
  1617.                                 permissions:
  1618.                                     type: array
  1619.                                     items:
  1620.                                         type: string
  1621.                                         example: view_document
  1622.                                     example:
  1623.                                        - view_document
  1624.                                         - view_tag
  1625.                                 permissions_form:
  1626.                                     type: object
  1627.                                     properties:
  1628.                                         set_permissions:
  1629.                                             type: array
  1630.                                             items:
  1631.                                                 type: string
  1632.                                                 example: view_document
  1633.                                             example:
  1634.                                                - view_document
  1635.                                 set_permissions:
  1636.                                     type: array
  1637.                                     items:
  1638.                                         type: string
  1639.                                         example: view_document
  1640.                                     example:
  1641.                                        - view_document
  1642.                         example:
  1643.                             id: 1
  1644.                             name: readers
  1645.                             permissions:
  1646.                                - view_document
  1647.                                 - view_tag
  1648.                             permissions_form:
  1649.                                 set_permissions:
  1650.                                    - view_document
  1651.                             set_permissions:
  1652.                                - view_document
  1653.             responses:
  1654.                 '200':
  1655.                     description: ''
  1656.         delete:
  1657.             tags:
  1658.                - Groups
  1659.             summary: Delete group
  1660.             description: >-
  1661.                 ### Delete Group
  1662.  
  1663.  
  1664.                 This endpoint is used to delete a specific group.
  1665.  
  1666.  
  1667.                 #### Request Body
  1668.  
  1669.  
  1670.                 This endpoint does not require a request body.
  1671.  
  1672.  
  1673.                 #### Response
  1674.  
  1675.  
  1676.                 The response for this request is a JSON object conforming to the
  1677.                 following schema:
  1678.  
  1679.                 ``` json
  1680.  
  1681.                 {
  1682.                   "type": "object",
  1683.                   "properties": {
  1684.                     "message": {
  1685.                       "type": "string"
  1686.                     }
  1687.                   }
  1688.                 }
  1689.  
  1690.                  ```
  1691.  
  1692.                 The response contains a `message` property indicating the result of the
  1693.                 deletion operation.
  1694.             operationId: deleteGroup
  1695.             responses:
  1696.                 '200':
  1697.                     description: ''
  1698.         parameters:
  1699.             - name: groupId
  1700.               in: path
  1701.               required: true
  1702.               schema:
  1703.                   type: string
  1704.     /api/users/:
  1705.         get:
  1706.             tags:
  1707.                - Users
  1708.             summary: Get users
  1709.             description: >-
  1710.                 ### GET /api/users/?format=json
  1711.  
  1712.  
  1713.                 This endpoint retrieves a list of users in JSON format.
  1714.  
  1715.  
  1716.                 #### Request
  1717.  
  1718.  
  1719.                 No request body is required for this endpoint.
  1720.  
  1721.  
  1722.                 #### Response
  1723.  
  1724.  
  1725.                 The response will be a JSON object with the following schema:
  1726.  
  1727.                 ``` json
  1728.  
  1729.                 {
  1730.                   "count": integer,
  1731.                   "next": string or null,
  1732.                   "previous": string or null,
  1733.                   "all": array of integers,
  1734.                   "results": [
  1735.                     {
  1736.                       "id": integer,
  1737.                       "username": string,
  1738.                       "email": string,
  1739.                       "password": string,
  1740.                       "first_name": string,
  1741.                       "last_name": string,
  1742.                       "date_joined": string,
  1743.                       "is_staff": boolean,
  1744.                       "is_active": boolean,
  1745.                       "is_superuser": boolean,
  1746.                       "groups": array,
  1747.                       "user_permissions": array,
  1748.                       "inherited_permissions": array
  1749.                     }
  1750.                   ]
  1751.                 }
  1752.  
  1753.                  ```
  1754.  
  1755.                 The `count` represents the total number of users, `next` and `previous`
  1756.                 are URLs for pagination, `all` contains the total count, and `results`
  1757.                 contain an array of user objects with their respective attributes.
  1758.             operationId: getUsers
  1759.             parameters:
  1760.                 - name: username__istartswith
  1761.                   in: query
  1762.                   schema:
  1763.                       type: string
  1764.                       example: ''
  1765.                 - name: username__iendswith
  1766.                   in: query
  1767.                   schema:
  1768.                       type: string
  1769.                       example: ''
  1770.                 - name: username__icontains
  1771.                   in: query
  1772.                   schema:
  1773.                       type: string
  1774.                       example: ''
  1775.                 - name: username__iexact
  1776.                   in: query
  1777.                   schema:
  1778.                       type: string
  1779.                       example: ''
  1780.                 - name: ordering
  1781.                   in: query
  1782.                   schema:
  1783.                       type: string
  1784.                       example: username
  1785.                 - name: full_perms
  1786.                   in: query
  1787.                   schema:
  1788.                       type: string
  1789.                       example: 'true'
  1790.             responses:
  1791.                 '200':
  1792.                     description: ''
  1793.         post:
  1794.             tags:
  1795.                - Users
  1796.             summary: Add user
  1797.             description: >-
  1798.                 ### API Request Description
  1799.  
  1800.  
  1801.                 This endpoint is used to create a new user. The request should be sent
  1802.                 as an HTTP POST to the specified URL with the request body containing
  1803.                 the user details in JSON format.
  1804.  
  1805.  
  1806.                 #### Request Body
  1807.  
  1808.  
  1809.                 - `username` (string, required): The username of the new user.
  1810.                    
  1811.                 - `email` (string, required): The email address of the new user.
  1812.                    
  1813.                 - `password` (string, required): The password for the new user.
  1814.                    
  1815.                 - `first_name` (string, required): The first name of the new user.
  1816.                    
  1817.                 - `last_name` (string, required): The last name of the new user.
  1818.                    
  1819.                 - `date_joined` (string, required): The date and time of the user's
  1820.                 registration.
  1821.                    
  1822.                 - `is_staff` (boolean, required): Indicates if the user has staff
  1823.                 permissions.
  1824.                    
  1825.                 - `is_active` (boolean, required): Indicates if the user account is
  1826.                 active.
  1827.                    
  1828.                 - `is_superuser` (boolean, required): Indicates if the user has
  1829.                 superuser permissions.
  1830.                    
  1831.                 - `groups` (array, required): An array of group IDs to which the user
  1832.                 belongs.
  1833.                    
  1834.                 - `user_permissions` (array, required): An array of user permission IDs.
  1835.                    
  1836.                 - `inherited_permissions` (array, required): An array of inherited
  1837.                 permissions for the user.
  1838.                    
  1839.  
  1840.                 ### API Response (JSON Schema)
  1841.  
  1842.  
  1843.                 The response of this request follows the JSON schema below:
  1844.  
  1845.                 ``` json
  1846.  
  1847.                 {
  1848.                   "type": "object",
  1849.                   "properties": {
  1850.                     "status": {
  1851.                       "type": "string"
  1852.                     },
  1853.                     "message": {
  1854.                       "type": "string"
  1855.                     },
  1856.                     "user_id": {
  1857.                       "type": "integer"
  1858.                     }
  1859.                   }
  1860.                 }
  1861.  
  1862.                  ```
  1863.  
  1864.                 The response includes:
  1865.  
  1866.                 - `status` (string): Indicates the status of the request.
  1867.                    
  1868.                 - `message` (string): Provides a descriptive message about the request
  1869.                 status.
  1870.                    
  1871.                 - `user_id` (integer): The unique identifier of the newly created user.
  1872.             operationId: addUser
  1873.             requestBody:
  1874.                 content:
  1875.                     application/json:
  1876.                         schema:
  1877.                             type: object
  1878.                             properties:
  1879.                                 date_joined:
  1880.                                     type: string
  1881.                                     example: '2025-01-10T12:09:14.351711+01:00'
  1882.                                 email:
  1883.                                     type: string
  1884.                                     example: ''
  1885.                                 first_name:
  1886.                                     type: string
  1887.                                     example: ''
  1888.                                 groups:
  1889.                                     type: array
  1890.                                     items:
  1891.                                         type: number
  1892.                                         example: 1
  1893.                                     example:
  1894.                                        - 1
  1895.                                 inherited_permissions:
  1896.                                     type: array
  1897.                                     items:
  1898.                                         type: string
  1899.                                         example: documents.view_document
  1900.                                     example:
  1901.                                        - documents.view_document
  1902.                                 is_active:
  1903.                                     type: boolean
  1904.                                     example: true
  1905.                                 is_staff:
  1906.                                     type: boolean
  1907.                                     example: false
  1908.                                 is_superuser:
  1909.                                     type: boolean
  1910.                                     example: false
  1911.                                 last_name:
  1912.                                     type: string
  1913.                                     example: ''
  1914.                                 password:
  1915.                                     type: string
  1916.                                     example: '123456'
  1917.                                 user_permissions:
  1918.                                     type: array
  1919.                                     items: {}
  1920.                                     example: []
  1921.                                 username:
  1922.                                     type: string
  1923.                                     example: prova
  1924.                         example:
  1925.                             date_joined: '2025-01-10T12:09:14.351711+01:00'
  1926.                             email: ''
  1927.                             first_name: ''
  1928.                             groups:
  1929.                                - 1
  1930.                             inherited_permissions:
  1931.                                - documents.view_document
  1932.                             is_active: true
  1933.                             is_staff: false
  1934.                             is_superuser: false
  1935.                             last_name: ''
  1936.                             password: '123456'
  1937.                             user_permissions: []
  1938.                             username: prova
  1939.             responses:
  1940.                 '200':
  1941.                     description: ''
  1942.     /api/users/{userId}/:
  1943.         put:
  1944.             tags:
  1945.                - Users
  1946.             summary: Update user
  1947.             description: >-
  1948.                 ### Update User Details
  1949.  
  1950.  
  1951.                 This endpoint allows updating the details of a specific user.
  1952.  
  1953.  
  1954.                 #### Request Body
  1955.  
  1956.  
  1957.                 - `id` (integer): The unique identifier for the user.
  1958.                    
  1959.                 - `username` (string): The username for the user.
  1960.                    
  1961.                 - `email` (string): The email address of the user.
  1962.                    
  1963.                 - `password` (string): The password for the user.
  1964.                    
  1965.                 - `first_name` (string): The first name of the user.
  1966.                    
  1967.                 - `last_name` (string): The last name of the user.
  1968.                    
  1969.                 - `date_joined` (string): The date and time when the user joined.
  1970.                    
  1971.                 - `is_staff` (boolean): Indicates if the user is a staff member.
  1972.                    
  1973.                 - `is_active` (boolean): Indicates if the user account is active.
  1974.                    
  1975.                 - `is_superuser` (boolean): Indicates if the user has superuser
  1976.                 privileges.
  1977.                    
  1978.                 - `groups` (array): An array of groups the user belongs to.
  1979.                    
  1980.                 - `user_permissions` (array): An array of user permissions.
  1981.                    
  1982.                 - `inherited_permissions` (array): An array of inherited permissions for
  1983.                 the user.
  1984.                    
  1985.                 - `permissions_form` (object): Permissions form for the user.
  1986.                    
  1987.  
  1988.                 #### Response (JSON Schema)
  1989.  
  1990.  
  1991.                 ``` json
  1992.  
  1993.                 {
  1994.                   "type": "object",
  1995.                   "properties": {
  1996.                     "status": {
  1997.                       "type": "string"
  1998.                     },
  1999.                     "message": {
  2000.                       "type": "string"
  2001.                     }
  2002.                   }
  2003.                 }
  2004.  
  2005.                  ```
  2006.             operationId: updateUser
  2007.             requestBody:
  2008.                 content:
  2009.                     application/json:
  2010.                         schema:
  2011.                             type: object
  2012.                             properties:
  2013.                                 date_joined:
  2014.                                     type: string
  2015.                                     example: '2025-01-10T11:46:11.193943+01:00'
  2016.                                 email:
  2017.                                     type: string
  2018.                                     example: simone.latino@teoresigroup.com
  2019.                                 first_name:
  2020.                                     type: string
  2021.                                     example: ''
  2022.                                 groups:
  2023.                                     type: array
  2024.                                     items: {}
  2025.                                     example: []
  2026.                                 id:
  2027.                                     type: number
  2028.                                     example: 3
  2029.                                 inherited_permissions:
  2030.                                     type: array
  2031.                                     items:
  2032.                                         type: string
  2033.                                         example: auth.change_group
  2034.                                     example:
  2035.                                        - auth.change_group
  2036.                                         - contenttypes.change_contenttype
  2037.                                         - documents.change_storagepath
  2038.                                         - documents.delete_tag
  2039.                                         - authtoken.delete_token
  2040.                                         - documents.change_customfieldinstance
  2041.                                         - admin.view_logentry
  2042.                                         - documents.change_tag
  2043.                                         - auditlog.delete_logentry
  2044.                                         - documents.add_uisettings
  2045.                                         - documents.view_storagepath
  2046.                                         - guardian.add_groupobjectpermission
  2047.                                         - documents.view_sharelink
  2048.                                         - authtoken.view_token
  2049.                                         - socialaccount.view_socialaccount
  2050.                                         - guardian.view_groupobjectpermission
  2051.                                         - documents.delete_storagepath
  2052.                                         - documents.add_document
  2053.                                         - socialaccount.add_socialtoken
  2054.                                         - admin.change_logentry
  2055.                                         - sessions.add_session
  2056.                                         - documents.delete_workflow
  2057.                                         - documents.add_customfield
  2058.                                         - socialaccount.delete_socialaccount
  2059.                                         - authtoken.delete_tokenproxy
  2060.                                         - socialaccount.view_socialapp
  2061.                                         - authtoken.add_token
  2062.                                         - auth.delete_group
  2063.                                         - documents.change_sharelink
  2064.                                         - documents.add_log
  2065.                                         - auth.delete_user
  2066.                                         - documents.view_note
  2067.                                         - documents.delete_workflowaction
  2068.                                         - auth.add_user
  2069.                                         - sessions.delete_session
  2070.                                         - auth.view_user
  2071.                                         - documents.add_storagepath
  2072.                                         - paperless_mail.view_processedmail
  2073.                                         - documents.add_note
  2074.                                         - socialaccount.change_socialaccount
  2075.                                         - django_celery_results.delete_taskresult
  2076.                                         - auth.view_group
  2077.                                         - account.change_emailaddress
  2078.                                         - paperless_mail.add_processedmail
  2079.                                         - documents.view_documenttype
  2080.                                         - account.view_emailaddress
  2081.                                         - documents.add_customfieldinstance
  2082.                                         - documents.delete_savedviewfilterrule
  2083.                                         - auth.change_user
  2084.                                         - documents.change_correspondent
  2085.                                         - authtoken.change_token
  2086.                                         - documents.delete_documenttype
  2087.                                         - documents.delete_customfield
  2088.                                         - documents.delete_paperlesstask
  2089.                                         - documents.view_workflow
  2090.                                         - paperless.delete_applicationconfiguration
  2091.                                         - django_celery_results.add_groupresult
  2092.                                         - documents.delete_note
  2093.                                         - paperless.view_applicationconfiguration
  2094.                                         - django_celery_results.view_taskresult
  2095.                                         - auditlog.change_logentry
  2096.                                         - documents.change_document
  2097.                                         - documents.change_paperlesstask
  2098.                                         - documents.delete_customfieldinstance
  2099.                                         - paperless_mail.delete_processedmail
  2100.                                         - contenttypes.delete_contenttype
  2101.                                         - django_celery_results.delete_chordcounter
  2102.                                         - account.add_emailaddress
  2103.                                         - contenttypes.view_contenttype
  2104.                                         - socialaccount.add_socialaccount
  2105.                                         - django_celery_results.change_groupresult
  2106.                                         - paperless.change_applicationconfiguration
  2107.                                         - documents.change_savedviewfilterrule
  2108.                                         - paperless_mail.delete_mailaccount
  2109.                                         - auditlog.view_logentry
  2110.                                         - account.delete_emailconfirmation
  2111.                                         - documents.view_workflowaction
  2112.                                         - authtoken.view_tokenproxy
  2113.                                         - auth.view_permission
  2114.                                         - guardian.change_userobjectpermission
  2115.                                         - account.add_emailconfirmation
  2116.                                         - admin.add_logentry
  2117.                                         - sessions.change_session
  2118.                                         - documents.add_paperlesstask
  2119.                                         - documents.delete_workflowtrigger
  2120.                                         - documents.add_documenttype
  2121.                                         - guardian.add_userobjectpermission
  2122.                                         - documents.change_log
  2123.                                         - documents.view_log
  2124.                                         - documents.add_savedviewfilterrule
  2125.                                         - documents.view_savedview
  2126.                                         - paperless_mail.add_mailrule
  2127.                                         - paperless_mail.view_mailaccount
  2128.                                         - paperless_mail.delete_mailrule
  2129.                                         - paperless_mail.view_mailrule
  2130.                                         - contenttypes.add_contenttype
  2131.                                         - guardian.change_groupobjectpermission
  2132.                                         - django_celery_results.delete_groupresult
  2133.                                         - django_celery_results.view_groupresult
  2134.                                         - paperless_mail.change_mailrule
  2135.                                         - django_celery_results.change_chordcounter
  2136.                                         - socialaccount.delete_socialapp
  2137.                                         - documents.delete_document
  2138.                                         - socialaccount.change_socialapp
  2139.                                         - auth.change_permission
  2140.                                         - authtoken.add_tokenproxy
  2141.                                         - django_celery_results.change_taskresult
  2142.                                         - paperless_mail.change_processedmail
  2143.                                         - django_celery_results.add_chordcounter
  2144.                                         - documents.change_documenttype
  2145.                                         - documents.change_customfield
  2146.                                         - documents.change_uisettings
  2147.                                         - documents.delete_log
  2148.                                         - documents.delete_sharelink
  2149.                                         - paperless.add_applicationconfiguration
  2150.                                         - documents.delete_savedview
  2151.                                         - django_celery_results.view_chordcounter
  2152.                                         - documents.view_paperlesstask
  2153.                                         - documents.view_customfieldinstance
  2154.                                         - guardian.view_userobjectpermission
  2155.                                         - account.view_emailconfirmation
  2156.                                         - paperless_mail.change_mailaccount
  2157.                                         - socialaccount.add_socialapp
  2158.                                         - socialaccount.change_socialtoken
  2159.                                         - socialaccount.delete_socialtoken
  2160.                                         - auth.delete_permission
  2161.                                         - admin.delete_logentry
  2162.                                         - sessions.view_session
  2163.                                         - documents.add_sharelink
  2164.                                         - documents.view_workflowtrigger
  2165.                                         - account.change_emailconfirmation
  2166.                                         - documents.view_tag
  2167.                                         - documents.add_workflowtrigger
  2168.                                         - documents.delete_correspondent
  2169.                                         - paperless_mail.add_mailaccount
  2170.                                         - auditlog.add_logentry
  2171.                                         - documents.view_correspondent
  2172.                                         - documents.add_savedview
  2173.                                         - documents.change_workflow
  2174.                                         - documents.change_workflowaction
  2175.                                         - socialaccount.view_socialtoken
  2176.                                         - django_celery_results.add_taskresult
  2177.                                         - documents.add_workflow
  2178.                                         - documents.change_workflowtrigger
  2179.                                         - documents.change_savedview
  2180.                                         - documents.view_savedviewfilterrule
  2181.                                         - documents.change_note
  2182.                                         - guardian.delete_userobjectpermission
  2183.                                         - documents.add_correspondent
  2184.                                         - documents.view_customfield
  2185.                                         - documents.add_workflowaction
  2186.                                         - documents.view_uisettings
  2187.                                         - auth.add_permission
  2188.                                         - account.delete_emailaddress
  2189.                                         - documents.add_tag
  2190.                                         - guardian.delete_groupobjectpermission
  2191.                                         - documents.view_document
  2192.                                         - auth.add_group
  2193.                                         - documents.delete_uisettings
  2194.                                         - authtoken.change_tokenproxy
  2195.                                 is_active:
  2196.                                     type: boolean
  2197.                                     example: true
  2198.                                 is_staff:
  2199.                                     type: boolean
  2200.                                     example: true
  2201.                                 is_superuser:
  2202.                                     type: boolean
  2203.                                     example: true
  2204.                                 last_name:
  2205.                                     type: string
  2206.                                     example: ''
  2207.                                 password:
  2208.                                     type: string
  2209.                                     example: '**********'
  2210.                                 permissions_form:
  2211.                                     type: object
  2212.                                     properties: {}
  2213.                                 user_permissions:
  2214.                                     type: array
  2215.                                     items: {}
  2216.                                     example: []
  2217.                                 username:
  2218.                                     type: string
  2219.                                     example: paperless
  2220.                         example:
  2221.                             date_joined: '2025-01-10T11:46:11.193943+01:00'
  2222.                             email: simone.latino@teoresigroup.com
  2223.                             first_name: ''
  2224.                             groups: []
  2225.                             id: 3
  2226.                             inherited_permissions:
  2227.                                - auth.change_group
  2228.                                 - contenttypes.change_contenttype
  2229.                                 - documents.change_storagepath
  2230.                                 - documents.delete_tag
  2231.                                 - authtoken.delete_token
  2232.                                 - documents.change_customfieldinstance
  2233.                                 - admin.view_logentry
  2234.                                 - documents.change_tag
  2235.                                 - auditlog.delete_logentry
  2236.                                 - documents.add_uisettings
  2237.                                 - documents.view_storagepath
  2238.                                 - guardian.add_groupobjectpermission
  2239.                                 - documents.view_sharelink
  2240.                                 - authtoken.view_token
  2241.                                 - socialaccount.view_socialaccount
  2242.                                 - guardian.view_groupobjectpermission
  2243.                                 - documents.delete_storagepath
  2244.                                 - documents.add_document
  2245.                                 - socialaccount.add_socialtoken
  2246.                                 - admin.change_logentry
  2247.                                 - sessions.add_session
  2248.                                 - documents.delete_workflow
  2249.                                 - documents.add_customfield
  2250.                                 - socialaccount.delete_socialaccount
  2251.                                 - authtoken.delete_tokenproxy
  2252.                                 - socialaccount.view_socialapp
  2253.                                 - authtoken.add_token
  2254.                                 - auth.delete_group
  2255.                                 - documents.change_sharelink
  2256.                                 - documents.add_log
  2257.                                 - auth.delete_user
  2258.                                 - documents.view_note
  2259.                                 - documents.delete_workflowaction
  2260.                                 - auth.add_user
  2261.                                 - sessions.delete_session
  2262.                                 - auth.view_user
  2263.                                 - documents.add_storagepath
  2264.                                 - paperless_mail.view_processedmail
  2265.                                 - documents.add_note
  2266.                                 - socialaccount.change_socialaccount
  2267.                                 - django_celery_results.delete_taskresult
  2268.                                 - auth.view_group
  2269.                                 - account.change_emailaddress
  2270.                                 - paperless_mail.add_processedmail
  2271.                                 - documents.view_documenttype
  2272.                                 - account.view_emailaddress
  2273.                                 - documents.add_customfieldinstance
  2274.                                 - documents.delete_savedviewfilterrule
  2275.                                 - auth.change_user
  2276.                                 - documents.change_correspondent
  2277.                                 - authtoken.change_token
  2278.                                 - documents.delete_documenttype
  2279.                                 - documents.delete_customfield
  2280.                                 - documents.delete_paperlesstask
  2281.                                 - documents.view_workflow
  2282.                                 - paperless.delete_applicationconfiguration
  2283.                                 - django_celery_results.add_groupresult
  2284.                                 - documents.delete_note
  2285.                                 - paperless.view_applicationconfiguration
  2286.                                 - django_celery_results.view_taskresult
  2287.                                 - auditlog.change_logentry
  2288.                                 - documents.change_document
  2289.                                 - documents.change_paperlesstask
  2290.                                 - documents.delete_customfieldinstance
  2291.                                 - paperless_mail.delete_processedmail
  2292.                                 - contenttypes.delete_contenttype
  2293.                                 - django_celery_results.delete_chordcounter
  2294.                                 - account.add_emailaddress
  2295.                                 - contenttypes.view_contenttype
  2296.                                 - socialaccount.add_socialaccount
  2297.                                 - django_celery_results.change_groupresult
  2298.                                 - paperless.change_applicationconfiguration
  2299.                                 - documents.change_savedviewfilterrule
  2300.                                 - paperless_mail.delete_mailaccount
  2301.                                 - auditlog.view_logentry
  2302.                                 - account.delete_emailconfirmation
  2303.                                 - documents.view_workflowaction
  2304.                                 - authtoken.view_tokenproxy
  2305.                                 - auth.view_permission
  2306.                                 - guardian.change_userobjectpermission
  2307.                                 - account.add_emailconfirmation
  2308.                                 - admin.add_logentry
  2309.                                 - sessions.change_session
  2310.                                 - documents.add_paperlesstask
  2311.                                 - documents.delete_workflowtrigger
  2312.                                 - documents.add_documenttype
  2313.                                 - guardian.add_userobjectpermission
  2314.                                 - documents.change_log
  2315.                                 - documents.view_log
  2316.                                 - documents.add_savedviewfilterrule
  2317.                                 - documents.view_savedview
  2318.                                 - paperless_mail.add_mailrule
  2319.                                 - paperless_mail.view_mailaccount
  2320.                                 - paperless_mail.delete_mailrule
  2321.                                 - paperless_mail.view_mailrule
  2322.                                 - contenttypes.add_contenttype
  2323.                                 - guardian.change_groupobjectpermission
  2324.                                 - django_celery_results.delete_groupresult
  2325.                                 - django_celery_results.view_groupresult
  2326.                                 - paperless_mail.change_mailrule
  2327.                                 - django_celery_results.change_chordcounter
  2328.                                 - socialaccount.delete_socialapp
  2329.                                 - documents.delete_document
  2330.                                 - socialaccount.change_socialapp
  2331.                                 - auth.change_permission
  2332.                                 - authtoken.add_tokenproxy
  2333.                                 - django_celery_results.change_taskresult
  2334.                                 - paperless_mail.change_processedmail
  2335.                                 - django_celery_results.add_chordcounter
  2336.                                 - documents.change_documenttype
  2337.                                 - documents.change_customfield
  2338.                                 - documents.change_uisettings
  2339.                                 - documents.delete_log
  2340.                                 - documents.delete_sharelink
  2341.                                 - paperless.add_applicationconfiguration
  2342.                                 - documents.delete_savedview
  2343.                                 - django_celery_results.view_chordcounter
  2344.                                 - documents.view_paperlesstask
  2345.                                 - documents.view_customfieldinstance
  2346.                                 - guardian.view_userobjectpermission
  2347.                                 - account.view_emailconfirmation
  2348.                                 - paperless_mail.change_mailaccount
  2349.                                 - socialaccount.add_socialapp
  2350.                                 - socialaccount.change_socialtoken
  2351.                                 - socialaccount.delete_socialtoken
  2352.                                 - auth.delete_permission
  2353.                                 - admin.delete_logentry
  2354.                                 - sessions.view_session
  2355.                                 - documents.add_sharelink
  2356.                                 - documents.view_workflowtrigger
  2357.                                 - account.change_emailconfirmation
  2358.                                 - documents.view_tag
  2359.                                 - documents.add_workflowtrigger
  2360.                                 - documents.delete_correspondent
  2361.                                 - paperless_mail.add_mailaccount
  2362.                                 - auditlog.add_logentry
  2363.                                 - documents.view_correspondent
  2364.                                 - documents.add_savedview
  2365.                                 - documents.change_workflow
  2366.                                 - documents.change_workflowaction
  2367.                                 - socialaccount.view_socialtoken
  2368.                                 - django_celery_results.add_taskresult
  2369.                                 - documents.add_workflow
  2370.                                 - documents.change_workflowtrigger
  2371.                                 - documents.change_savedview
  2372.                                 - documents.view_savedviewfilterrule
  2373.                                 - documents.change_note
  2374.                                 - guardian.delete_userobjectpermission
  2375.                                 - documents.add_correspondent
  2376.                                 - documents.view_customfield
  2377.                                 - documents.add_workflowaction
  2378.                                 - documents.view_uisettings
  2379.                                 - auth.add_permission
  2380.                                 - account.delete_emailaddress
  2381.                                 - documents.add_tag
  2382.                                 - guardian.delete_groupobjectpermission
  2383.                                 - documents.view_document
  2384.                                 - auth.add_group
  2385.                                 - documents.delete_uisettings
  2386.                                 - authtoken.change_tokenproxy
  2387.                             is_active: true
  2388.                             is_staff: true
  2389.                             is_superuser: true
  2390.                             last_name: ''
  2391.                             password: '**********'
  2392.                             permissions_form: {}
  2393.                             user_permissions: []
  2394.                             username: paperless
  2395.             responses:
  2396.                 '200':
  2397.                     description: ''
  2398.         delete:
  2399.             tags:
  2400.                - Users
  2401.             summary: Delete user
  2402.             description: >-
  2403.                 ### Delete User
  2404.  
  2405.  
  2406.                 This endpoint is used to delete a specific user by their unique user ID.
  2407.  
  2408.  
  2409.                 #### Request
  2410.  
  2411.  
  2412.                 - Method: DELETE
  2413.                    
  2414.                 - Endpoint: `/api/users/`
  2415.                    
  2416.  
  2417.                 #### Response
  2418.  
  2419.  
  2420.                 The response for this request is a JSON schema describing the structure
  2421.                 of the response body.
  2422.             operationId: deleteUser
  2423.             responses:
  2424.                 '200':
  2425.                     description: ''
  2426.         parameters:
  2427.             - name: userId
  2428.               in: path
  2429.               required: true
  2430.               schema:
  2431.                   type: string
  2432.     /api/saved_views/:
  2433.         get:
  2434.             tags:
  2435.                - Views
  2436.             summary: Get views
  2437.             description: >-
  2438.                 This endpoint makes an HTTP GET request to retrieve a list of saved
  2439.                 views in JSON format. The request does not include a request body as it
  2440.                 is a GET request. The response will contain a JSON object with the
  2441.                 details of the saved views, including their names, IDs, and other
  2442.                 relevant information.
  2443.             operationId: getViews
  2444.             responses:
  2445.                 '200':
  2446.                     description: ''
  2447.         post:
  2448.             tags:
  2449.                - Views
  2450.             summary: Add view
  2451.             description: >-
  2452.                 This API endpoint allows you to create a new saved view by sending an
  2453.                 HTTP POST request to the specified URL. The request should include the
  2454.                 following parameters in the request body:
  2455.  
  2456.                 - id (number): The unique identifier for the saved view.
  2457.                    
  2458.                 - name (string): The name of the saved view.
  2459.                    
  2460.                 - show_on_dashboard (boolean): Indicates whether the saved view should
  2461.                 be displayed on the dashboard.
  2462.                    
  2463.                 - show_in_sidebar (boolean): Indicates whether the saved view should be
  2464.                 displayed in the sidebar.
  2465.                    
  2466.                 - filter_rules (array): An array of filter rules for the saved view,
  2467.                 where each rule includes:
  2468.                    
  2469.                     - rule_type (number): The type of the filter rule.
  2470.                        
  2471.                     - value (string): The value of the filter rule.
  2472.                        
  2473.                 - sort_field (string): The field used for sorting the saved view.
  2474.                    
  2475.                 - sort_reverse (boolean): Indicates whether the sorting order should be
  2476.                 reversed.
  2477.                    
  2478.                 - display_mode (string): The display mode for the saved view.
  2479.                    
  2480.                 - display_fields (array): An array of fields to be displayed in the
  2481.                 saved view.
  2482.                    
  2483.  
  2484.                 The response to this request will be a JSON object representing the
  2485.                 created saved view, and you can document the response as a JSON schema.
  2486.             operationId: addView
  2487.             requestBody:
  2488.                 content:
  2489.                     application/json:
  2490.                         schema:
  2491.                             type: object
  2492.                             properties:
  2493.                                 display_fields:
  2494.                                     type: array
  2495.                                     items:
  2496.                                         type: string
  2497.                                         example: title
  2498.                                     example:
  2499.                                        - title
  2500.                                         - created
  2501.                                         - tag
  2502.                                         - correspondent
  2503.                                         - documenttype
  2504.                                         - storagepath
  2505.                                         - note
  2506.                                         - owner
  2507.                                         - shared
  2508.                                         - asn
  2509.                                         - pagecount
  2510.                                         - custom_field_1
  2511.                                         - added
  2512.                                 display_mode:
  2513.                                     type: string
  2514.                                     example: smallCards
  2515.                                 filter_rules:
  2516.                                     type: array
  2517.                                     items:
  2518.                                         type: object
  2519.                                         properties:
  2520.                                             rule_type:
  2521.                                                 type: number
  2522.                                                 example: 30
  2523.                                             value:
  2524.                                                 type: string
  2525.                                                 example: '6'
  2526.                                     example:
  2527.                                         - rule_type: 30
  2528.                                           value: '6'
  2529.                                 name:
  2530.                                     type: string
  2531.                                     example: ppp
  2532.                                 show_in_sidebar:
  2533.                                     type: boolean
  2534.                                     example: true
  2535.                                 show_on_dashboard:
  2536.                                     type: boolean
  2537.                                     example: true
  2538.                                 sort_field:
  2539.                                     type: string
  2540.                                     example: created
  2541.                                 sort_reverse:
  2542.                                     type: boolean
  2543.                                     example: true
  2544.                         example:
  2545.                             display_fields:
  2546.                                - title
  2547.                                 - created
  2548.                                 - tag
  2549.                                 - correspondent
  2550.                                 - documenttype
  2551.                                 - storagepath
  2552.                                 - note
  2553.                                 - owner
  2554.                                 - shared
  2555.                                 - asn
  2556.                                 - pagecount
  2557.                                 - custom_field_1
  2558.                                 - added
  2559.                             display_mode: smallCards
  2560.                             filter_rules:
  2561.                                 - rule_type: 30
  2562.                                   value: '6'
  2563.                             name: ppp
  2564.                             show_in_sidebar: true
  2565.                             show_on_dashboard: true
  2566.                             sort_field: created
  2567.                             sort_reverse: true
  2568.             responses:
  2569.                 '200':
  2570.                     description: ''
  2571.     /api/saved_views/{viewId}/:
  2572.         put:
  2573.             tags:
  2574.                - Views
  2575.             summary: Update view
  2576.             description: >-
  2577.                 ## Update Saved View
  2578.  
  2579.  
  2580.                 This endpoint allows updating a specific saved view identified by the
  2581.                 `viewId`.
  2582.  
  2583.  
  2584.                 ### Request
  2585.  
  2586.  
  2587.                 - Method: PUT
  2588.                    
  2589.                 - URL: `/api/saved_views//`
  2590.                    
  2591.  
  2592.                 #### Request Body
  2593.  
  2594.  
  2595.                 - Type: JSON
  2596.                    
  2597.  
  2598.                 | Key | Type | Description |
  2599.                 | --- | --- | --- |
  2600.  
  2601.                 | id |  | The ID of the view |
  2602.  
  2603.                 | name |  | The name of the view |
  2604.  
  2605.                 | show_on_dashboard |  | Indicates if the view should be shown on the
  2606.                 dashboard |
  2607.                 | show_in_sidebar |  | Indicates if the view should be shown in the
  2608.                 sidebar |
  2609.                 | filter_rules |  | An array of filter rules containing rule type and
  2610.                 value |
  2611.                 | sort_field |  | The field to be used for sorting |
  2612.  
  2613.                 | sort_reverse |  | Indicates if the sorting should be in reverse order
  2614.                 |
  2615.                 | display_mode |  | The display mode of the view |
  2616.  
  2617.                 | owner |  | The ID of the owner of the view |
  2618.  
  2619.  
  2620.                 #### Example
  2621.  
  2622.  
  2623.                 ``` json
  2624.  
  2625.                 {
  2626.                   "id": 1,
  2627.                   "name": "sah-annahutte",
  2628.                   "show_on_dashboard": true,
  2629.                   "show_in_sidebar": true,
  2630.                   "filter_rules": [
  2631.                     {
  2632.                       "rule_type": 30,
  2633.                       "value": "5"
  2634.                     }
  2635.                   ],
  2636.                   "sort_field": "created",
  2637.                   "sort_reverse": true,
  2638.                   "display_mode": "smallCards",
  2639.                   "owner": 5
  2640.                 }
  2641.  
  2642.                 ### Response
  2643.  
  2644.                 The response of this request is not provided.
  2645.  
  2646.                  ```
  2647.             operationId: updateView
  2648.             requestBody:
  2649.                 content:
  2650.                     application/json:
  2651.                         schema:
  2652.                             type: object
  2653.                             properties:
  2654.                                 display_mode:
  2655.                                     type: string
  2656.                                     example: smallCards
  2657.                                 filter_rules:
  2658.                                     type: array
  2659.                                     items:
  2660.                                         type: object
  2661.                                         properties:
  2662.                                             rule_type:
  2663.                                                 type: number
  2664.                                                 example: 30
  2665.                                             value:
  2666.                                                 type: string
  2667.                                                 example: '5'
  2668.                                     example:
  2669.                                         - rule_type: 30
  2670.                                           value: '5'
  2671.                                 id:
  2672.                                     type: number
  2673.                                     example: 1
  2674.                                 name:
  2675.                                     type: string
  2676.                                     example: sah-annahutte
  2677.                                 owner:
  2678.                                     type: number
  2679.                                     example: 5
  2680.                                 show_in_sidebar:
  2681.                                     type: boolean
  2682.                                     example: true
  2683.                                 show_on_dashboard:
  2684.                                     type: boolean
  2685.                                     example: true
  2686.                                 sort_field:
  2687.                                     type: string
  2688.                                     example: created
  2689.                                 sort_reverse:
  2690.                                     type: boolean
  2691.                                     example: true
  2692.                         example:
  2693.                             display_mode: smallCards
  2694.                             filter_rules:
  2695.                                 - rule_type: 30
  2696.                                   value: '5'
  2697.                             id: 1
  2698.                             name: sah-annahutte
  2699.                             owner: 5
  2700.                             show_in_sidebar: true
  2701.                             show_on_dashboard: true
  2702.                             sort_field: created
  2703.                             sort_reverse: true
  2704.             responses:
  2705.                 '200':
  2706.                     description: ''
  2707.         delete:
  2708.             tags:
  2709.                - Views
  2710.             summary: Delete view
  2711.             description: >-
  2712.                 ## Delete Saved View
  2713.  
  2714.  
  2715.                 This endpoint is used to delete a specific saved view identified by the
  2716.                 `viewId`.
  2717.  
  2718.  
  2719.                 ### Request
  2720.  
  2721.  
  2722.                 - Method: DELETE
  2723.                    
  2724.                 - URL: `/api/saved_views//`
  2725.                    
  2726.  
  2727.                 ### Response
  2728.  
  2729.  
  2730.                 Upon successful execution, this request returns a status code of 204 and
  2731.                 the content type is `text/xml`.
  2732.             operationId: deleteView
  2733.             responses:
  2734.                 '200':
  2735.                     description: ''
  2736.         parameters:
  2737.             - name: viewId
  2738.               in: path
  2739.               required: true
  2740.               schema:
  2741.                   type: string
  2742.     /api/correspondents/:
  2743.         get:
  2744.             tags:
  2745.                - Correspondents
  2746.             summary: Get correspondents
  2747.             description: >-
  2748.                 ### API Request Description
  2749.  
  2750.  
  2751.                 This endpoint is a GET request to retrieve correspondents. The request
  2752.                 takes query parameters including the page number, the timestamp of the
  2753.                 last correspondence, and a flag for full permissions.
  2754.  
  2755.  
  2756.                 ### Request Body
  2757.  
  2758.  
  2759.                 This request does not require a request body.
  2760.  
  2761.  
  2762.                 ### Response Body
  2763.  
  2764.  
  2765.                 The response is in JSON format and includes a "detail" field. Here is
  2766.                 the JSON schema for the response:
  2767.  
  2768.                 ``` json
  2769.  
  2770.                 {
  2771.                   "type": "object",
  2772.                   "properties": {
  2773.                     "detail": {
  2774.                       "type": "string"
  2775.                     }
  2776.                   }
  2777.                 }
  2778.  
  2779.                  ```
  2780.             operationId: getCorrespondents
  2781.             parameters:
  2782.                 - name: id__in
  2783.                   in: query
  2784.                   schema:
  2785.                       type: string
  2786.                       example: ''
  2787.                 - name: id
  2788.                   in: query
  2789.                   schema:
  2790.                       type: string
  2791.                       example: ''
  2792.                 - name: name__istartswith
  2793.                   in: query
  2794.                   schema:
  2795.                       type: string
  2796.                       example: ''
  2797.                 - name: name__iendswith
  2798.                   in: query
  2799.                   schema:
  2800.                       type: string
  2801.                       example: ''
  2802.                 - name: name__icontains
  2803.                   in: query
  2804.                   schema:
  2805.                       type: string
  2806.                       example: ''
  2807.                 - name: name__iexact
  2808.                   in: query
  2809.                   schema:
  2810.                       type: string
  2811.                       example: ''
  2812.                 - name: page
  2813.                   in: query
  2814.                   schema:
  2815.                       type: string
  2816.                       example: ''
  2817.                 - name: last_correspondence
  2818.                   in: query
  2819.                   schema:
  2820.                       type: string
  2821.                       example: ''
  2822.                 - name: full_perms
  2823.                   in: query
  2824.                   schema:
  2825.                       type: string
  2826.                       example: 'true'
  2827.                 - name: ordering
  2828.                   in: query
  2829.                   schema:
  2830.                       type: string
  2831.             responses:
  2832.                 '200':
  2833.                     description: ''
  2834.         post:
  2835.             tags:
  2836.                - Correspondents
  2837.             summary: Add correspondent
  2838.             description: >-
  2839.                 ### Add Correspondent
  2840.  
  2841.  
  2842.                 This endpoint allows the user to add a new correspondent.
  2843.  
  2844.  
  2845.                 #### Request Body
  2846.  
  2847.  
  2848.                 - name (string, required): The name of the correspondent.
  2849.                    
  2850.                 - matching_algorithm (integer, required): The matching algorithm to be
  2851.                 used for this correspondent.
  2852.                    
  2853.                 - match (string, required): The match criteria for the correspondent.
  2854.                    
  2855.                 - is_insensitive (boolean, required): Indicates if the matching should
  2856.                 be case insensitive.
  2857.                    
  2858.                 - owner (integer, required): The ID of the owner of the correspondent.
  2859.                    
  2860.                 - set_permissions (object, required): The permissions set for the
  2861.                 correspondent.
  2862.                    
  2863.                     - view (object, required): The view permissions.
  2864.                        
  2865.                         - users (array): The list of user IDs with view permissions.
  2866.                            
  2867.                         - groups (array): The list of group IDs with view permissions.
  2868.                            
  2869.                     - change (object, required): The change permissions.
  2870.                        
  2871.                         - users (array): The list of user IDs with change permissions.
  2872.                            
  2873.                         - groups (array): The list of group IDs with change permissions.
  2874.                            
  2875.  
  2876.                 #### Response
  2877.  
  2878.  
  2879.                 The response of this request is a JSON schema describing the structure
  2880.                 of the correspondent object.
  2881.             operationId: addCorrespondent
  2882.             requestBody:
  2883.                 content:
  2884.                     application/json:
  2885.                         schema:
  2886.                             type: object
  2887.                             properties:
  2888.                                 is_insensitive:
  2889.                                     type: boolean
  2890.                                     example: true
  2891.                                 match:
  2892.                                     type: string
  2893.                                     example: ''
  2894.                                 matching_algorithm:
  2895.                                     type: number
  2896.                                     example: 6
  2897.                                 name:
  2898.                                     type: string
  2899.                                     example: Prova
  2900.                                 owner:
  2901.                                     type: number
  2902.                                     example: 3
  2903.                                 set_permissions:
  2904.                                     type: object
  2905.                                     properties:
  2906.                                         change:
  2907.                                             type: object
  2908.                                             properties:
  2909.                                                 groups:
  2910.                                                     type: array
  2911.                                                     items:
  2912.                                                         type: number
  2913.                                                         example: 3
  2914.                                                     example:
  2915.                                                        - 3
  2916.                                                 users:
  2917.                                                     type: array
  2918.                                                     items:
  2919.                                                         type: number
  2920.                                                         example: 3
  2921.                                                     example:
  2922.                                                        - 3
  2923.                                         view:
  2924.                                             type: object
  2925.                                             properties:
  2926.                                                 groups:
  2927.                                                     type: array
  2928.                                                     items:
  2929.                                                         type: number
  2930.                                                         example: 3
  2931.                                                     example:
  2932.                                                        - 3
  2933.                                                 users:
  2934.                                                     type: array
  2935.                                                     items:
  2936.                                                         type: number
  2937.                                                         example: 4
  2938.                                                     example:
  2939.                                                        - 4
  2940.                         example:
  2941.                             is_insensitive: true
  2942.                             match: ''
  2943.                             matching_algorithm: 6
  2944.                             name: Prova
  2945.                             owner: 3
  2946.                             set_permissions:
  2947.                                 change:
  2948.                                     groups:
  2949.                                        - 3
  2950.                                     users:
  2951.                                        - 3
  2952.                                 view:
  2953.                                     groups:
  2954.                                        - 3
  2955.                                     users:
  2956.                                        - 4
  2957.             responses:
  2958.                 '200':
  2959.                     description: ''
  2960.     /api/correspondents/{corrId}/:
  2961.         put:
  2962.             tags:
  2963.                - Correspondents
  2964.             summary: Update correspondent
  2965.             description: >-
  2966.                 ### Update Correspondent Details
  2967.  
  2968.  
  2969.                 This endpoint allows the client to update the details of a specific
  2970.                 correspondent.
  2971.  
  2972.  
  2973.                 #### Request Body
  2974.  
  2975.  
  2976.                 - `id` (number): The unique identifier of the correspondent.
  2977.                    
  2978.                 - `slug` (string): The unique slug of the correspondent.
  2979.                    
  2980.                 - `name` (string): The name of the correspondent.
  2981.                    
  2982.                 - `match` (string): The match value.
  2983.                    
  2984.                 - `matching_algorithm` (number): The matching algorithm used.
  2985.                    
  2986.                 - `is_insensitive` (boolean): Indicates if the matching is
  2987.                 case-insensitive.
  2988.                    
  2989.                 - `document_count` (number): The count of documents associated with the
  2990.                 correspondent.
  2991.                    
  2992.                 - `last_correspondence` (null): The last correspondence details.
  2993.                    
  2994.                 - `owner` (number): The owner of the correspondent.
  2995.                    
  2996.                 - `permissions` (object): The permissions object containing view and
  2997.                 change permissions for users and groups.
  2998.                    
  2999.                     - `view` (object): View permissions for users and groups.
  3000.                        
  3001.                         - `users` (array): Array of user IDs with view permissions.
  3002.                            
  3003.                         - `groups` (array): Array of group IDs with view permissions.
  3004.                            
  3005.                     - `change` (object): Change permissions for users and groups.
  3006.                        
  3007.                         - `users` (array): Array of user IDs with change permissions.
  3008.                            
  3009.                         - `groups` (array): Array of group IDs with change permissions.
  3010.                            
  3011.                 - `set_permissions` (object): The set permissions object containing view
  3012.                 and change permissions for users and groups.
  3013.                    
  3014.                     - `view` (object): View permissions for users and groups.
  3015.                        
  3016.                         - `users` (array): Array of user IDs with view permissions.
  3017.                            
  3018.                         - `groups` (array): Array of group IDs with view permissions.
  3019.                            
  3020.                     - `change` (object): Change permissions for users and groups.
  3021.                        
  3022.                         - `users` (array): Array of user IDs with change permissions.
  3023.                            
  3024.                         - `groups` (array): Array of group IDs with change permissions.
  3025.                            
  3026.                 - `permissions_form` (object): The permissions form details.
  3027.                    
  3028.                     - `owner` (number): The owner of the correspondent.
  3029.                        
  3030.                     - `set_permissions` (object): The set permissions object containing view and change permissions for users and groups.
  3031.                        
  3032.                         - `view` (object): View permissions for users and groups.
  3033.                            
  3034.                             - `users` (array): Array of user IDs with view permissions.
  3035.                                
  3036.                             - `groups` (array): Array of group IDs with view permissions.
  3037.                                
  3038.                         - `change` (object): Change permissions for users and groups.
  3039.                            
  3040.                             - `users` (array): Array of user IDs with change permissions.
  3041.                                
  3042.                             - `groups` (array): Array of group IDs with change permissions.
  3043.                                
  3044.  
  3045.                 #### Response
  3046.  
  3047.  
  3048.                 ``` json
  3049.  
  3050.                 {
  3051.                   "status": "success",
  3052.                   "message": "Correspondent details updated successfully"
  3053.                 }
  3054.  
  3055.                  ```
  3056.             operationId: updateCorrespondent
  3057.             requestBody:
  3058.                 content:
  3059.                     application/json:
  3060.                         schema:
  3061.                             type: object
  3062.                             properties:
  3063.                                 document_count:
  3064.                                     type: number
  3065.                                     example: 0
  3066.                                 id:
  3067.                                     type: number
  3068.                                     example: 1
  3069.                                 is_insensitive:
  3070.                                     type: boolean
  3071.                                     example: true
  3072.                                 last_correspondence:
  3073.                                     nullable: true
  3074.                                     example: null
  3075.                                 match:
  3076.                                     type: string
  3077.                                     example: ''
  3078.                                 matching_algorithm:
  3079.                                     type: number
  3080.                                     example: 2
  3081.                                 name:
  3082.                                     type: string
  3083.                                     example: Prova
  3084.                                 owner:
  3085.                                     type: number
  3086.                                     example: 3
  3087.                                 permissions:
  3088.                                     type: object
  3089.                                     properties:
  3090.                                         change:
  3091.                                             type: object
  3092.                                             properties:
  3093.                                                 groups:
  3094.                                                     type: array
  3095.                                                     items:
  3096.                                                         type: number
  3097.                                                         example: 3
  3098.                                                     example:
  3099.                                                        - 3
  3100.                                                 users:
  3101.                                                     type: array
  3102.                                                     items:
  3103.                                                         type: number
  3104.                                                         example: 4
  3105.                                                     example:
  3106.                                                        - 4
  3107.                                         view:
  3108.                                             type: object
  3109.                                             properties:
  3110.                                                 groups:
  3111.                                                     type: array
  3112.                                                     items:
  3113.                                                         type: number
  3114.                                                         example: 3
  3115.                                                     example:
  3116.                                                        - 3
  3117.                                                 users:
  3118.                                                     type: array
  3119.                                                     items:
  3120.                                                         type: number
  3121.                                                         example: 3
  3122.                                                     example:
  3123.                                                        - 3
  3124.                                                         - 4
  3125.                                 permissions_form:
  3126.                                     type: object
  3127.                                     properties:
  3128.                                         owner:
  3129.                                             type: number
  3130.                                             example: 3
  3131.                                         set_permissions:
  3132.                                             type: object
  3133.                                             properties:
  3134.                                                 change:
  3135.                                                     type: object
  3136.                                                     properties:
  3137.                                                         groups:
  3138.                                                             type: array
  3139.                                                             items:
  3140.                                                                 type: number
  3141.                                                                 example: 3
  3142.                                                             example:
  3143.                                                                - 3
  3144.                                                         users:
  3145.                                                             type: array
  3146.                                                             items:
  3147.                                                                 type: number
  3148.                                                                 example: 4
  3149.                                                             example:
  3150.                                                                - 4
  3151.                                                 view:
  3152.                                                     type: object
  3153.                                                     properties:
  3154.                                                         groups:
  3155.                                                             type: array
  3156.                                                             items:
  3157.                                                                 type: number
  3158.                                                                 example: 3
  3159.                                                             example:
  3160.                                                                - 3
  3161.                                                         users:
  3162.                                                             type: array
  3163.                                                             items:
  3164.                                                                 type: number
  3165.                                                                 example: 3
  3166.                                                             example:
  3167.                                                                - 3
  3168.                                                                 - 4
  3169.                                 set_permissions:
  3170.                                     type: object
  3171.                                     properties:
  3172.                                         change:
  3173.                                             type: object
  3174.                                             properties:
  3175.                                                 groups:
  3176.                                                     type: array
  3177.                                                     items:
  3178.                                                         type: number
  3179.                                                         example: 3
  3180.                                                     example:
  3181.                                                        - 3
  3182.                                                 users:
  3183.                                                     type: array
  3184.                                                     items:
  3185.                                                         type: number
  3186.                                                         example: 4
  3187.                                                     example:
  3188.                                                        - 4
  3189.                                         view:
  3190.                                             type: object
  3191.                                             properties:
  3192.                                                 groups:
  3193.                                                     type: array
  3194.                                                     items: {}
  3195.                                                     example: []
  3196.                                                 users:
  3197.                                                     type: array
  3198.                                                     items:
  3199.                                                         type: number
  3200.                                                         example: 3
  3201.                                                     example:
  3202.                                                        - 3
  3203.                                                         - 4
  3204.                                 slug:
  3205.                                     type: string
  3206.                                     example: prova
  3207.                         example:
  3208.                             document_count: 0
  3209.                             id: 1
  3210.                             is_insensitive: true
  3211.                             last_correspondence: null
  3212.                             match: ''
  3213.                             matching_algorithm: 2
  3214.                             name: Prova
  3215.                             owner: 3
  3216.                             permissions:
  3217.                                 change:
  3218.                                     groups:
  3219.                                        - 3
  3220.                                     users:
  3221.                                        - 4
  3222.                                 view:
  3223.                                     groups:
  3224.                                        - 3
  3225.                                     users:
  3226.                                        - 3
  3227.                                         - 4
  3228.                             permissions_form:
  3229.                                 owner: 3
  3230.                                 set_permissions:
  3231.                                     change:
  3232.                                         groups:
  3233.                                            - 3
  3234.                                         users:
  3235.                                            - 4
  3236.                                     view:
  3237.                                         groups:
  3238.                                            - 3
  3239.                                         users:
  3240.                                            - 3
  3241.                                             - 4
  3242.                             set_permissions:
  3243.                                 change:
  3244.                                     groups:
  3245.                                        - 3
  3246.                                     users:
  3247.                                        - 4
  3248.                                 view:
  3249.                                     groups: []
  3250.                                     users:
  3251.                                        - 3
  3252.                                         - 4
  3253.                             slug: prova
  3254.             responses:
  3255.                 '200':
  3256.                     description: ''
  3257.         delete:
  3258.             tags:
  3259.                - Correspondents
  3260.             summary: Delete correspondent
  3261.             description: >-
  3262.                 ### Delete Correspondent
  3263.  
  3264.  
  3265.                 This endpoint is used to delete a specific correspondent identified by
  3266.                 the `corrId`.
  3267.  
  3268.  
  3269.                 #### Request
  3270.  
  3271.  
  3272.                 - Method: DELETE
  3273.                    
  3274.                 - URL: `/api/correspondents//`
  3275.                    
  3276.  
  3277.                 #### Request Body
  3278.  
  3279.  
  3280.                 This request does not require a request body.
  3281.  
  3282.  
  3283.                 #### Response
  3284.  
  3285.  
  3286.                 The response for this request is a JSON schema with the following
  3287.                 properties:
  3288.  
  3289.                 - `message`: A string indicating the result of the deletion operation.
  3290.             operationId: deleteCorrespondent
  3291.             responses:
  3292.                 '200':
  3293.                     description: ''
  3294.         parameters:
  3295.             - name: corrId
  3296.               in: path
  3297.               required: true
  3298.               schema:
  3299.                   type: string
  3300.     /api/tags/:
  3301.         get:
  3302.             tags:
  3303.                - Tags
  3304.             summary: Get tags
  3305.             description: >-
  3306.                 # Get Tags
  3307.  
  3308.  
  3309.                 This endpoint retrieves tags with optional pagination and permission
  3310.                 filtering.
  3311.  
  3312.  
  3313.                 ## Request
  3314.  
  3315.  
  3316.                 ### Query Parameters
  3317.  
  3318.  
  3319.                 - `page` (integer, required): The page number for paginated results.
  3320.                    
  3321.                 - `full_perms` (boolean, required): Indicates whether to include tags
  3322.                 with full permissions.
  3323.                    
  3324.  
  3325.                 ## Response
  3326.  
  3327.  
  3328.                 The response for this request is a JSON object conforming to the
  3329.                 following schema:
  3330.  
  3331.                 ``` json
  3332.  
  3333.                 {
  3334.                   "type": "object",
  3335.                   "properties": {
  3336.                     "tags": {
  3337.                       "type": "array",
  3338.                       "items": {
  3339.                         "type": "object",
  3340.                         "properties": {
  3341.                           "id": {
  3342.                             "type": "string"
  3343.                           },
  3344.                           "name": {
  3345.                             "type": "string"
  3346.                           },
  3347.                           "permissions": {
  3348.                             "type": "object",
  3349.                             "properties": {
  3350.                               "read": {
  3351.                                 "type": "boolean"
  3352.                               },
  3353.                               "write": {
  3354.                                 "type": "boolean"
  3355.                               }
  3356.                             }
  3357.                           }
  3358.                         }
  3359.                       }
  3360.                     },
  3361.                     "total": {
  3362.                       "type": "integer"
  3363.                     }
  3364.                   }
  3365.                 }
  3366.  
  3367.                  ```
  3368.             operationId: getTags
  3369.             parameters:
  3370.                 - name: id__in
  3371.                   in: query
  3372.                   schema:
  3373.                       type: string
  3374.                       example: ''
  3375.                 - name: id
  3376.                   in: query
  3377.                   schema:
  3378.                       type: string
  3379.                       example: ''
  3380.                 - name: name__istartswith
  3381.                   in: query
  3382.                   schema:
  3383.                       type: string
  3384.                       example: ''
  3385.                 - name: name__iendswith
  3386.                   in: query
  3387.                   schema:
  3388.                       type: string
  3389.                       example: ''
  3390.                 - name: name__icontains
  3391.                   in: query
  3392.                   schema:
  3393.                       type: string
  3394.                       example: ''
  3395.                 - name: name__iexact
  3396.                   in: query
  3397.                   schema:
  3398.                       type: string
  3399.                       example: ''
  3400.                 - name: full_perms
  3401.                   in: query
  3402.                   schema:
  3403.                       type: string
  3404.                       example: 'true'
  3405.                 - name: ordering
  3406.                   in: query
  3407.                   schema:
  3408.                       type: string
  3409.             responses:
  3410.                 '200':
  3411.                     description: ''
  3412.         post:
  3413.             tags:
  3414.                - Tags
  3415.             summary: Add tag
  3416.             description: >-
  3417.                 ### Create a New Tag
  3418.  
  3419.  
  3420.                 This endpoint allows you to create a new tag.
  3421.  
  3422.  
  3423.                 #### Request Body
  3424.  
  3425.  
  3426.                 - `name` (string, required): The name of the tag.
  3427.                    
  3428.                 - `color` (string, required): The color code of the tag.
  3429.                    
  3430.                 - `is_inbox_tag` (boolean, required): Indicates if the tag is an inbox
  3431.                 tag.
  3432.                    
  3433.                 - `matching_algorithm` (integer, required): The matching algorithm for
  3434.                 the tag.
  3435.                    
  3436.                 - `match` (string, required): The matching criteria for the tag.
  3437.                    
  3438.                 - `is_insensitive` (boolean, required): Indicates if the matching is
  3439.                 case insensitive.
  3440.                    
  3441.                 - `owner` (integer, required): The owner of the tag.
  3442.                    
  3443.                 - `set_permissions` (object, required): The permissions set for the tag.
  3444.                    
  3445.                     - `view` (object, required): The view permissions for the tag.
  3446.                        
  3447.                         - `users` (array of integers, required): The users allowed to view the tag.
  3448.                            
  3449.                         - `groups` (array of integers, required): The groups allowed to view the tag.
  3450.                            
  3451.                     - `change` (object, required): The change permissions for the tag.
  3452.                        
  3453.                         - `users` (array of integers, required): The users allowed to change the tag.
  3454.                            
  3455.                         - `groups` (array of integers, required): The groups allowed to change the tag.
  3456.                            
  3457.  
  3458.                 #### Response (JSON Schema)
  3459.  
  3460.  
  3461.                 ``` json
  3462.  
  3463.                 {
  3464.                   "type": "object",
  3465.                   "properties": {
  3466.                     "id": {
  3467.                       "type": "integer"
  3468.                     },
  3469.                     "name": {
  3470.                       "type": "string"
  3471.                     },
  3472.                     "color": {
  3473.                       "type": "string"
  3474.                     },
  3475.                     "is_inbox_tag": {
  3476.                       "type": "boolean"
  3477.                     },
  3478.                     "matching_algorithm": {
  3479.                       "type": "integer"
  3480.                     },
  3481.                     "match": {
  3482.                       "type": "string"
  3483.                     },
  3484.                     "is_insensitive": {
  3485.                       "type": "boolean"
  3486.                     },
  3487.                     "owner": {
  3488.                       "type": "integer"
  3489.                     },
  3490.                     "set_permissions": {
  3491.                       "type": "object",
  3492.                       "properties": {
  3493.                         "view": {
  3494.                           "type": "object",
  3495.                           "properties": {
  3496.                             "users": {
  3497.                               "type": "array",
  3498.                               "items": {
  3499.                                 "type": "integer"
  3500.                               }
  3501.                             },
  3502.                             "groups": {
  3503.                               "type": "array",
  3504.                               "items": {
  3505.                                 "type": "integer"
  3506.                               }
  3507.                             }
  3508.                           }
  3509.                         },
  3510.                         "change": {
  3511.                           "type": "object",
  3512.                           "properties": {
  3513.                             "users": {
  3514.                               "type": "array",
  3515.                               "items": {
  3516.                                 "type": "integer"
  3517.                               }
  3518.                             },
  3519.                             "groups": {
  3520.                               "type": "array",
  3521.                               "items": {
  3522.                                 "type": "integer"
  3523.                               }
  3524.                             }
  3525.                           }
  3526.                         }
  3527.                       }
  3528.                     }
  3529.                   }
  3530.                 }
  3531.  
  3532.                  ```
  3533.             operationId: addTag
  3534.             requestBody:
  3535.                 content:
  3536.                     application/json:
  3537.                         schema:
  3538.                             type: object
  3539.                             properties:
  3540.                                 color:
  3541.                                     type: string
  3542.                                     example: '#c180df'
  3543.                                 is_inbox_tag:
  3544.                                     type: boolean
  3545.                                     example: false
  3546.                                 is_insensitive:
  3547.                                     type: boolean
  3548.                                     example: true
  3549.                                 match:
  3550.                                     type: string
  3551.                                     example: ''
  3552.                                 matching_algorithm:
  3553.                                     type: number
  3554.                                     example: 6
  3555.                                 name:
  3556.                                     type: string
  3557.                                     example: tag
  3558.                                 owner:
  3559.                                     type: number
  3560.                                     example: 3
  3561.                                 set_permissions:
  3562.                                     type: object
  3563.                                     properties:
  3564.                                         change:
  3565.                                             type: object
  3566.                                             properties:
  3567.                                                 groups:
  3568.                                                     type: array
  3569.                                                     items:
  3570.                                                         type: number
  3571.                                                         example: 3
  3572.                                                     example:
  3573.                                                        - 3
  3574.                                                 users:
  3575.                                                     type: array
  3576.                                                     items:
  3577.                                                         type: number
  3578.                                                         example: 3
  3579.                                                     example:
  3580.                                                        - 3
  3581.                                         view:
  3582.                                             type: object
  3583.                                             properties:
  3584.                                                 groups:
  3585.                                                     type: array
  3586.                                                     items:
  3587.                                                         type: number
  3588.                                                         example: 3
  3589.                                                     example:
  3590.                                                        - 3
  3591.                                                 users:
  3592.                                                     type: array
  3593.                                                     items:
  3594.                                                         type: number
  3595.                                                         example: 4
  3596.                                                     example:
  3597.                                                        - 4
  3598.                         example:
  3599.                             color: '#c180df'
  3600.                             is_inbox_tag: false
  3601.                             is_insensitive: true
  3602.                             match: ''
  3603.                             matching_algorithm: 6
  3604.                             name: tag
  3605.                             owner: 3
  3606.                             set_permissions:
  3607.                                 change:
  3608.                                     groups:
  3609.                                        - 3
  3610.                                     users:
  3611.                                        - 3
  3612.                                 view:
  3613.                                     groups:
  3614.                                        - 3
  3615.                                     users:
  3616.                                        - 4
  3617.             responses:
  3618.                 '200':
  3619.                     description: ''
  3620.     /api/tags/{tagId}/:
  3621.         put:
  3622.             tags:
  3623.                - Tags
  3624.             summary: Update tag
  3625.             description: >-
  3626.                 ### Update Tag Details
  3627.  
  3628.  
  3629.                 This endpoint allows the user to update the details of a specific tag.
  3630.  
  3631.  
  3632.                 #### Request Body
  3633.  
  3634.  
  3635.                 - `id` (integer): The unique identifier of the tag.
  3636.                    
  3637.                 - `slug` (string): The slug of the tag.
  3638.                    
  3639.                 - `name` (string): The name of the tag.
  3640.                    
  3641.                 - `color` (string): The color code associated with the tag.
  3642.                    
  3643.                 - `text_color` (string): The text color code for the tag.
  3644.                    
  3645.                 - `match` (string): The matching criteria for the tag.
  3646.                    
  3647.                 - `matching_algorithm` (integer): The matching algorithm used for the
  3648.                 tag.
  3649.                    
  3650.                 - `is_insensitive` (boolean): Indicates if the tag matching is case
  3651.                 insensitive.
  3652.                    
  3653.                 - `is_inbox_tag` (boolean): Indicates if the tag is an inbox tag.
  3654.                    
  3655.                 - `document_count` (integer): The count of documents associated with the
  3656.                 tag.
  3657.                    
  3658.                 - `owner` (integer): The user ID of the tag owner.
  3659.                    
  3660.                 - `permissions` (object): The permissions for viewing and changing the
  3661.                 tag, including users and groups.
  3662.                    
  3663.                 - `set_permissions` (object): The set permissions for viewing and
  3664.                 changing the tag, including users and groups.
  3665.                    
  3666.                 - `permissions_form` (object): The permissions form for the tag,
  3667.                 including owner and set permissions.
  3668.                    
  3669.  
  3670.                 #### Response
  3671.  
  3672.  
  3673.                 The response will contain the updated details of the tag.
  3674.             operationId: updateTag
  3675.             requestBody:
  3676.                 content:
  3677.                     text/plain:
  3678.                         example: "{\r\n    \"id\": 1,\r\n    \"slug\": \"tagprova\",\r\n    \"name\": \"tagProva\",\r\n    \"color\": \"#a6cee3\",\r\n    \"text_color\": \"#000000\",\r\n    \"match\": \"\",\r\n    \"matching_algorithm\": 6,\r\n    \"is_insensitive\": true,\r\n    \"is_inbox_tag\": false,\r\n    \"document_count\": 0,\r\n    \"owner\": 3,\r\n    //old permissions\r\n    \"permissions\": {\r\n        \"view\": {\r\n            \"users\": [\r\n                3,\r\n                4\r\n            ],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        },\r\n        \"change\": {\r\n            \"users\": [\r\n                3\r\n            ],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        }\r\n    },\r\n    //new permissions\r\n    \"set_permissions\": {\r\n        \"view\": {\r\n            \"users\": [\r\n                4,\r\n                3,\r\n                5\r\n            ],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        },\r\n        \"change\": {\r\n            \"users\": [],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        }\r\n    },\r\n    \"permissions_form\": {\r\n        \"owner\": 3,\r\n        \"set_permissions\": {\r\n            \"view\": {\r\n                \"users\": [\r\n                    3,\r\n                    4\r\n                ],\r\n                \"groups\": [\r\n                    3\r\n                ]\r\n            },\r\n            \"change\": {\r\n                \"users\": [\r\n                    3\r\n                ],\r\n                \"groups\": [\r\n                    3\r\n                ]\r\n            }\r\n        }\r\n    }\r\n}"
  3679.             responses:
  3680.                 '200':
  3681.                     description: ''
  3682.         delete:
  3683.             tags:
  3684.                - Tags
  3685.             summary: Delete tag
  3686.             description: >-
  3687.                 This endpoint is used to delete a specific tag by its ID.
  3688.  
  3689.  
  3690.                 ### Request
  3691.  
  3692.  
  3693.                 - Method: `DELETE`
  3694.                    
  3695.                 - Endpoint: `/api/tags//`
  3696.                    
  3697.  
  3698.                 ### Response
  3699.  
  3700.  
  3701.                 The response of this request is a JSON schema representing the deleted
  3702.                 tag. The schema includes the properties related to the tag such as ID,
  3703.                 name, description, and any other relevant details.
  3704.  
  3705.  
  3706.                 Example JSON schema:
  3707.  
  3708.                 ``` json
  3709.  
  3710.                 {
  3711.                   "type": "object",
  3712.                   "properties": {
  3713.                     "tagId": {
  3714.                       "type": "string"
  3715.                     },
  3716.                     "name": {
  3717.                       "type": "string"
  3718.                     },
  3719.                     "description": {
  3720.                       "type": "string"
  3721.                     },
  3722.                     "createdAt": {
  3723.                       "type": "string",
  3724.                       "format": "date-time"
  3725.                     },
  3726.                     "updatedAt": {
  3727.                       "type": "string",
  3728.                       "format": "date-time"
  3729.                     }
  3730.                   }
  3731.                 }
  3732.  
  3733.                  ```
  3734.             operationId: deleteTag
  3735.             responses:
  3736.                 '200':
  3737.                     description: ''
  3738.         parameters:
  3739.             - name: tagId
  3740.               in: path
  3741.               required: true
  3742.               schema:
  3743.                   type: string
  3744.     /api/document_types/:
  3745.         get:
  3746.             tags:
  3747.                - Document types
  3748.             summary: Get document types
  3749.             description: >-
  3750.                 This endpoint makes an HTTP GET request to retrieve a list of document
  3751.                 types. The request includes query parameters for page number and full
  3752.                 permissions. The response will have a status code of 404 and a JSON
  3753.                 content type. The response body will include a "detail" key with an
  3754.                 empty string value.
  3755.             operationId: getDocumentTypes
  3756.             parameters:
  3757.                 - name: page
  3758.                   in: query
  3759.                   schema:
  3760.                       type: string
  3761.                       example: ''
  3762.                 - name: full_perms
  3763.                   in: query
  3764.                   schema:
  3765.                       type: string
  3766.                       example: 'true'
  3767.                 - name: id__in
  3768.                   in: query
  3769.                   schema:
  3770.                       type: string
  3771.                       example: ''
  3772.                 - name: id
  3773.                   in: query
  3774.                   schema:
  3775.                       type: string
  3776.                       example: ''
  3777.                 - name: name__istartswith
  3778.                   in: query
  3779.                   schema:
  3780.                       type: string
  3781.                       example: ''
  3782.                 - name: name__iendswith
  3783.                   in: query
  3784.                   schema:
  3785.                       type: string
  3786.                       example: ''
  3787.                 - name: name__icontains
  3788.                   in: query
  3789.                   schema:
  3790.                       type: string
  3791.                       example: ''
  3792.                 - name: name__iexact
  3793.                   in: query
  3794.                   schema:
  3795.                       type: string
  3796.                       example: ''
  3797.                 - name: ordering
  3798.                   in: query
  3799.                   schema:
  3800.                       type: string
  3801.             responses:
  3802.                 '200':
  3803.                     description: ''
  3804.         post:
  3805.             tags:
  3806.                - Document types
  3807.             summary: Add document type
  3808.             description: >-
  3809.                 ### Add Document Type
  3810.  
  3811.  
  3812.                 This endpoint allows you to add a new document type.
  3813.  
  3814.  
  3815.                 #### Request Body
  3816.  
  3817.  
  3818.                 - `name` (string, required): The name of the document type.
  3819.                    
  3820.                 - `matching_algorithm` (integer, required): The matching algorithm for
  3821.                 the document type.
  3822.                    
  3823.                 - `match` (string, required): The match criteria for the document type.
  3824.                    
  3825.                 - `is_insensitive` (boolean, required): Indicates if the matching is
  3826.                 case insensitive.
  3827.                    
  3828.                 - `owner` (integer, required): The owner of the document type.
  3829.                    
  3830.                 - `set_permissions` (object, required): The permissions set for the
  3831.                 document type.
  3832.                    
  3833.                     - `view` (object, required): The view permissions for the document type.
  3834.                        
  3835.                         - `users` (array of integers, required): The users allowed to view the document type.
  3836.                            
  3837.                         - `groups` (array of integers, required): The groups allowed to view the document type.
  3838.                            
  3839.                     - `change` (object, required): The change permissions for the document type.
  3840.                        
  3841.                         - `users` (array of integers, required): The users allowed to change the document type.
  3842.                            
  3843.                         - `groups` (array of integers, required): The groups allowed to change the document type.
  3844.                            
  3845.  
  3846.                 #### Response
  3847.  
  3848.  
  3849.                 The response will contain the details of the newly added document type.
  3850.             operationId: addDocumentType
  3851.             requestBody:
  3852.                 content:
  3853.                     application/json:
  3854.                         schema:
  3855.                             type: object
  3856.                             properties:
  3857.                                 is_insensitive:
  3858.                                     type: boolean
  3859.                                     example: true
  3860.                                 match:
  3861.                                     type: string
  3862.                                     example: ''
  3863.                                 matching_algorithm:
  3864.                                     type: number
  3865.                                     example: 6
  3866.                                 name:
  3867.                                     type: string
  3868.                                     example: pdf
  3869.                                 owner:
  3870.                                     type: number
  3871.                                     example: 3
  3872.                                 set_permissions:
  3873.                                     type: object
  3874.                                     properties:
  3875.                                         change:
  3876.                                             type: object
  3877.                                             properties:
  3878.                                                 groups:
  3879.                                                     type: array
  3880.                                                     items:
  3881.                                                         type: number
  3882.                                                         example: 3
  3883.                                                     example:
  3884.                                                        - 3
  3885.                                                 users:
  3886.                                                     type: array
  3887.                                                     items:
  3888.                                                         type: number
  3889.                                                         example: 4
  3890.                                                     example:
  3891.                                                        - 4
  3892.                                         view:
  3893.                                             type: object
  3894.                                             properties:
  3895.                                                 groups:
  3896.                                                     type: array
  3897.                                                     items:
  3898.                                                         type: number
  3899.                                                         example: 3
  3900.                                                     example:
  3901.                                                        - 3
  3902.                                                 users:
  3903.                                                     type: array
  3904.                                                     items:
  3905.                                                         type: number
  3906.                                                         example: 3
  3907.                                                     example:
  3908.                                                        - 3
  3909.                         example:
  3910.                             is_insensitive: true
  3911.                             match: ''
  3912.                             matching_algorithm: 6
  3913.                             name: pdf
  3914.                             owner: 3
  3915.                             set_permissions:
  3916.                                 change:
  3917.                                     groups:
  3918.                                        - 3
  3919.                                     users:
  3920.                                        - 4
  3921.                                 view:
  3922.                                     groups:
  3923.                                        - 3
  3924.                                     users:
  3925.                                        - 3
  3926.             responses:
  3927.                 '200':
  3928.                     description: ''
  3929.     /api/document_types/{typeId}/:
  3930.         put:
  3931.             tags:
  3932.                - Document types
  3933.             summary: Update document type
  3934.             description: >-
  3935.                 ### Update Document Type
  3936.  
  3937.  
  3938.                 This endpoint allows the user to update a specific document type.
  3939.  
  3940.  
  3941.                 #### Request Body
  3942.  
  3943.  
  3944.                 - `id` (number): The unique identifier of the document type.
  3945.                    
  3946.                 - `slug` (string): The slug of the document type.
  3947.                    
  3948.                 - `name` (string): The name of the document type.
  3949.                    
  3950.                 - `match` (string): The match criteria for the document type.
  3951.                    
  3952.                 - `matching_algorithm` (number): The matching algorithm used for the
  3953.                 document type.
  3954.                    
  3955.                 - `is_insensitive` (boolean): Indicates if the matching is case
  3956.                 insensitive.
  3957.                    
  3958.                 - `document_count` (number): The count of documents associated with the
  3959.                 type.
  3960.                    
  3961.                 - `owner` (number): The user ID of the owner of the document type.
  3962.                    
  3963.                 - `permissions` (object): The permissions object for view and change
  3964.                 actions.
  3965.                    
  3966.                     - `view` (object): The view permissions for users and groups.
  3967.                        
  3968.                         - `users` (array): The list of user IDs with view permissions.
  3969.                            
  3970.                         - `groups` (array): The list of group IDs with view permissions.
  3971.                            
  3972.                     - `change` (object): The change permissions for users and groups.
  3973.                        
  3974.                         - `users` (array): The list of user IDs with change permissions.
  3975.                            
  3976.                         - `groups` (array): The list of group IDs with change permissions.
  3977.                            
  3978.                 - `set_permissions` (object): The set permissions object for view and
  3979.                 change actions.
  3980.                    
  3981.                     - `view` (object): The view permissions for users and groups.
  3982.                        
  3983.                         - `users` (array): The list of user IDs with view permissions.
  3984.                            
  3985.                         - `groups` (array): The list of group IDs with view permissions.
  3986.                            
  3987.                     - `change` (object): The change permissions for users and groups.
  3988.                        
  3989.                         - `users` (array): The list of user IDs with change permissions.
  3990.                            
  3991.                         - `groups` (array): The list of group IDs with change permissions.
  3992.                            
  3993.                 - `permissions_form` (object): The permissions form object containing
  3994.                 owner and set_permissions.
  3995.                    
  3996.                     - `owner` (number): The user ID of the owner of the document type.
  3997.                        
  3998.                     - `set_permissions` (object): The set permissions object for view and change actions.
  3999.                        
  4000.                         - `view` (object): The view permissions for users and groups.
  4001.                            
  4002.                             - `users` (array): The list of user IDs with view permissions.
  4003.                                
  4004.                             - `groups` (array): The list of group IDs with view permissions.
  4005.                                
  4006.                         - `change` (object): The change permissions for users and groups.
  4007.                            
  4008.                             - `users` (array): The list of user IDs with change permissions.
  4009.                                
  4010.                             - `groups` (array): The list of group IDs with change permissions.
  4011.                                
  4012.  
  4013.                 #### Response
  4014.  
  4015.  
  4016.                 The response of this request will be a JSON object conforming to the
  4017.                 schema defined for the document type.
  4018.             operationId: updateDocumentType
  4019.             requestBody:
  4020.                 content:
  4021.                     text/plain:
  4022.                         example: "{\r\n    \"id\": 1,\r\n    \"slug\": \"pdf\",\r\n    \"name\": \"pdf\",\r\n    \"match\": \"\",\r\n    \"matching_algorithm\": 6,\r\n    \"is_insensitive\": true,\r\n    \"document_count\": 0,\r\n    \"owner\": 3,\r\n    // old permissions\r\n    \"permissions\": {\r\n        \"view\": {\r\n            \"users\": [\r\n                3,\r\n                4\r\n            ],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        },\r\n        \"change\": {\r\n            \"users\": [\r\n                4\r\n            ],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        }\r\n    },\r\n    // new permissions\r\n    \"set_permissions\": {\r\n        \"view\": {\r\n            \"users\": [\r\n                3\r\n            ],\r\n            \"groups\": [\r\n                3\r\n            ]\r\n        },\r\n        \"change\": {\r\n            \"users\": [],\r\n            \"groups\": []\r\n        }\r\n    },\r\n    \"permissions_form\": {\r\n        \"owner\": 3,\r\n        \"set_permissions\": {\r\n            \"view\": {\r\n                \"users\": [\r\n                    3,\r\n                    4\r\n                ],\r\n                \"groups\": [\r\n                    3\r\n                ]\r\n            },\r\n            \"change\": {\r\n                \"users\": [\r\n                    4\r\n                ],\r\n                \"groups\": [\r\n                    3\r\n                ]\r\n            }\r\n        }\r\n    }\r\n}"
  4023.             responses:
  4024.                 '200':
  4025.                     description: ''
  4026.         delete:
  4027.             tags:
  4028.                - Document types
  4029.             summary: Delete document type
  4030.             description: >-
  4031.                 The API endpoint sends a DELETE request to the specified document type
  4032.                 using the unique typeId in the URL. Upon successful deletion, the
  4033.                 endpoint returns a JSON response with the schema representing the
  4034.                 response data.
  4035.             operationId: deleteDocumentType
  4036.             responses:
  4037.                 '200':
  4038.                     description: ''
  4039.         parameters:
  4040.             - name: typeId
  4041.               in: path
  4042.               required: true
  4043.               schema:
  4044.                   type: string
  4045.     /api/search/:
  4046.         get:
  4047.             tags:
  4048.                - Search
  4049.             summary: Search
  4050.             description: >-
  4051.                 This endpoint makes an HTTP GET request to retrieve search results based
  4052.                 on the provided query parameter. The request should include the query
  4053.                 parameter in the URL to specify the search term.
  4054.  
  4055.  
  4056.                 ### Request Parameters
  4057.  
  4058.  
  4059.                 - `query` (string, required): The search term to be used for retrieving
  4060.                 the results.
  4061.                    
  4062.  
  4063.                 ### Response
  4064.  
  4065.  
  4066.                 The response will include the search results based on the provided query
  4067.                 parameter.
  4068.             operationId: search
  4069.             parameters:
  4070.                 - name: query
  4071.                   in: query
  4072.                   schema:
  4073.                       type: string
  4074.                       example: ''
  4075.             responses:
  4076.                 '200':
  4077.                     description: ''
  4078. tags:
  4079.     - name: Storage paths
  4080.     - name: Documents
  4081.       description: Endpoints for managing documents
  4082.     - name: Custom fields
  4083.     - name: Groups
  4084.     - name: Users
  4085.     - name: Views
  4086.     - name: Correspondents
  4087.     - name: Tags
  4088.     - name: Document types
  4089.     - name: Search
  4090.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement