form_api 1.9.1 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80f32ae5eff2c08ae091c1d9de515617d97c2c5c6d86bc2e1dd0d16a14624bd0
4
- data.tar.gz: b73c11805ada83d4b2b50c7155408b04bdc3c9e80191833de8f1d78d8a5492c3
3
+ metadata.gz: '080c6ad5e07b710188158e45db7ecfbffd37b02c05e731278d51b80af49e668c'
4
+ data.tar.gz: ae91e06d7589ecc6cebe94a78a431110b7568075331bc838c3f940de2c5d088a
5
5
  SHA512:
6
- metadata.gz: 8feaf13ab7b4f0f00810e0aeddc449629d1634a64d009f5a0ac83f68d26f3fe92f3f30b5a596df968586d8826a908be50b571b99e84504fd3b1993b3b377cf29
7
- data.tar.gz: 014bb9a629bb2462d0b89e152300826d7329711a7f403ceb58d633ab580ec2e87e11b1ad9ed1f83f81c66d7dbd834fe6be875b93a541a6cf3f1ea50b632c3833
6
+ metadata.gz: ff818be54ca54f3ae63767ac6b0928280dcd670bc00c4691b565b14dbdac0a5a7120016163834a441a66320bab8b9bf2f089ca7945f04b0ba75705e6a887c06b
7
+ data.tar.gz: 07e4434c1e642b08e5dea6275a39dbdea5ec2b97b91f13183b65ebc977bd9f7589219b786d48a5a3c95afc8e3df3b35671d7f695dd256973ec45528c8f6a30b3
@@ -1,27 +1,44 @@
1
+ ### 1.11.0 [October 9, 2019]
2
+
3
+ - Add parent folder ID and path params to GET template response
4
+ - Add parent folder ID param when creating a new template, so you can upload a template into a folder
5
+
6
+ ### 1.10.0 [Aug 7, 2019]
7
+ * Added Create Folder, List Folder, Move to Folder endpoints
8
+
1
9
  ### 1.9.1 [August 2, 2019]
2
- * Relax json dependency to support older versions (>= 1.8)
10
+
11
+ - Relax json dependency to support older versions (>= 1.8)
3
12
 
4
13
  ### 1.9.0 [June 22, 2019]
5
- * **BREAKING CHANGE** Renamed "Get Templates" endpoint to "List Templates". Added a search query parameter.
14
+
15
+ - **BREAKING CHANGE** Renamed "Get Templates" endpoint to "List Templates". Added a search query parameter.
6
16
 
7
17
  ### 1.8.0 [April 11, 2019]
8
- * Added support for editable PDFS (editable: true)
18
+
19
+ - Added support for editable PDFS (editable: true)
9
20
 
10
21
  ### 1.7.0 [December 23, 2018]
11
- * Added CustomFiles, and combinePdf call to support many different types of source PDFs. Renamed a few models
22
+
23
+ - Added CustomFiles, and combinePdf call to support many different types of source PDFs. Renamed a few models
12
24
 
13
25
  ### 1.6.0 [December 18, 2018]
14
- * Updated API host to api.formapi.io
26
+
27
+ - Updated API host to api.formapi.io
15
28
 
16
29
  ### 1.5.0 [December 13, 2018]
17
- * Fix model name for newly created Templates (PendingTemplate)
18
- * Added "actions" to submission and combined_submission responses. Includes information about custom S3 uploads
30
+
31
+ - Fix model name for newly created Templates (PendingTemplate)
32
+ - Added "actions" to submission and combined_submission responses. Includes information about custom S3 uploads
19
33
 
20
34
  ### 1.4.1 [December 2, 2018]
21
- * Fixed crash in 1.4.0, did not include all of the necessary files
35
+
36
+ - Fixed crash in 1.4.0, did not include all of the necessary files
22
37
 
23
38
  ### 1.4.0 [December 1, 2018]
24
- * Added Create Template, Get Template, and Get Template Schema endpoints
39
+
40
+ - Added Create Template, Get Template, and Get Template Schema endpoints
25
41
 
26
42
  ### 1.3.0 [November 4, 2018]
27
- * Initial changelog
43
+
44
+ - Initial changelog
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- form_api (1.9.1)
4
+ form_api (1.11.0)
5
5
  ffi (~> 1.0, >= 1.9.24)
6
6
  json (>= 1.8)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
