-
Notifications
You must be signed in to change notification settings - Fork 5
/
apiary.apib
4192 lines (3014 loc) · 104 KB
/
apiary.apib
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
git FORMAT: 1A
HOST: https://appsco.com/
# AppsCo
AppsCo helps you securely manage all your private applications access and digital confidential information from any device.
## How to use AppsCo api
Appsco API supports [OAuth protocol](https://oauth.net/2/).
OAuth Request code in order to retrieve token for loggedin user.
Use client id and scope in order to request equivalent token.
Redirect uri can be used for redirect response.
System will return code which you can later use to retrieve access_token.
# Dashboard
Dashboard represents holder for application instances. Its content will be presented to user.
User can have only one dashboard, but many dashboards can be shared to user.
Sharing a dashboard is creating specific role for that user. This role is used to log all user interactions
in the system.
# Account
Account in AppsCo represents user identity. Identity can be used to interact with other software.
All actions that are preformed by the identity or in the name of the identity are loggeed in the system.
# Application Template
Applicaiton Template represents import from application catalog list.
These applications are used by user in order to setup application credentials.
AppsCo uses them in order to perform login.
Application catalog is a separate system that AppsCo uses in order to provide as many applications as possible to the user.
This list also holds methods of authentication.
Supported authentication methods
- Form Fill
- Auto Login
- SAML
- JWT
# Application
Application is an instance of application template and is further used for configuring credentials.
Application is used to store all user interactions with the resource credentials, login user, share credentials with other users.
Shared Application represents instance of application that is assigned to the user.
# Application instance (Application Icon)
Application instance represents instance of application and it is unique for the user.
Each interaction with application icon is logged in the application it self.
If application is removed all coresponding application icons will be also removed.
# AppsCo Log
* Create Resource
* Resource Claims Update
* Resource Update
* Resource remove from org unit
* Resource removed
* Resource icon removed
* Resource shared
* Resource icon claims updated
* Subscription update
* Cancel subscription
* Send invoice to email
* Create credit card - change payment method
* Remove company role
* Promote company role to admin
* Remove admin role from company member
* Company admin updated company memeber
* Company admin changed company memeber password
* Company member added
* Company members imported from csv
* Company member removed from orgunit
* Organization unit create
* Update organization unit
* Remove organization unit
* Add resource to organization unit
* Add account to organization unit
* Application remove from organization unit
* Company settings updated
* Company logo changed
* Account attemted login
* Account updated profile
* Account updated profile image
* Account generated partner token
* Account enabled 2fa
* Account disabled 2fa
* Account chnaged password
* Account authorized application
* Account revoked application authorization
# Company OrgUnits
Company represents something to write...
# OrgUnit - Resource - Account policy
OrgUnit is something something
# Check Login [/api/v2/login_check]
Login check.
### Login check [POST]
+ Request
+ Attributes (Setup Login)
+ Response 200 (application/json)
# Request Token [/api/v2/request-token]
In order to retrieve token user should first perform OAuth request which will provide code.
Code is used after that to retrieve token.
To retrieve token use code and basic authentication using your app credentials (`client_id`, `client_secret`).
### Exchange code and resource credentials for token [POST]
+ Request
+ Attributes (object)
+ code: 404oookk4ooccgsws2pxjq4rkeccg0co0wsk8 (string)
+ Headers
Authorization: Basic base64
+ Response 200 (application/json)
+ Attributes (Token)
# Explore Api [/api/v2]
This link can be used to retrieve list of all available resources.
In order to access this list user first need to authenticate.
## Retrieve api resources [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (applicaiton/json)
{
"versions": {
"v2": {
"dashboards": "https://www.appsco.com/api/v2/dashboards",
"me": "https://www.appsco.com/api/v2/me",
"application": "https://www.appsco.com/api/v2/applications",
"notifications": "https://www.appsco.com/api/v2/notifications",
"accounts": "https://www.appsco.com/api/v2/accounts",
"devices": "https://www.appsco.com/api/v2/devices",
"vault-cc": "https://www.appsco.com/api/v2/vault-cc",
"vault-identity": "https://www.appsco.com/api/v2/vault-identity",
"vault-login": "https://www.appsco.com/api/v2/vault",
"vault-passport": "https://www.appsco.com/api/v2/vault-passport",
"vault-secure-note": "https://www.appsco.com/api/v2/vault-secure-note",
"vault-software-licence": "https://www.appsco.com/api/v2/vault-software-licence"
}
}
}
# Dashboards [/api/v2/dashboards]
List all dashboards that user has right to access.
### Retrieve Dashboards [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ dashboards (array[string])
+ meta (Paging)
# Dashboard [/api/v2/dashboards/{dashboardRole}]
Returns dashboard details.
+ Attributes (Dashboard Model)
### Retrieve Dashboard [GET]
+ Parameters
+ dashboardRole: 551 (number) - ID of the Dashboard Role
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ dashboard (Dashboard Model)
+ meta (Dashboard Meta)
# List dashboard roles - shared accounts [/api/v2/dashboards/{dashboardRole}/accounts]
List all accounts that have shared application on the dashboard.
### Retrieve dashboard accounts [GET]
+ Parameters
+ dashboardRole: 551 (number) - ID of the Dashboard Role
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (object)
+ accounts (array[string])
+ meta (Paging)
# List all Resources on Dashboard [/api/v2/dashboards/{dashboardRole}/applications]
Return all dashboard resources.
### Retrieve dashboard resources [GET]
+ Parameters
+ dashboardRole: 551 (number) - ID of the Dashboard Role
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ applications (array[string])
+ meta (Paging)
# List of Resource instances on dashboard [/api/v2/dashboards/{dashboardRole}/icons]
Returns all available resource instances (icons) of the specific dashboard role.
### Retrieve icons [GET]
+ Parameters
+ dashboardRole: 551 (number) - ID of the Dashboard Role
+ Request
+ Parameters
+ dashboard
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icons (array[string])
+ meta (Paging)
### Create resource instance [POST]
This call will also fire Modify resource instance claims [PATCH] if you add username, password or note.
+ Parameters
+ dashboardRole: 551 (number) - ID of the Dashboard Role
+ Request
+ Attributes (Add app)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icon (Application Icon Model)
# Dashboard Resource [/api/v2/dashboards/{dashboard}/icons/{icon}/application]
### Modify resource instance claims [PATCH]
+ Parameters
+ dashboard: 551 (number) - ID of the Dashboard in the form of an integer
+ icon: 247155 (number) - ID of the Icon in the form of an integer
+ Request
+ Attributes (Setup app claims)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icon (Application Icon Model)
# Resource Instances [/api/v2/dashboards/{dashboard}/icons]
Return and update resource instance for the current dashboard user.
### Retrieve resource instances [GET]
+ Parameters
+ dashboard: 551 (number) - ID of the Dashboard in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icons (array[string])
+ meta (Paging)
# Resource Instance [/api/v2/dashboards/{dashboard}/icons/{icon}]
Return and update resource instance for the current dashboard user.
### Retrieve resource instance [GET]
+ Parameters
+ dashboard: 551 (number) - ID of the Dashboard in the form of an integer
+ icon: 247155 (number) - ID of the Icon in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icon (Application Icon Model)
### Modify resource instance claims [PATCH]
+ Parameters
+ dashboard: 551 (number) - ID of the Dashboard in the form of an integer
+ icon: 247155 (number) - ID of the Icon in the form of an integer
+ Request
+ Attributes (Setup claims)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icon (Application Icon Model)
### Remove resource instance from the dashboard [DELETE]
This call will also log the user changes for the Resource.
+ Parameters
+ dashboard: 551 (number) - ID of the Dashboard in the form of an integer
+ icon: 247155 (number) - ID of the Icon in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ Response (object)
+ message (string)
+ code (number)
+ meta (object)
+ icons (string) - List all dashboard role resource instances
# My Account [/api/v2/me]
Return AppsCo user account information.
### Retrieve user account information [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ account (AppsCo Identity Model)
### Update account [PUT]
+ Request
+ Attributes (Setup me)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ account (AppsCo Identity Model)
# Account Profile Image [/api/v2/me/profile-image]
Return profile image of currently logged in user.
### Setup account profile image [POST]
+ Attributes
+ file - The image file
+ Request (multipart/form-data)
+ Headers
Authorization: token absdef12345
+ Body
-----BOUNDARY
Content-Disposition: form-data; name="file"; filename="image.jpg"
Content-Type: image/jpeg
-----BOUNDARY
+ Response 200 (application/json)
+ Attributes (array[])
# Account Partner [/api/v2/me/partner]
Information regarding AppsCo Partner.
### Retrieve partner information [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (Partner Model)
+ account (Me)
# Account Application instances [/api/v2/me/icons]
Returns AppsCo account application instances of currently logged in user, regardles of the dashboard.
### Retrieve all application instances/icons [GET]
+ Request
+ Headers
Authorization: Token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icons (array[string])
+ meta (Paging)
# Resource Instances Personal [/api/v2/me/icons/personal]
Returns AppsCo account resource personal instances/icons currently logged in user
### Retrieve personal resource instances/icons [GET]
+ Request
+ Headers
Authorization: Token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icons (array[string])
+ meta (Paging)
# Resource Instances Shared With Me [/api/v2/me/icons/shared-with-me]
Returns AppsCo account resource instances shared with company
### Retrieve all resource instances/icons [GET]
+ Request
+ Headers
Authorization: Token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icons (array[string])
+ meta (Paging)
# Resource Instances Shared With Me Company [/api/v2/me/icons/shared-with-me-company/{company}]
Returns AppsCo account resource instances shared with currently logged in user, regardles of the dashboard.
+ Parameters
+ company (number) - ID of the company in the form of an integer
### Retrieve resource instances/icons shared with company [GET]
+ Request
+ Headers
Authorization: Token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icons (array[string])
+ meta (Paging)
# Account Resource instance [/api/v2/me/icons/{applicationIcon}]
Returns AppsCo account resource instance of currently logged in user.
### Retrieve resource instance [GET]
+ Parameters
+ applicationIcon: 247155 (number) - ID of the Resource Icon in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ icon (Application Icon Model)
# My Account's Resources [/api/v2/me/applications]
Returns AppsCo account resources of currently logged in user.
### Retrieve resources of my account [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ applications (array[string])
+ meta (Paging)
# Account Resource [/api/v2/me/applications/{applicationIcon}]
Returns AppsCo account resource of currently logged in user.
### Retrieve specific resource's information [GET]
+ Parameters
+ applicationIcon: 247155 (number) - ID of the Resource Icon in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (Account Application Model)
# Account Two-Factor Authentication [/api/v2/me/2fa]
Is two-factor authentication turned on or off.
### Two-factor authentication status [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ enabled (boolean)
### Setup two factor authentication [POST]
+ Attributes
+ googleAuthenticatorSecret: SKDSSBRQR2VXCCVK (string) - Goolge authenticator secret key
+ key: 348271 (number) - Two factor authentication key
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ enabled: true (boolean)
### Turn off two factor authentication [DELETE]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ enabled: true (boolean)
# Two-factor Authentication recovery codes [/api/v2/me/2fa/codes]
Returns AppsCo account two factor authentication recovery codes of currently logged in user
### Retrieve two-factor recovery codes [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (array[number])
# Change Password [/api/v2/me/change-password]
AppsCo account change password of currently logged in user.
### Setup new password for my account [POST]
+ Attributes (Setup password)
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ enabled (boolean)
# Account's Authorized Apps [/api/v2/me/authorized-apps]
Return AppsCo account two-factor authorized applications of currently logged in user.
### Retrieve authorization's information [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ authorizations (array[Authorized Apps Model])
+ meta (Paging)
# Me Authorized Apps ID [/api/v2/me/authorized-apps/{oauthApp}]
Delete AppsCo account oauth application of currently logged in user.
+ Parameters
+ oauthApp (number) - ID of the Authorized application in the form of an integer
### Remove authorization of application [DELETE]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ success: true (boolean)
# Account Logs [/api/v2/me/log]
Return account logs of currently logged in user.
### Retrieve logs [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ log (array[Log Model])
+ meta (Paging)
# Template Resources [/api/v2/applications]
Return all available template resources.
### Retrieve all template resources [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ applications (array[string])
+ meta (Paging)
# Single Resource [/api/v2/applications/{application}]
Return Appsco resource information on the user's dashboard.
### Retrieve all information about resource [GET]
+ Parameters
+ application: 2 (number) - ID of the Resource in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ application (Application)
### Remove single resource from dashboard [DELETE]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ Response (Response App Model)
+ meta (Meta Icons)
# Switch Resource [/api/v2/applications/{application}/switch]
Autologin sign-in process automation switch is only available if the designated application supports both UN/PW and Item as Auth types.
### Switch resource login type [POST]
+ Parameters
+ application: 2 (number) - ID of the Resource in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ Response (Response App Model)
# Resource's Log [/api/v2/applications/{application}/log]
Return AppsCo resource logs.
### Retrieve logs for resource [GET]
+ Parameters
+ application: 2 (number) - ID of the Resource in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ log (array[Log Model])
+ meta (Paging)
# Resource's Subscribers [/api/v2/applications/{application}/subscribers]
Return AppsCo resource subscribers for a currently loged user.
### Retrieve subscribers for resource [GET]
+ Parameters
+ application: 2 (number) - ID of the Resource in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ accounts (array[string])
+ meta (Paging)
### Delete specific subscriber [DELETE]
+ Parameters
+ application: 2 (number) - ID of the Resource in the form of an integer
+ Request
+ Attributes
+ account: https://appsco.com/api/v2/accounts/10 (string) - Subscriber's account
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ Response (Response App Model)
# Resource's Track Events [/api/v2/applications/{application}/track-events]
AppsCo resource track events for a currently loged user.
### Retrieve resource track event [GET]
+ Request
+ Attributes (Setup Track Events)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (Response App Model)
# Notifications [/api/v2/notifications]
Return AppsCo notifications for a currently loged in user.
### Retrieve notifications [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (array[Notifications Model])
# Accounts [/api/v2/accounts]
Return AppsCo accounts.
### Retrieve accounts [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ accounts (array[string])
+ meta (Paging)
# Account [/api/v2/accounts/{accountId}]
Return AppsCo account information.
### Retrieve account [GET]
+ Parameters
+ accountId: 41 (number) - ID of the Account in the form of an integer
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ account (AppsCo Identity Model)
# Share Accounts [/api/v2/accounts/{accountId}/share]
Share AppsCo account.
### Share account instance [POST]
+ Parameters
+ accountId: 41 (number) - ID of the Account in the form of an integer
+ Attributes
+ icon: https://appsco.com/api/v2/dashboards/551/icons/247155 (string) - Dashboard's icon that you want to share
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ Response (Response App Model)
# Companies [/api/v2/companies]
Return AppsCo companies for current user.
### Retrieve companies [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ companies (array[string])
+ meta (Paging)
# Create Company [/api/v2/company]
Create AppsCo Company for current user.
### Create company [POST]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ account (Create Company Response)
# Company [/api/v2/companies/{company_id}]
Return AppsCo Company information for currently logged in user.
+ Parameters
+ `company_id`: 16 (number) - ID of the Company in the form of an integer
### Retrieve company [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (Company)
# Company Transfer Token [/api/v2/companies/{company_id}/transfer-toke]
Get AppsCo Company transfer token.
+ Parameters
+ `company_id`: 16 (number) - ID of the Company in the form of an integer
### Retrieve company transfer token [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (Transfer Token)
# Company Resources [/api/v2/companies/{company_id}/applications]
Return AppsCo Company information for currently logged in user.
+ Parameters
+ `company_id`: 16 (number) - ID of the Company in the form of an integer
### Retrieve company resources [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ applications (array[string])
+ meta (Paging)
### Add company resource to organization unit [POST]
+ Request
+ Attributes (Setup App to OrgUnit)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes (Company Application)
# Company OrgUnits [/api/v2/companies/{company_id}/org-units]
Return AppsCo Company OrgUnits for currently logged in user.
+ Parameters
+ `company_id`: 16 (number) - ID of the Company in the form of an integer
### Retrieve company orgunits [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ orgunits (array[string])
+ meta (Paging)
# Company OrgUnit [/api/v2/companies/{company_id}/org-units/{orgunit_id}]
Return AppsCo Company OrgUnits for currently logged in user.
+ Parameters
+ `company_id`: 16 (number) - ID of the Company in the form of an integer
+ `orgunit_id`: 44 (number) - ID of the Company OrgUnit in the form of an integer
### Retrieve company orgunit [GET]
+ Request
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ item (Model OrgUnit)
### Add new organization unit [POST]
+ Request
+ Attributes (Setup OrgUnit)
+ Headers
Authorization: token absdef12345
+ Response 200 (application/json)
+ Attributes
+ orgunit (Model OrgUnit)
### Update organization unit [PATCH]
+ Request
+ Attributes (Setup OrgUnit)
+ Headers
Authorization: token absdef12345