-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
1288 lines (1265 loc) · 47.7 KB
/
openapi.yaml
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
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.1
info:
title: WiseTime Connect API
version: "1.3.0"
description: >-
Use the WiseTime Connect API to build connectors to your application.
contact:
name: WiseTime Connect API Support
email: [email protected]
url: https://wisetime.com/docs/connect
x-logo:
url: "https://storage.googleapis.com/pi-gcp-resources/email_assets/pi-account/wt-connect-logo.svg"
altText: WiseTime Connect
tags:
- name: Team Info
- name: Tags
- name: Tag Categories
- name: Activity Types
- name: Posted Time
- name: Connector Management
servers:
- url: https://wisetime.com/connect/api
paths:
/team/info:
get:
operationId: get-team-info
summary: Retrieve information about the team
tags:
- Team Info
responses:
'200':
description: Successfully found the team info.
content:
application/json:
schema:
$ref: '#/components/schemas/TeamInfoResult'
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/tag:
post:
operationId: tag-upsert
summary: Create a new tag, or update the tag if it already exists
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertTagRequest'
responses:
'200':
description: Tag successfully created or updated.
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertTagResponse'
'400':
description: Invalid request. Tag name is missing or path is invalid.
'401':
description: A valid API key is required to access this resource.
'402':
description: Number of tags plan limit exceeded.
'500':
description: An unexpected error occured.
/tag/batch:
post:
operationId: batch-tag-upsert
summary: Create new tags, or update existing in batch (up to 2000 items at once)
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchUpsertTagRequest'
responses:
'200':
description: Tag successfully created or updated.
'400':
description: Invalid request. Tag name is missing or path is invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/BatchUpsertTagResponse'
'401':
description: A valid API key is required to access this resource.
'402':
description: Number of tags plan limit exceeded.
'500':
description: An unexpected error occured.
/tag/delete:
post:
operationId: tag-delete
summary: Delete an existing tag
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTagRequest'
responses:
'200':
description: Tag successfully deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTagResponse'
'400':
description: Invalid request. Tag name is required.
'401':
description: A valid API key is required to access this resource.
'404':
description: Tag not found.
'500':
description: An unexpected error occured.
/tag/metadata/delete:
post:
operationId: tag-metadata-delete
summary: Permanently deletes the specified metadata from an existing tag.
description: >
Provide the metadata names that you want to delete.
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TagMetadataDeleteRequest'
responses:
'200':
description: Fulfilled when metadata was deleted, not found or already deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/TagMetadataDeleteResponse'
'400':
description: Invalid request. Tag name and metadata are required.
'401':
description: A valid API key is required to access this resource.
'404':
description: Metadata cannot be deleted since the requested tag does not exist.
'500':
description: An unexpected error occured.
/tag/keyword:
post:
operationId: tag-keywords-add
summary: Add one or more keywords to an existing tag
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AddKeywordsRequest'
responses:
'200':
description: Keyword(s) successfully added.
content:
application/json:
schema:
$ref: '#/components/schemas/AddKeywordsResponse'
'400':
description: Invalid request. Tag name and additional keywords are required.
'401':
description: A valid API key is required to access this resource.
'404':
description: Tag not found.
'500':
description: An unexpected error occured.
/tag/keyword/delete:
post:
operationId: tag-keyword-delete
summary: Delete an existing keyword from a tag
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteKeywordRequest'
responses:
'200':
description: Keyword successfully deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteKeywordResponse'
'400':
description: Invalid request. Tag name and keyword are required.
'401':
description: A valid API key is required to access this resource.
'404':
description: Tag or keyword not found.
'500':
description: An unexpected error occured.
/tagcategory/batch:
post:
operationId: batch-tag-category-upsert
summary: >
Create new tag categories, or update existing in batch (up to 2000 items at once).
If tag category is not found by external ID, it is created.
externalId is a required field to use the batch creation endpoint.
No partial update, if some of categories failed to be processed, entire batch considered faulty.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchUpsertTagCategoryRequest'
responses:
'200':
description: Tag categories were successfully upserted.
content:
application/json:
schema:
$ref: '#/components/schemas/BatchUpsertTagCategoryResponse'
'400':
description: Invalid request.
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
tags:
- Tag Categories
/tagcategory/delete:
post:
operationId: tag-category-delete
summary: >
Delete tag category and all related tags
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTagCategoryRequest'
responses:
'200':
description: Tag category deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTagCategoryResponse'
'400':
description: Invalid request.
'404':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
tags:
- Tag Categories
/activitytype/sync/start:
post:
operationId: activity-type-sync-start
summary: Start activity types sync session
description: >
Initiates a sync session and responds with syncSessionId that can be used for further activity types uploads within the session.
While activity types can be sent to WiseTime in batches without a sync session, starting a sync session for the batch uploads means that WiseTime will be able to detect activity types that are no longer in the connected system, and delete these when the sync session is completed by the connector.
tags:
- Activity Types
responses:
'200':
description: Sync session initiated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/SyncSession'
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/activitytype/sync/complete:
post:
operationId: activity-type-sync-complete
summary: Complete activity types sync session
description: >
Completes a sync session so its syncSessionId can not be used anymore.
All the activity types that were lastly created/updated before the session start will be deleted.
tags:
- Activity Types
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SyncSession'
responses:
'200':
description: Sync session completed successfully.
'401':
description: A valid API key is required to access this resource.
'404':
description: Sync session doesn't exist or already completed/cancelled.
'500':
description: An unexpected error occured.
/activitytype/sync/cancel:
post:
operationId: activity-type-sync-cancel
summary: Cancel activity types sync session
description: >
Cancels a sync session so its syncSessionId can not be used anymore.
This API call has no impact on activity types.
tags:
- Activity Types
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SyncSession'
responses:
'200':
description: Sync session cancelled successfully.
'401':
description: A valid API key is required to access this resource.
'404':
description: Sync session doesn't exist or already completed/cancelled.
'500':
description: An unexpected error occured.
/activitytype/batch:
post:
operationId: activity-type-upsert-batch
summary: Create new activity types, or update existing in batch (up to 2000 items at once)
tags:
- Activity Types
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SyncActivityTypesRequest'
responses:
'200':
description: Activity types successfully created or updated.
content:
application/json:
schema:
$ref: '#/components/schemas/SyncActivityTypesResponse'
'400':
description: >
Invalid request:
- Activity type code or label is missing.
- The number of activity types in request exceeded.
- Sync session id was provided but session doesn't exist or already completed/cancelled.
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/postedtime:
get:
operationId: fetch-posted-time
summary: Returns posted time with pending status.
description: >
Use this endpoint to fetch posted time for processing.
This is a long polling call (an alternative to using the webhook mechanism).
The connection will be held open for a maximum of 60 seconds or until there is a new posted time event.
When calling this method without first calling the /postedtime/registerfetchclient endpoint, recording posted time for fetching
will implicitly be turned on.
tags:
- Posted Time
parameters:
- in: query
name: limit
schema:
type: integer
required: false
description: Maximum amount of posted time entries to retrieve. If not set, the API will return up to a maximum of 25 entries for each request.
responses:
'200':
description: List of posted time events.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TimeGroup'
'400':
description: Invalid request. Limit cannot be smaller than 1.
'401':
description: A valid API key is required to access this resource.
'409':
description: This team has a registered posted time webhook. Switching to use fetch client is required.
'500':
description: An unexpected error occured.
/postedtime/list:
get:
operationId: list-posted-time
summary: Returns list of posted time with pending or success status.
description: >
Returns all time groups for team in descending order of submission time starting from now. This is not a long polling endpoint.
tags:
- Posted Time
parameters:
- in: query
name: limit
schema:
type: integer
required: false
description: Maximum number of items to return. Should be between 1 and 500. Default is 100.
- in: query
name: submittedBefore
schema:
type: integer
required: false
description: >
Filter response to return only time groups submitted before requested timestamp.
If empty - returns latest time groups. Note that the submisisonTime may be the same for multiple time groups as
users may submit more than 1 time group as a single operation. Measured in milliseconds since the Epoch.
responses:
'200':
description: List of time groups.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TimeGroup'
'400':
description: Invalid request.
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/postedtime/registerfetchclient:
post:
operationId: register-for-fetch
summary: Register the intent to fetch time from the /postedtime endpoint.
description: WiseTime will start recording posted time events that can be fetched via the /postedtime endpoint.
tags:
- Posted Time
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterFetchClientRequest'
responses:
'200':
description: Fetch client successfully registered.
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterFetchClientResult'
'400':
description: Invalid request. Callback URL is required.
'409':
description: This team already has a registered fetch client or webhook.
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/postedtime/unregisterfetchclient:
post:
operationId: unregister-from-fetch
summary: Delete existing fetch client, unsubscribing your application from posted time fetching.
description: WiseTime will stop recording posted time events for fetch when users post time to your team.
tags:
- Posted Time
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UnregisterFetchClientRequest'
responses:
'200':
description: Fetch client successfully unregistered.
content:
application/json:
schema:
$ref: '#/components/schemas/UnregisterFetchClientResult'
'401':
description: A valid API key is required to access this resource.
'404':
description: Fetch client not found.
'409':
description: This team has a registered posted time webhook. Switching to use fetch client is required.
'500':
description: An unexpected error occured.
/postedtime/status:
post:
operationId: update-posted-time-status
summary: Updates the status of a received time group. Providing its success or failure to be processed.
description: >
This is intended for use with the fetch mechanism only. Not to be used with webhooks.
If this endpoint isn't called for a time group within a certain amount of time after fetching it
the time group will be made available again for fetching.
tags:
- Posted Time
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TimeGroupStatus'
responses:
'200':
description: Status of the time group was updated successfully.
'400':
description: Invalid request.
'401':
description: A valid API key is required to access this resource.
'404':
description: The time group/fetch client id pair was not found.
'409':
description: This team has a registered posted time webhook. Switching to use fetch client is required.
'500':
description: An unexpected error occured.
/postedtime/subscribe:
post:
operationId: post-subscribe
summary: Subscribe to be notified when a user posts time information to your team.
description: WiseTime will call your webhook with a payload of the posted time information. See the [posted time webhook documentation](/docs/connect/posted-time-webhook/) for details. Each team is limited to one webhook callback.
tags:
- Posted Time
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscribeRequest'
responses:
'200':
description: Webhook subscription successfully created.
content:
application/json:
schema:
$ref: '#/components/schemas/SubscribeResult'
'400':
description: Invalid request. Callback URL is required.
'409':
description: This team already has a registered webhook or fetch client.
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
callbacks: # Callback definition
timePostedEvent: # Event name
'{$request.body#/callbackUrl}': # Refers to the passed URL
post:
operationId: post-callback
requestBody: # Contents of the callback message
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TimeGroup'
responses: # Expected responses to the callback message
'200':
description: 2XX codes indicate that the time group was processed successfully.
'400':
description: >
Indicates that permanent failure has occurred, to signify that no retries should be made.
Returns a user-friendly error message which describes the problem.
content:
text/plain:
schema:
type: string
'500':
description: >
Indicates a transient error. The web hook post request will be retried after a delay.
Returns a user-friendly error message which describes the problem.
content:
text/plain:
schema:
type: string
/postedtime/unsubscribe:
post:
operationId: delete-webhook
summary: Delete existing webhook for given connector (specified by api key), unsubscribing your application from posted time notifications.
description: WiseTime will stop calling your webhook when users post time to your team.
tags:
- Posted Time
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UnsubscribeRequest'
responses:
'200':
description: Webhook successfully deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/UnsubscribeResult'
'401':
description: A valid API key is required to access this resource.
'404':
description: No Webhook found for provided api key.
'500':
description: An unexpected error occured.
/team/managed/config:
post:
operationId: team-managed-config
summary: Retrieve configuration particulars to suppport the managed connector service.
tags:
- Connector Management
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ManagedConfigRequest'
responses:
'200':
description: Managed config response.
content:
application/json:
schema:
$ref: '#/components/schemas/ManagedConfigResponse'
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/healthcheck/failure/notify:
post:
operationId: health-check-failure-notify
summary: >
Report non-transient health check failure.
For unknown error codes the provided error message will be shown to users on time posting.
For known error codes connect-api-server will determine the appropriate message.
tags:
- Connector Management
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HealthCheckFailureNotify'
responses:
'204':
description: Error state has been recorded
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
/healthcheck/failure/rescind:
post:
operationId: health-check-failure-rescind
summary: Rescind (clear) a previously reported health check failure.
tags:
- Connector Management
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/HealthCheckFailureRescind'
responses:
'204':
description: Error state has been rescinded/cleared
'401':
description: A valid API key is required to access this resource.
'500':
description: An unexpected error occured.
components:
securitySchemes:
ConnectApiKeyAuth:
description: See the [Authentication documentation page](/docs/connect/authentication/) for more details.
type: apiKey
in: header
name: x-api-key
schemas:
TagMetadataSet:
type: object
description: >
You can assign metadata to a tag. You provide this information as a name-value (key-value) pair.
The metadata names are case sensitive and will be displayed in reports, it is recommended the names be descriptive to clarify its meaning.
In the case of providing any name-value where the name is already assigned as metadata to the tag, the value will be updated with value supplied.
To delete/remove a name-value pair stored as metadata on a tag, you must use the `tag-metadata-delete` operation.
additionalProperties:
type: string
example:
Billing Group: billable
TagMetadataDeleteRequest:
type: object
properties:
tagName:
type: string
description: The tag from which to delete the tag metadata.
metadataNames:
description: The name(s) of the tag metadata to delete.
type: array
items:
type: string
required:
- tagName
- metadataNames
TagMetadataDeleteResponse:
type: object
HealthCheckFailureRescind:
type: object
UpsertTagRequest:
type: object
properties:
name:
description: "Tag name to create. If a tag by this name already exists, the tag will be updated."
type: string
description:
description: >
Displayed in the GUI and search functions.
An empty (or null) description will be ignored, the description will remain with the previous value instead of replacing it.
type: string
excludeTagNameKeyword:
description: >
The default behaviour when creating a tag is for the tagName to be added as a keyword for the tag. If
excludeTagNameKeyword is set to true, the tagName will not be added as a keyword, unless it is explicitly
defined in the additionalKeywords list of the request.
type: boolean
tagCategoryId:
description: >
The ID of the category that this tag belongs to.
This field is empty if the tag does not belong to a category.
type: string
path:
description: >
Default is '/'. Can be used to group tags into logical groups. Deprecated. Will be removed in future.
type: string
deprecated: true
managedBy:
description: >
Identifier of the resource that manages this tag.
type: string
externalId:
description: >
Identifier of the tag in the connected system.
The external ID will be sent when time is posted with this tag, so that the posted time can be recorded against the
relevant record in the connected system.
type: string
defaultActivityTypeCode:
description: >
Default activity type code is applied to time entry with this tag when user haven't assigned any activity type explicitly.
type: string
metadata:
$ref: '#/components/schemas/TagMetadataSet'
additionalKeywords:
description: >
A tag is applied to a time row if one of its keywords matches text in the time row activity description.
Keywords provided via this property will be added to the list of existing keywords for the tag. Existing keywords won't be removed.
type: array
items:
type: string
url:
description: >
If a URL is provided, the tag will be a clickable link in the WiseTime console.
Clicking on the tag will open the URL.
type: string
visibility:
description: >
Defines tag visibility. Default is PUBLIC. Private matters are only accessible by explicitly authorized team members.
type: string
enum:
- PUBLIC
- PRIVATE
assigneeExternalIds:
description: >
IDs in external system of users associated with the matter.
type: array
items:
type: string
BatchUpsertTagRequest:
type: object
properties:
tags:
type: array
items:
$ref: '#/components/schemas/UpsertTagRequest'
BatchUpsertTagResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ErrorItem'
ErrorItem:
type: object
properties:
index:
description: Index of item in the request to which this error corresponds to.
type: integer
errorDescription:
description: String with error details.
type: string
UpsertTagResponse:
type: object
DeleteTagRequest:
oneOf:
- type: object
properties:
name:
description: "Tag name to delete."
type: string
- type: object
properties:
id:
description: "Tag id to delete."
type: string
DeleteTagResponse:
type: object
AddKeywordsRequest:
type: object
properties:
tagName:
type: string
description: "The tag to which to add the keywords."
externalId:
description: >
The identifier of the tag in the connected system.
type: string
additionalKeywords:
type: array
items:
type: string
description: >
One or more new keywords for the tag.
Keywords provided via this property will be added to the list of existing keywords for the tag. Existing keywords won't be removed.
AddKeywordsResponse:
type: object
DeleteKeywordRequest:
type: object
properties:
tagName:
type: string
description: "The tag from which to delete the keywords."
keyword:
type: string
description: "The keyword to delete."
DeleteKeywordResponse:
type: object
SyncSession:
type: object
properties:
syncSessionId:
type: string
description: Sync session identifier that can be used for the patch uploads or session completion/cancellation.
SyncActivityTypesRequest:
type: object
properties:
activityTypes:
type: array
items:
$ref: '#/components/schemas/ActivityType'
description: An array of activity types to be created/updated.
syncSessionId:
type: string
description: Optional. Identifier of the sync session.
SyncActivityTypesResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ErrorItem'
ManagedConfigRequest:
type: object
properties:
environment:
type: object
description: A dictionary of client runtime environment properties.
additionalProperties:
type: string
example:
javaVmSpecificationVersion: 1.8
javaVmVersion: 2.8
javaVmName: IBM J9 VM
clientOs: linux
connectorType:
type: string
description: The paired system type that the connector supplies activity data to.
connectorVersion:
type: string
description: The connector version.
connectorLibraryVersion:
type: string
description: The WiseTime connector library version that the connector is using.
clientTimestamp:
type: integer
format: int64
description: The current system timestamp from epoch of the client environment.
clientTimeZoneOffset:
type: string
description: The local time offset of the environment that the client is running within.
ManagedConfigResponse:
type: object
properties:
serviceId:
type: string
description: Service ID that identifies the security credentials.
serviceKey:
type: string
description: Secret key for the security credentials.
serviceIdExpiry:
type: string
format: date-time
description: The date which the current credentials will expire.
serviceSessionToken:
type: string
description: The token that the service must pass to the API to use the security credentials.
groupName:
type: string
description: The name of the group for logging.
regionName:
description: Geographic area for the logging.
type: string
connectorConfiguration:
type: object
description: A dictionary of connector configuration properties.
additionalProperties:
type: string
example:
ADD_SUMMARY_TO_NARRATIVE: true
HealthCheckFailureNotify:
type: object
properties:
errorType:
type: string
description: >
Type of non-transient health check failure that occurred.
enum:
- UNKNOWN
- TARGET_UNREACHABLE
- TARGET_AUTH_FAILURE
- TARGET_PERMISSIONS_FAILURE
- TARGET_SUBSCRIPTION_FAILURE
userErrorMessage:
type: string
description: >
Error message shown to team members when trying to post time (until the failure is rescinded / cleared).
Optional, will overwrite the default error message of the provided errorType.
TimeGroup:
type: object
properties:
callerKey:
type: string
description: A caller key that you specified when registering your webhook. You can use this field to authenticate that the request comes from WiseTime. This field is only set if WiseTime is calling your webhook. It is not relevant when you poll WiseTime for posted time.
groupId:
type: string
description: A unique identifier of the TimeGroup being sent to the webhook receiver.
description:
type: string
description: User description for this time group. This may be blank if the user did not provide a narrative when posting their time.
formattedNarrative:
type: string
description: A narrative for this time group including any custom formatting. This may be blank.
totalDurationSecs:
type: integer
description: >
By default this is the sum of the time log durations in seconds.
It may have been edited by user before posting. To calculate the unmodified total duration, add the items from the `timeRows` array.
totalDurationHours:
type: number
format: double
description: >
The totalDurationSecs value expressed as a double value, with a maximum precision of 2 decimal places.
tzOffsetMins:
type: integer
format: int32
description: Timezone offset in minutes of the recorded activity. For example, UTC-2 will be shown as a TZ offset value of -120, or UTC+5.5 being equal to 330.
localDate:
type: string
format: date
description: The date in the user's time zone. For example, 2017-07-21.
timestamp:
type: integer
format: int64
description: The timestamp assigned to the group (milliseconds since epoch).
groupName:
type: string
description: >