data/README.md CHANGED
@@ -7,7 +7,7 @@ FormAPI is a service that helps you fill out and sign PDF templates.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.9.1
10
+ - Package version: 1.11.0
11
11
  - Build package: io.formapi.codegen.FormApiRubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build form_api.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./form_api-1.9.1.gem
26
+ gem install ./form_api-1.11.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./form_api-1.9.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./form_api-1.11.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'form_api', '~> 1.9.1'
34
+ gem 'form_api', '~> 1.11.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -87,8 +87,10 @@ Class | Method | HTTP request | Description
87
87
  *FormAPI::PDFApi* | [**combine_submissions**](docs/PDFApi.md#combine_submissions) | **POST** /combined_submissions | Merge generated PDFs together
88
88
  *FormAPI::PDFApi* | [**create_custom_file_from_upload**](docs/PDFApi.md#create_custom_file_from_upload) | **POST** /custom_files | Create a new custom file from a cached presign upload
89
89
  *FormAPI::PDFApi* | [**create_data_request_token**](docs/PDFApi.md#create_data_request_token) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
90
+ *FormAPI::PDFApi* | [**create_folder**](docs/PDFApi.md#create_folder) | **POST** /folders/ | Create a folder
90
91
  *FormAPI::PDFApi* | [**create_template**](docs/PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template with a file upload
91
92
  *FormAPI::PDFApi* | [**create_template_from_upload**](docs/PDFApi.md#create_template_from_upload) | **POST** /templates?v=2 | Create a new PDF template from a cached presign upload
93
+ *FormAPI::PDFApi* | [**delete_folder**](docs/PDFApi.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
92
94
  *FormAPI::PDFApi* | [**expire_combined_submission**](docs/PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
93
95
  *FormAPI::PDFApi* | [**expire_submission**](docs/PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
94
96
  *FormAPI::PDFApi* | [**generate_pdf**](docs/PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
@@ -97,9 +99,13 @@ Class | Method | HTTP request | Description
97
99
  *FormAPI::PDFApi* | [**get_presign_url**](docs/PDFApi.md#get_presign_url) | **GET** /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket
98
100
  *FormAPI::PDFApi* | [**get_submission**](docs/PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
99
101
  *FormAPI::PDFApi* | [**get_submission_batch**](docs/PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
100
- *FormAPI::PDFApi* | [**get_template**](docs/PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
102
+ *FormAPI::PDFApi* | [**get_template**](docs/PDFApi.md#get_template) | **GET** /templates/{template_id} | Get a single template
101
103
  *FormAPI::PDFApi* | [**get_template_schema**](docs/PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
104
+ *FormAPI::PDFApi* | [**list_folders**](docs/PDFApi.md#list_folders) | **GET** /folders/ | Get a list of all folders
102
105
  *FormAPI::PDFApi* | [**list_templates**](docs/PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
106
+ *FormAPI::PDFApi* | [**move_folder_to_folder**](docs/PDFApi.md#move_folder_to_folder) | **POST** /folders/{folder_id}/move | Move a folder
107
+ *FormAPI::PDFApi* | [**move_template_to_folder**](docs/PDFApi.md#move_template_to_folder) | **POST** /templates/{template_id}/move | Move Template to folder
108
+ *FormAPI::PDFApi* | [**rename_folder**](docs/PDFApi.md#rename_folder) | **POST** /folders/{folder_id}/rename | Rename a folder
103
109
  *FormAPI::PDFApi* | [**test_authentication**](docs/PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
104
110
  *FormAPI::PDFApi* | [**update_data_request**](docs/PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
105
111
 
@@ -115,6 +121,7 @@ Class | Method | HTTP request | Description
115
121
  - [FormAPI::CreateCombinedSubmissionResponse](docs/CreateCombinedSubmissionResponse.md)
116
122
  - [FormAPI::CreateCustomFileData](docs/CreateCustomFileData.md)
117
123
  - [FormAPI::CreateCustomFileResponse](docs/CreateCustomFileResponse.md)
124
+ - [FormAPI::CreateFolderData](docs/CreateFolderData.md)
118
125
  - [FormAPI::CreateSubmissionBatchResponse](docs/CreateSubmissionBatchResponse.md)
119
126
  - [FormAPI::CreateSubmissionBatchSubmissionsResponse](docs/CreateSubmissionBatchSubmissionsResponse.md)
120
127
  - [FormAPI::CreateSubmissionDataRequestData](docs/CreateSubmissionDataRequestData.md)
@@ -124,8 +131,13 @@ Class | Method | HTTP request | Description
124
131
  - [FormAPI::CreateTemplateData](docs/CreateTemplateData.md)
125
132
  - [FormAPI::CustomFile](docs/CustomFile.md)
126
133
  - [FormAPI::Error](docs/Error.md)
134
+ - [FormAPI::Folder](docs/Folder.md)
135
+ - [FormAPI::FoldersFolder](docs/FoldersFolder.md)
127
136
  - [FormAPI::InvalidRequest](docs/InvalidRequest.md)
137
+ - [FormAPI::MoveFolderData](docs/MoveFolderData.md)
138
+ - [FormAPI::MoveTemplateData](docs/MoveTemplateData.md)
128
139
  - [FormAPI::PendingTemplate](docs/PendingTemplate.md)
140
+ - [FormAPI::RenameFolderData](docs/RenameFolderData.md)
129
141
  - [FormAPI::Submission](docs/Submission.md)
130
142
  - [FormAPI::SubmissionAction](docs/SubmissionAction.md)
131
143
  - [FormAPI::SubmissionBatch](docs/SubmissionBatch.md)
@@ -0,0 +1,8 @@
1
+ # FormAPI::CreateFolderData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **folder** | [**FoldersFolder**](FoldersFolder.md) | |
7
+
8
+
@@ -0,0 +1,11 @@
1
+ # FormAPI::Folder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **path** | **String** | | [optional]
7
+ **parent_folder_id** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+ **id** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,9 @@
1
+ # FormAPI::FoldersFolder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **parent_folder_id** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # FormAPI::MoveFolderData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **parent_folder_id** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # FormAPI::MoveTemplateData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **parent_folder_id** | **String** | | [optional]
7
+
8
+
@@ -10,8 +10,10 @@ Method | HTTP request | Description
10
10
  [**combine_submissions**](PDFApi.md#combine_submissions) | **POST** /combined_submissions | Merge generated PDFs together
11
11
  [**create_custom_file_from_upload**](PDFApi.md#create_custom_file_from_upload) | **POST** /custom_files | Create a new custom file from a cached presign upload
12
12
  [**create_data_request_token**](PDFApi.md#create_data_request_token) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
13
+ [**create_folder**](PDFApi.md#create_folder) | **POST** /folders/ | Create a folder
13
14
  [**create_template**](PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template with a file upload
14
15
  [**create_template_from_upload**](PDFApi.md#create_template_from_upload) | **POST** /templates?v=2 | Create a new PDF template from a cached presign upload
16
+ [**delete_folder**](PDFApi.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
15
17
  [**expire_combined_submission**](PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
16
18
  [**expire_submission**](PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
17
19
  [**generate_pdf**](PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
@@ -20,9 +22,13 @@ Method | HTTP request | Description
20
22
  [**get_presign_url**](PDFApi.md#get_presign_url) | **GET** /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket
21
23
  [**get_submission**](PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
22
24
  [**get_submission_batch**](PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
23
- [**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
25
+ [**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Get a single template
24
26
  [**get_template_schema**](PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
27
+ [**list_folders**](PDFApi.md#list_folders) | **GET** /folders/ | Get a list of all folders
25
28
  [**list_templates**](PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
29
+ [**move_folder_to_folder**](PDFApi.md#move_folder_to_folder) | **POST** /folders/{folder_id}/move | Move a folder
30
+ [**move_template_to_folder**](PDFApi.md#move_template_to_folder) | **POST** /templates/{template_id}/move | Move Template to folder
31
+ [**rename_folder**](PDFApi.md#rename_folder) | **POST** /folders/{folder_id}/rename | Rename a folder
26
32
  [**test_authentication**](PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
27
33
  [**update_data_request**](PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
28
34
 
@@ -323,8 +329,57 @@ Name | Type | Description | Notes
323
329
 
324
330
 
325
331
 
332
+ # **create_folder**
333
+ > Folder create_folder(create_folder_data)
334
+
335
+ Create a folder
336
+
337
+ ### Example
338
+ ```ruby
339
+ # load the gem
340
+ require 'form_api'
341
+ # setup authorization
342
+ FormAPI.configure do |config|
343
+ # Configure HTTP basic authorization: api_token_basic
344
+ config.username = 'YOUR USERNAME'
345
+ config.password = 'YOUR PASSWORD'
346
+ end
347
+
348
+ api_instance = FormAPI::PDFApi.new
349
+ create_folder_data = FormAPI::CreateFolderData.new # CreateFolderData |
350
+
351
+ begin
352
+ #Create a folder
353
+ result = api_instance.create_folder(create_folder_data)
354
+ p result
355
+ rescue FormAPI::ApiError => e
356
+ puts "Exception when calling PDFApi->create_folder: #{e}"
357
+ end
358
+ ```
359
+
360
+ ### Parameters
361
+
362
+ Name | Type | Description | Notes
363
+ ------------- | ------------- | ------------- | -------------
364
+ **create_folder_data** | [**CreateFolderData**](CreateFolderData.md)| |
365
+
366
+ ### Return type
367
+
368
+ [**Folder**](Folder.md)
369
+
370
+ ### Authorization
371
+
372
+ [api_token_basic](../README.md#api_token_basic)
373
+
374
+ ### HTTP request headers
375
+
376
+ - **Content-Type**: application/json
377
+ - **Accept**: application/json
378
+
379
+
380
+
326
381
  # **create_template**
327
- > PendingTemplate create_template(template_document, template_name)
382
+ > PendingTemplate create_template(template_document, template_name, opts)
328
383
 
329
384
  Upload a new PDF template with a file upload
330
385
 
@@ -342,10 +397,13 @@ end
342
397
  api_instance = FormAPI::PDFApi.new
343
398
  template_document = File.new('/path/to/file') # File |
344
399
  template_name = 'template_name_example' # String |
400
+ opts = {
401
+ template_parent_folder_id: 'template_parent_folder_id_example' # String |
402
+ }
345
403
 
346
404
  begin
347
405
  #Upload a new PDF template with a file upload
348
- result = api_instance.create_template(template_document, template_name)
406
+ result = api_instance.create_template(template_document, template_name, opts)
349
407
  p result
350
408
  rescue FormAPI::ApiError => e
351
409
  puts "Exception when calling PDFApi->create_template: #{e}"
@@ -358,6 +416,7 @@ Name | Type | Description | Notes
358
416
  ------------- | ------------- | ------------- | -------------
359
417
  **template_document** | **File**| |
360
418
  **template_name** | **String**| |
419
+ **template_parent_folder_id** | **String**| | [optional]
361
420
 
362
421
  ### Return type
363
422
 
@@ -423,6 +482,55 @@ Name | Type | Description | Notes
423
482
 
424
483
 
425
484
 
485
+ # **delete_folder**
486
+ > Folder delete_folder(folder_id)
487
+
488
+ Delete a folder
489
+
490
+ ### Example
491
+ ```ruby
492
+ # load the gem
493
+ require 'form_api'
494
+ # setup authorization
495
+ FormAPI.configure do |config|
496
+ # Configure HTTP basic authorization: api_token_basic
497
+ config.username = 'YOUR USERNAME'
498
+ config.password = 'YOUR PASSWORD'
499
+ end
500
+
501
+ api_instance = FormAPI::PDFApi.new
502
+ folder_id = 'fld_000000000000000001' # String |
503
+
504
+ begin
505
+ #Delete a folder
506
+ result = api_instance.delete_folder(folder_id)
507
+ p result
508
+ rescue FormAPI::ApiError => e
509
+ puts "Exception when calling PDFApi->delete_folder: #{e}"
510
+ end
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+ Name | Type | Description | Notes
516
+ ------------- | ------------- | ------------- | -------------
517
+ **folder_id** | **String**| |
518
+
519
+ ### Return type
520
+
521
+ [**Folder**](Folder.md)
522
+
523
+ ### Authorization
524
+
525
+ [api_token_basic](../README.md#api_token_basic)
526
+
527
+ ### HTTP request headers
528
+
529
+ - **Content-Type**: Not defined
530
+ - **Accept**: application/json
531
+
532
+
533
+
426
534
  # **expire_combined_submission**
427
535
  > CombinedSubmission expire_combined_submission(combined_submission_id)
428
536
 
@@ -824,7 +932,7 @@ Name | Type | Description | Notes
824
932
  # **get_template**
825
933
  > Template get_template(template_id)
826
934
 
827
- Check the status of an uploaded template
935
+ Get a single template
828
936
 
829
937
  ### Example
830
938
  ```ruby
@@ -838,10 +946,10 @@ FormAPI.configure do |config|
838
946
  end
839
947
 
840
948
  api_instance = FormAPI::PDFApi.new
841
- template_id = 'tpl_000000000000000001' # String |
949
+ template_id = 'tpl_000000000000000011' # String |
842
950
 
843
951
  begin
844
- #Check the status of an uploaded template
952
+ #Get a single template
845
953
  result = api_instance.get_template(template_id)
846
954
  p result
847
955
  rescue FormAPI::ApiError => e
@@ -919,6 +1027,57 @@ Name | Type | Description | Notes
919
1027
 
920
1028
 
921
1029
 
1030
+ # **list_folders**
1031
+ > Array<Folder> list_folders(opts)
1032
+
1033
+ Get a list of all folders
1034
+
1035
+ ### Example
1036
+ ```ruby
1037
+ # load the gem
1038
+ require 'form_api'
1039
+ # setup authorization
1040
+ FormAPI.configure do |config|
1041
+ # Configure HTTP basic authorization: api_token_basic
1042
+ config.username = 'YOUR USERNAME'
1043
+ config.password = 'YOUR PASSWORD'
1044
+ end
1045
+
1046
+ api_instance = FormAPI::PDFApi.new
1047
+ opts = {
1048
+ parent_folder_id: 'fld_000000000000000002' # String | Filter By Folder Id
1049
+ }
1050
+
1051
+ begin
1052
+ #Get a list of all folders
1053
+ result = api_instance.list_folders(opts)
1054
+ p result
1055
+ rescue FormAPI::ApiError => e
1056
+ puts "Exception when calling PDFApi->list_folders: #{e}"
1057
+ end
1058
+ ```
1059
+
1060
+ ### Parameters
1061
+
1062
+ Name | Type | Description | Notes
1063
+ ------------- | ------------- | ------------- | -------------
1064
+ **parent_folder_id** | **String**| Filter By Folder Id | [optional]
1065
+
1066
+ ### Return type
1067
+
1068
+ [**Array<Folder>**](Folder.md)
1069
+
1070
+ ### Authorization
1071
+
1072
+ [api_token_basic](../README.md#api_token_basic)
1073
+
1074
+ ### HTTP request headers
1075
+
1076
+ - **Content-Type**: Not defined
1077
+ - **Accept**: application/json
1078
+
1079
+
1080
+
922
1081
  # **list_templates**
923
1082
  > Array<Template> list_templates(opts)
924
1083
 
@@ -938,6 +1097,7 @@ end
938
1097
  api_instance = FormAPI::PDFApi.new
939
1098
  opts = {
940
1099
  query: '2', # String | Search By Name
1100
+ parent_folder_id: 'fld_000000000000000001', # String | Filter By Folder Id
941
1101
  page: 2, # Integer | Default: 1
942
1102
  per_page: 1 # Integer | Default: 50
943
1103
  }
@@ -956,6 +1116,7 @@ end
956
1116
  Name | Type | Description | Notes
957
1117
  ------------- | ------------- | ------------- | -------------
958
1118
  **query** | **String**| Search By Name | [optional]
1119
+ **parent_folder_id** | **String**| Filter By Folder Id | [optional]
959
1120
  **page** | **Integer**| Default: 1 | [optional]
960
1121
  **per_page** | **Integer**| Default: 50 | [optional]
961
1122
 
@@ -974,6 +1135,158 @@ Name | Type | Description | Notes
974
1135
 
975
1136
 
976
1137
 
1138
+ # **move_folder_to_folder**
1139
+ > Folder move_folder_to_folder(folder_id, move_folder_data)
1140
+
1141
+ Move a folder
1142
+
1143
+ ### Example
1144
+ ```ruby
1145
+ # load the gem
1146
+ require 'form_api'
1147
+ # setup authorization
1148
+ FormAPI.configure do |config|
1149
+ # Configure HTTP basic authorization: api_token_basic
1150
+ config.username = 'YOUR USERNAME'
1151
+ config.password = 'YOUR PASSWORD'
1152
+ end
1153
+
1154
+ api_instance = FormAPI::PDFApi.new
1155
+ folder_id = 'fld_000000000000000001' # String |
1156
+ move_folder_data = FormAPI::MoveFolderData.new # MoveFolderData |
1157
+
1158
+ begin
1159
+ #Move a folder
1160
+ result = api_instance.move_folder_to_folder(folder_id, move_folder_data)
1161
+ p result
1162
+ rescue FormAPI::ApiError => e
1163
+ puts "Exception when calling PDFApi->move_folder_to_folder: #{e}"
1164
+ end
1165
+ ```
1166
+
1167
+ ### Parameters
1168
+
1169
+ Name | Type | Description | Notes
1170
+ ------------- | ------------- | ------------- | -------------
1171
+ **folder_id** | **String**| |
1172
+ **move_folder_data** | [**MoveFolderData**](MoveFolderData.md)| |
1173
+
1174
+ ### Return type
1175
+
1176
+ [**Folder**](Folder.md)
1177
+
1178
+ ### Authorization
1179
+
1180
+ [api_token_basic](../README.md#api_token_basic)
1181
+
1182
+ ### HTTP request headers
1183
+
1184
+ - **Content-Type**: application/json
1185
+ - **Accept**: application/json
1186
+
1187
+
1188
+
1189
+ # **move_template_to_folder**
1190
+ > Template move_template_to_folder(template_id, move_template_data)
1191
+
1192
+ Move Template to folder
1193
+
1194
+ ### Example
1195
+ ```ruby
1196
+ # load the gem
1197
+ require 'form_api'
1198
+ # setup authorization
1199
+ FormAPI.configure do |config|
1200
+ # Configure HTTP basic authorization: api_token_basic
1201
+ config.username = 'YOUR USERNAME'
1202
+ config.password = 'YOUR PASSWORD'
1203
+ end
1204
+
1205
+ api_instance = FormAPI::PDFApi.new
1206
+ template_id = 'tpl_000000000000000001' # String |
1207
+ move_template_data = FormAPI::MoveTemplateData.new # MoveTemplateData |
1208
+
1209
+ begin
1210
+ #Move Template to folder
1211
+ result = api_instance.move_template_to_folder(template_id, move_template_data)
1212
+ p result
1213
+ rescue FormAPI::ApiError => e
1214
+ puts "Exception when calling PDFApi->move_template_to_folder: #{e}"
1215
+ end
1216
+ ```
1217
+
1218
+ ### Parameters
1219
+
1220
+ Name | Type | Description | Notes
1221
+ ------------- | ------------- | ------------- | -------------
1222
+ **template_id** | **String**| |
1223
+ **move_template_data** | [**MoveTemplateData**](MoveTemplateData.md)| |
1224
+
1225
+ ### Return type
1226
+
1227
+ [**Template**](Template.md)
1228
+
1229
+ ### Authorization
1230
+
1231
+ [api_token_basic](../README.md#api_token_basic)
1232
+
1233
+ ### HTTP request headers
1234
+
1235
+ - **Content-Type**: application/json
1236
+ - **Accept**: application/json
1237
+
1238
+
1239
+
1240
+ # **rename_folder**
1241
+ > rename_folder(folder_id, rename_folder_data)
1242
+
1243
+ Rename a folder
1244
+
1245
+ ### Example
1246
+ ```ruby
1247
+ # load the gem
1248
+ require 'form_api'
1249
+ # setup authorization
1250
+ FormAPI.configure do |config|
1251
+ # Configure HTTP basic authorization: api_token_basic
1252
+ config.username = 'YOUR USERNAME'
1253
+ config.password = 'YOUR PASSWORD'
1254
+ end
1255
+
1256
+ api_instance = FormAPI::PDFApi.new
1257
+ folder_id = 'fld_000000000000000001' # String |
1258
+ rename_folder_data = FormAPI::RenameFolderData.new # RenameFolderData |
1259
+
1260
+ begin
1261
+ #Rename a folder
1262
+ api_instance.rename_folder(folder_id, rename_folder_data)
1263
+ rescue FormAPI::ApiError => e
1264
+ puts "Exception when calling PDFApi->rename_folder: #{e}"
1265
+ end
1266
+ ```
1267
+
1268
+ ### Parameters
1269
+
1270
+ Name | Type | Description | Notes
1271
+ ------------- | ------------- | ------------- | -------------
1272
+ **folder_id** | **String**| |
1273
+ **rename_folder_data** | [**RenameFolderData**](RenameFolderData.md)| |
1274
+
1275
+ ### Return type
1276
+
1277
+ nil (empty response body)
1278
+
1279
+ ### Authorization
1280
+
1281
+ [api_token_basic](../README.md#api_token_basic)
1282
+
1283
+ ### HTTP request headers
1284
+
1285
+ - **Content-Type**: application/json
1286
+ - **Accept**: application/json
1287
+
1288
+
1289
+
977
1290
  # **test_authentication**
978
1291
  > AuthenticationSuccessResponse test_authentication
979
1292