-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUnlinkedPaTemplatesApi.java
More file actions
662 lines (550 loc) · 86.6 KB
/
UnlinkedPaTemplatesApi.java
File metadata and controls
662 lines (550 loc) · 86.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
package factset.analyticsapi.engines.api;
import factset.analyticsapi.engines.ApiException;
import factset.analyticsapi.engines.ApiClient;
import factset.analyticsapi.engines.ApiResponse;
import factset.analyticsapi.engines.Configuration;
import factset.analyticsapi.engines.Pair;
import javax.ws.rs.core.GenericType;
import java.util.HashMap;
import java.util.Map;
import java.io.File;
import factset.analyticsapi.engines.models.ClientErrorResponse;
import factset.analyticsapi.engines.models.UnlinkedPATemplateCategoryAndTypeDetailsRoot;
import factset.analyticsapi.engines.models.UnlinkedPATemplateCategoryAndTypeRoot;
import factset.analyticsapi.engines.models.UnlinkedPATemplateParametersRoot;
import factset.analyticsapi.engines.models.UnlinkedPATemplatePostSummaryRoot;
import factset.analyticsapi.engines.models.UnlinkedPATemplateRoot;
import factset.analyticsapi.engines.models.UnlinkedPATemplateSummaryRoot;
import factset.analyticsapi.engines.models.UnlinkedPATemplateUpdateParametersRoot;
/**
* @deprecated DEPRECATED! Use <a href="https://central.sonatype.com/search?q=com.factset.sdk&smo=true">Esdk's</a>.
*/
@Deprecated
@javax.annotation.Generated(value = "CustomJavaClientCodegen")
public class UnlinkedPaTemplatesApi {
private ApiClient apiClient;
public UnlinkedPaTemplatesApi() {
this(Configuration.getDefaultApiClient());
}
public UnlinkedPaTemplatesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get the API cilent
*
* @return API client
*/
public ApiClient getApiClient() {
return apiClient;
}
/**
* Set the API cilent
*
* @param apiClient an instance of API client
*/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create unlinked PA template
* This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Account identifiers must have .ACCT or .ACTM extension or BENCH: prefix. Holdings mode can be optionally set for every account. Possible values for holdings mode are B&H (Buy and Hold), TBR (Transaction based returns), OMS (Order Management System), VLT (Vaulted returns) or EXT (External Returns Data). Default holdings mode value is B&H. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, groupsall, and totals levels of granularity. However, if no value is passed, the default value is 'securities'. Additionally, while 'groupsall' returns all the group levels in the PA component, setting componentdetail to 'groups' only returns the expanded or collapsed group levels within the PA component. * If we are overriding the grouping with a frequency, we will be overriding the grouping saved to the original component and also overriding the default frequency of the Beginning of Period to whatever we pass in the request body. * If we are overriding grouping frequency without overriding the group id it will not be applied to the default groupings saved to the original component.
* @param unlinkedPATemplateParametersRoot Request Parameters (required)
@return UnlinkedPATemplatePostSummaryRoot
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 201 </td><td> Expected response, created a unlinked PA template. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public UnlinkedPATemplatePostSummaryRoot createUnlinkedPATemplates(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot) throws ApiException {
return createUnlinkedPATemplatesWithHttpInfo(unlinkedPATemplateParametersRoot).getData();
}
/**
* Create unlinked PA template
* This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Account identifiers must have .ACCT or .ACTM extension or BENCH: prefix. Holdings mode can be optionally set for every account. Possible values for holdings mode are B&H (Buy and Hold), TBR (Transaction based returns), OMS (Order Management System), VLT (Vaulted returns) or EXT (External Returns Data). Default holdings mode value is B&H. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, groupsall, and totals levels of granularity. However, if no value is passed, the default value is 'securities'. Additionally, while 'groupsall' returns all the group levels in the PA component, setting componentdetail to 'groups' only returns the expanded or collapsed group levels within the PA component. * If we are overriding the grouping with a frequency, we will be overriding the grouping saved to the original component and also overriding the default frequency of the Beginning of Period to whatever we pass in the request body. * If we are overriding grouping frequency without overriding the group id it will not be applied to the default groupings saved to the original component.
* @param unlinkedPATemplateParametersRoot Request Parameters (required)
* @return ApiResponse<UnlinkedPATemplatePostSummaryRoot>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 201 </td><td> Expected response, created a unlinked PA template. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<UnlinkedPATemplatePostSummaryRoot> createUnlinkedPATemplatesWithHttpInfo(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot) throws ApiException {
Object localVarPostBody = unlinkedPATemplateParametersRoot;
// verify the required parameter 'unlinkedPATemplateParametersRoot' is set
if (unlinkedPATemplateParametersRoot == null) {
throw new ApiException(400, "Missing the required parameter 'unlinkedPATemplateParametersRoot' when calling createUnlinkedPATemplates");
}
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates";
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
GenericType<UnlinkedPATemplatePostSummaryRoot> localVarReturnType = new GenericType<UnlinkedPATemplatePostSummaryRoot>() {};
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(201, new GenericType<UnlinkedPATemplatePostSummaryRoot>(){});
returnTypeMap.put(400, new GenericType<ClientErrorResponse>(){});
return apiClient.<UnlinkedPATemplatePostSummaryRoot>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.createUnlinkedPATemplates", localVarPath, "POST", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
/**
* Delete unlinked PA template
* This endpoint deletes an existing unliked PA template.
* @param id Unique identifier for an unlinked PA template (required)
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 204 </td><td> Expected response, deleted the unlinked PA template successfully. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Template not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public void deleteUnlinkedPATemplates(String id) throws ApiException {
deleteUnlinkedPATemplatesWithHttpInfo(id);
}
/**
* Delete unlinked PA template
* This endpoint deletes an existing unliked PA template.
* @param id Unique identifier for an unlinked PA template (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 204 </td><td> Expected response, deleted the unlinked PA template successfully. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Template not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<Void> deleteUnlinkedPATemplatesWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling deleteUnlinkedPATemplates");
}
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(400, new GenericType<ClientErrorResponse>(){});
returnTypeMap.put(404, new GenericType<ClientErrorResponse>(){});
return apiClient.<Void>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.deleteUnlinkedPATemplates", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
/**
* Get default unlinked PA template types.
* This endpoint fetches default unlinked PA template types.
@return UnlinkedPATemplateCategoryAndTypeRoot
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, default unlinked PA template types </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public UnlinkedPATemplateCategoryAndTypeRoot getDefaultUnlinkedPATemplateTypes() throws ApiException {
return getDefaultUnlinkedPATemplateTypesWithHttpInfo().getData();
}
/**
* Get default unlinked PA template types.
* This endpoint fetches default unlinked PA template types.
* @return ApiResponse<UnlinkedPATemplateCategoryAndTypeRoot>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, default unlinked PA template types </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<UnlinkedPATemplateCategoryAndTypeRoot> getDefaultUnlinkedPATemplateTypesWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates/template-types";
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
GenericType<UnlinkedPATemplateCategoryAndTypeRoot> localVarReturnType = new GenericType<UnlinkedPATemplateCategoryAndTypeRoot>() {};
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(200, new GenericType<UnlinkedPATemplateCategoryAndTypeRoot>(){});
return apiClient.<UnlinkedPATemplateCategoryAndTypeRoot>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.getDefaultUnlinkedPATemplateTypes", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
/**
* Get unlinked PA template type details by id.
* This endpoint fetches the unlinked PA template type details.
* @param id Unique identifier for an unlinked PA template type (required)
@return UnlinkedPATemplateCategoryAndTypeDetailsRoot
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, details of the unlinked PA template type </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Unlinked PA template type not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public UnlinkedPATemplateCategoryAndTypeDetailsRoot getDetailsType(String id) throws ApiException {
return getDetailsTypeWithHttpInfo(id).getData();
}
/**
* Get unlinked PA template type details by id.
* This endpoint fetches the unlinked PA template type details.
* @param id Unique identifier for an unlinked PA template type (required)
* @return ApiResponse<UnlinkedPATemplateCategoryAndTypeDetailsRoot>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, details of the unlinked PA template type </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Unlinked PA template type not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<UnlinkedPATemplateCategoryAndTypeDetailsRoot> getDetailsTypeWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getDetailsType");
}
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates/template-types/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
GenericType<UnlinkedPATemplateCategoryAndTypeDetailsRoot> localVarReturnType = new GenericType<UnlinkedPATemplateCategoryAndTypeDetailsRoot>() {};
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(200, new GenericType<UnlinkedPATemplateCategoryAndTypeDetailsRoot>(){});
returnTypeMap.put(400, new GenericType<ClientErrorResponse>(){});
returnTypeMap.put(404, new GenericType<ClientErrorResponse>(){});
return apiClient.<UnlinkedPATemplateCategoryAndTypeDetailsRoot>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.getDetailsType", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
/**
* Get unlinked PA templates
* This endpoint returns the list of unlinked PA templates.
* @param directory Get unlinked PA templates in path. (optional)
* @param category Get unlinked PA templates by category. (optional)
@return UnlinkedPATemplateSummaryRoot
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, returns a list of unlinked PA templates. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public UnlinkedPATemplateSummaryRoot getUnlinkedPATemplates(String directory, String category) throws ApiException {
return getUnlinkedPATemplatesWithHttpInfo(directory, category).getData();
}
/**
* Get unlinked PA templates
* This endpoint returns the list of unlinked PA templates.
* @param directory Get unlinked PA templates in path. (optional)
* @param category Get unlinked PA templates by category. (optional)
* @return ApiResponse<UnlinkedPATemplateSummaryRoot>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, returns a list of unlinked PA templates. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<UnlinkedPATemplateSummaryRoot> getUnlinkedPATemplatesWithHttpInfo(String directory, String category) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates";
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "directory", directory));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "category", category));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
GenericType<UnlinkedPATemplateSummaryRoot> localVarReturnType = new GenericType<UnlinkedPATemplateSummaryRoot>() {};
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(200, new GenericType<UnlinkedPATemplateSummaryRoot>(){});
returnTypeMap.put(400, new GenericType<ClientErrorResponse>(){});
return apiClient.<UnlinkedPATemplateSummaryRoot>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.getUnlinkedPATemplates", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
/**
* Get unlinked PA template details by id
* This endpoint fetches the template settings.
* @param id Unique identifier for an unlinked PA template (required)
@return UnlinkedPATemplateRoot
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, get details of the unlinked PA template. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Template not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public UnlinkedPATemplateRoot getUnlinkedPATemplatesById(String id) throws ApiException {
return getUnlinkedPATemplatesByIdWithHttpInfo(id).getData();
}
/**
* Get unlinked PA template details by id
* This endpoint fetches the template settings.
* @param id Unique identifier for an unlinked PA template (required)
* @return ApiResponse<UnlinkedPATemplateRoot>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, get details of the unlinked PA template. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Template not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<UnlinkedPATemplateRoot> getUnlinkedPATemplatesByIdWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getUnlinkedPATemplatesById");
}
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
GenericType<UnlinkedPATemplateRoot> localVarReturnType = new GenericType<UnlinkedPATemplateRoot>() {};
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(200, new GenericType<UnlinkedPATemplateRoot>(){});
returnTypeMap.put(400, new GenericType<ClientErrorResponse>(){});
returnTypeMap.put(404, new GenericType<ClientErrorResponse>(){});
return apiClient.<UnlinkedPATemplateRoot>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.getUnlinkedPATemplatesById", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
/**
* Update unlinked PA template
* This endpoint updates an existing unlinked PA template. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Account identifiers must have .ACCT or .ACTM extension or BENCH: prefix. Holdings mode can be optionally set for every account. Possible values for holdings mode are B&H (Buy and Hold), TBR (Transaction based returns), OMS (Order Management System), VLT (Vaulted returns) or EXT (External Returns Data). Default holdings mode value is B&H. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, groupsall, and totals levels of granularity. However, if no value is passed, the default value is 'securities'. Additionally, while 'groupsall' returns all the group levels in the PA component, setting componentdetail to 'groups' only returns the expanded or collapsed group levels within the PA component. * If we are overriding the grouping with a frequency, we will be overriding the grouping saved to the original component and also overriding the default frequency of the Beginning of Period to whatever we pass in the request body. * If we are overriding grouping frequency without overriding the group id it will not be applied to the default groupings saved to the original component.
* @param id Unique identifier for an unlinked PA template (required)
* @param unlinkedPATemplateUpdateParametersRoot Request Parameters (required)
@return UnlinkedPATemplatePostSummaryRoot
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, updated the unlinked PA template. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Template not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public UnlinkedPATemplatePostSummaryRoot updateUnlinkedPATemplates(String id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot) throws ApiException {
return updateUnlinkedPATemplatesWithHttpInfo(id, unlinkedPATemplateUpdateParametersRoot).getData();
}
/**
* Update unlinked PA template
* This endpoint updates an existing unlinked PA template. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Account identifiers must have .ACCT or .ACTM extension or BENCH: prefix. Holdings mode can be optionally set for every account. Possible values for holdings mode are B&H (Buy and Hold), TBR (Transaction based returns), OMS (Order Management System), VLT (Vaulted returns) or EXT (External Returns Data). Default holdings mode value is B&H. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, groupsall, and totals levels of granularity. However, if no value is passed, the default value is 'securities'. Additionally, while 'groupsall' returns all the group levels in the PA component, setting componentdetail to 'groups' only returns the expanded or collapsed group levels within the PA component. * If we are overriding the grouping with a frequency, we will be overriding the grouping saved to the original component and also overriding the default frequency of the Beginning of Period to whatever we pass in the request body. * If we are overriding grouping frequency without overriding the group id it will not be applied to the default groupings saved to the original component.
* @param id Unique identifier for an unlinked PA template (required)
* @param unlinkedPATemplateUpdateParametersRoot Request Parameters (required)
* @return ApiResponse<UnlinkedPATemplatePostSummaryRoot>
* @throws ApiException if fails to make API call
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Expected response, updated the unlinked PA template. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 400 </td><td> Invalid data provided. Please check the request parameters before attempting again. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 404 </td><td> Template not found. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 401 </td><td> Missing or invalid authentication. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 403 </td><td> User is forbidden with current credentials </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 406 </td><td> Unsupported Accept header. Header needs to be set to application/json. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window. <br> * X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window. <br> * X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets. <br> </td></tr>
<tr><td> 429 </td><td> Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> * Retry-After - Time to wait in seconds before making a new request as the rate limit has reached. <br> </td></tr>
<tr><td> 500 </td><td> Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
<tr><td> 503 </td><td> Request timed out. Retry the request in sometime. </td><td> * X-DataDirect-Request-Key - FactSet's request key header. <br> * X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication. <br> </td></tr>
</table>
*/
public ApiResponse<UnlinkedPATemplatePostSummaryRoot> updateUnlinkedPATemplatesWithHttpInfo(String id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot) throws ApiException {
Object localVarPostBody = unlinkedPATemplateUpdateParametersRoot;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling updateUnlinkedPATemplates");
}
// verify the required parameter 'unlinkedPATemplateUpdateParametersRoot' is set
if (unlinkedPATemplateUpdateParametersRoot == null) {
throw new ApiException(400, "Missing the required parameter 'unlinkedPATemplateUpdateParametersRoot' when calling updateUnlinkedPATemplates");
}
// create path and map variables
String localVarPath = "/analytics/engines/pa/v3/unlinked-templates/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, String> localVarCookieParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "Basic", "Bearer" };
GenericType<UnlinkedPATemplatePostSummaryRoot> localVarReturnType = new GenericType<UnlinkedPATemplatePostSummaryRoot>() {};
Map<Integer, GenericType> returnTypeMap = new HashMap<Integer, GenericType>();
returnTypeMap.put(200, new GenericType<UnlinkedPATemplatePostSummaryRoot>(){});
returnTypeMap.put(400, new GenericType<ClientErrorResponse>(){});
returnTypeMap.put(404, new GenericType<ClientErrorResponse>(){});
return apiClient.<UnlinkedPATemplatePostSummaryRoot>invokeAPIWithReturnMap("UnlinkedPaTemplatesApi.updateUnlinkedPATemplates", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, returnTypeMap, false);
}
}