-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathgovernance-production-requests-admin-v1-reference-minimal.yaml
More file actions
5385 lines (5315 loc) · 214 KB
/
Copy pathgovernance-production-requests-admin-v1-reference-minimal.yaml
File metadata and controls
5385 lines (5315 loc) · 214 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
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.3
info:
title: Access Requests - V1
description: Allows customers to easily access the Okta API
termsOfService: https://developer.okta.com/terms/
contact:
name: Okta Developer Team
url: https://developer.okta.com/
email: devex-public@okta.com
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 3.2.0
x-logo:
url: logo.svg
backgroundColor: transparent
altText: Okta Developer
servers:
- url: https://{yourOktaDomain}
variables:
yourOktaDomain:
default: subdomain.okta.com
description: The domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains.
tags:
- name: Request Types
description: |
The Request Types API allows you to manage request types, similar to the operations performed in the Okta Access Requests app. Use this API to define request types that include:
- Fields to complete
- Approvals and tasks required
- Actions performed in Okta
See [Access Request Types](https://help.okta.com/okta_help.htm?type=oie&id=ext-ar-reqtype) in the product documentation.
> **Notes**:
>
> * Each org has a limit of 500 active request types.
> * Operations to create or delete apps or groups in Okta could take up to 24 hours before they can be referenced by the Access Requests - V1 APIs. To trigger these changes immediately, open Okta Access Requests as an administrator, go to **Settings** > **Configuration** and click **Sync Now** on the relevant Okta resource list.
- name: Requests
description: |
Okta Access Requests automate the process of requesting access to resources like apps, groups, and entitlement bundles.
Each request is associated with a request approval process that determines the actions taken by Okta Access Requests.
Manage this process directly with the following request APIs.
See [Access Requests](https://help.okta.com/okta_help.htm?type=oie&id=ext-ar) for more information on Access Requests
and Identity Governance.
externalDocs:
description: Find more info here
url: https://developer.okta.com/docs/reference/core-okta-api/#design-principles
paths:
/governance/api/v1/request-types:
post:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Request Types
operationId: createRequestType
summary: Create a request type
description: |
Creates a request type that governs the requests allowed in your org.
Specify the following to create a request type:
- What resource access can be requested
- Who can request access
- What question(s) requesters must answer (optional)
- Who can approve access
- What question(s) approvers must answer (optional)
- How long access should be granted for (optional)
> **Notes**:
>
> * You can have a maximum of 100 combined items across `approvalSettings.approvals`, `approvalSettings.approvals.approverFields`, and `requestSettings.requesterFields` objects for each request type. This translates to a maximum of 100 combined questions, tasks, or actions for each request type.
> * The limit on the JSON response payload of a request type is 100,000 characters.
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.manage
requestBody:
required: true
description: The writable attributes of a request type
content:
application/json:
schema:
$ref: '#/components/schemas/request-type-creatable'
examples:
Minimal:
$ref: '#/components/examples/request-type-creatable-00-minimal-example'
IncludingDefaults:
$ref: '#/components/examples/request-type-creatable-01-request-anyone-no-questions-example'
GroupManager:
$ref: '#/components/examples/request-type-creatable-02-group-manager-example'
AppManager:
$ref: '#/components/examples/request-type-creatable-03-app-manager-example'
AppManagerSelectField:
$ref: '#/components/examples/request-type-creatable-04-app-manager-select-field-example'
AppManagerTextField:
$ref: '#/components/examples/request-type-creatable-05-app-manager-text-field-example'
AppManagerDatetimeField:
$ref: '#/components/examples/request-type-creatable-06-app-manager-datetime-field-example'
MultistepApproval:
$ref: '#/components/examples/request-type-creatable-07-approval-multi-step-example'
OptionalQuestions:
$ref: '#/components/examples/request-type-creatable-08-optional-questions-example'
RequesterMemberOf:
$ref: '#/components/examples/request-type-creatable-09-requester-memberof-example'
PublishedWithAccessDuration:
$ref: '#/components/examples/request-type-creatable-10-active-example'
NoApprovals:
$ref: '#/components/examples/request-type-creatable-11-no-approval-example'
ApprovalDescription:
$ref: '#/components/examples/request-type-creatable-12-approval-description-example'
ResourceOwnerApproval:
$ref: '#/components/examples/request-type-creatable-13-resource-owner-approval-example'
responses:
'201':
$ref: '#/components/responses/request-types-create-success-response'
'400':
$ref: '#/components/responses/request-types-create-bad-request-response'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
get:
x-okta-lifecycle:
lifecycle: BETA
tags:
- Request Types
operationId: listAllRequestTypes
summary: List all request types
description: |-
Lists all or a subset of request types in your organization.
Use the `?filter=` parameter to narrow results with the following request type properties: `status` and `lastUpdated`.
Pagination parameters are accepted, and standard link headers are in the response.
parameters:
- $ref: '#/components/parameters/request-types-list-filter'
- $ref: '#/components/parameters/request-types-list-after'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/request-types-list-order-by'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.read
responses:
'200':
$ref: '#/components/responses/request-types-list-success'
'400':
$ref: '#/components/responses/request-types-list-bad-request'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'404':
$ref: '#/components/responses/resource-not-found-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/request-types/{requestTypeId}:
get:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Request Types
operationId: getRequestType
summary: Retrieve a request type
description: |-
Retrieves the full representation of a specific request type.
More information is returned than the abbreviated representation in a List request types operation.
parameters:
- $ref: '#/components/parameters/request-type-id'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.read
responses:
'200':
$ref: '#/components/responses/request-type-get-success'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'404':
$ref: '#/components/responses/resource-not-found-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
delete:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Request Types
operationId: deleteRequestType
summary: Delete a request type
description: |
Deletes a request type from your organization.
A deleted request type:
- Can no longer be used to add requests
- Can no longer be unpublished or published
- Is no longer available for Get or List operations
>**Note:** In-flight requests using the `DELETED` request type continue in their lifecycle operations using the state of the request type at the time the request was made.
parameters:
- $ref: '#/components/parameters/request-type-id'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.manage
responses:
'204':
$ref: '#/components/responses/request-type-delete-success-response'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'404':
$ref: '#/components/responses/resource-not-found-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/request-types/{requestTypeId}/publish:
post:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Request Types
operationId: publishRequestType
summary: Publish a request type
description: |
Publishes a request type to your organziation.
A published request type:
- Can be used to create requests
- Can be viewed by non-administrative users
- Sets the request type's status to `ACTIVE`
A request type with a status of `ACTIVE` can be unpublished or deleted at any time.
parameters:
- $ref: '#/components/parameters/request-type-id'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.manage
responses:
'200':
$ref: '#/components/responses/request-type-publish-success-response'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'404':
$ref: '#/components/responses/resource-not-found-response'
'409':
$ref: '#/components/responses/request-type-publish-conflict-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/request-types/{requestTypeId}/un-publish:
post:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Request Types
operationId: unpublishRequestType
summary: Unpublish a request type
description: |
Unpublishes a request type, which returns the status of the request type to `DRAFT`.
An unpublished Request Type:
- Can't be used to add new requests
- Is not visible to non-administrative users
>**Note:** In-flight requests continue in their lifecycle using the request type definition from the point in time the request was created.
A request type with a status of `DRAFT` can be published or deleted at any time.
parameters:
- $ref: '#/components/parameters/request-type-id'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.manage
responses:
'200':
$ref: '#/components/responses/request-type-un-publish-success-response'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'404':
$ref: '#/components/responses/resource-not-found-response'
'409':
$ref: '#/components/responses/request-type-un-publish-conflict-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/requests:
get:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Requests
operationId: listAllRequests
summary: List all requests
description: |
Lists all or a subset of requests made by users in your organization.
Use the `?filter=` parameter to narrow results with the following request properties: `requestStatus` and `lastUpdated`.
Pagination parameters are accepted, and standard link headers are in the response.
parameters:
- $ref: '#/components/parameters/request-list-filter'
- $ref: '#/components/parameters/request-list-after'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/request-list-order-by'
security:
- OAuth2:
- okta.governance.accessRequests.read
responses:
'200':
$ref: '#/components/responses/requests-list-success'
'400':
$ref: '#/components/responses/requests-list-bad-request'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
post:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
operationId: createRequest
tags:
- Requests
summary: Create a request
description: |
Creates a request to access a resource in your organization.
When creating a request, you specify:
- the request type (`requestTypeId`) to use for the request
- and the subject line (`subject`) of the request
Optionally, you can specify:
- The requester user IDs for the request. If not provided, user IDs are obtained from the user identity of the `API Token` or `Access Token`.
requestBody:
required: true
description: The writable attributes of a request
content:
application/json:
schema:
$ref: '#/components/schemas/request-creatable'
examples:
NoRequester:
$ref: '#/components/examples/request-00-create-no-requester-example'
Requester:
$ref: '#/components/examples/request-01-create-requester-example'
RequestHasRequesterFieldValues:
$ref: '#/components/examples/request-02-create-field-values-example'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.manage
responses:
'201':
$ref: '#/components/responses/request-create-success-response'
'400':
$ref: '#/components/responses/request-create-bad-request-response'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/request-create-forbidden-response'
'409':
$ref: '#/components/responses/request-create-conflict-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/requests/{requestId}:
get:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Requests
operationId: getRequest
summary: Retrieve a request
description: |
Retrieves the full representation of a specific request
More information is returned than the abbreviated representation in a [List all requests](/iga/openapi/governance-production-requests-admin-v1-reference/requests/listallrequests) operation.
parameters:
- $ref: '#/components/parameters/request-id'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.read
responses:
'200':
$ref: '#/components/responses/request-get-success'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'404':
$ref: '#/components/responses/resource-not-found-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/requests/{requestId}/messages:
post:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Requests
operationId: createRequestMessage
summary: Create a Message for a Request
description: |
Creates a message to add context to the request. Message will be authored by the authenticated user and display as "Sent via API".
parameters:
- $ref: '#/components/parameters/request-id'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.manage
requestBody:
required: true
description: The writable attributes of a request message
content:
application/json:
schema:
$ref: '#/components/schemas/request-message-creatable'
examples:
ViewersAll:
$ref: '#/components/examples/request-message-00-create-message-audience-all'
ReferenceToAnotherSystem:
$ref: '#/components/examples/request-message-01-create-message-referencing-another-system'
MaxMessageLimit:
$ref: '#/components/examples/request-message-02-create-message-max-message-limit'
responses:
'201':
description: A successful create request message response
'401':
$ref: '#/components/responses/authentication-error-response'
'429':
$ref: '#/components/responses/rate-limit-exceeded-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
/governance/api/v1/teams:
get:
x-okta-lifecycle:
lifecycle: BETA
x-okta-iam-admin-roles:
- ACCESS_REQUESTS_ADMIN
tags:
- Request Types
operationId: listAllRequestTeams
summary: List all teams
description: |
Lists all or a subset of teams in your organization.
Use the `?filter=` parameter to narrow results with the request type property `name`. This query is useful for specifying the `ownerId` of a request type.
Pagination parameters are accepted, and standard link headers are in the response.
parameters:
- $ref: '#/components/parameters/teams-filter'
- $ref: '#/components/parameters/teams-after'
- $ref: '#/components/parameters/limit'
security:
- ApiKey:
- admin
- OAuth2:
- okta.governance.accessRequests.read
responses:
'200':
$ref: '#/components/responses/teams-list-success'
'400':
$ref: '#/components/responses/teams-list-bad-request'
'401':
$ref: '#/components/responses/authentication-error-response'
'403':
$ref: '#/components/responses/authorization-error-response'
'500':
$ref: '#/components/responses/unexpected-error-response'
components:
securitySchemes:
OAuth2:
type: oauth2
description: 'Pass the `access_token` as the value of the Authorization header: `Authorization: Bearer {access_token}`. See [Make a request](https://developer.okta.com/docs/guides/implement-oauth-for-okta-serviceapp/main/#make-a-request).'
flows:
authorizationCode:
authorizationUrl: /oauth2/v1/authorize
tokenUrl: /oauth2/v1/token
scopes:
okta.governance.accessCertifications.manage: Allows the app to create and manage Access Certification Campaigns
okta.governance.accessCertifications.read: Allows the app to read information about Access Certification Campaigns and Reviews in your Okta org
okta.governance.accessRequests.manage: Allows the app to create and manage V1 Access Requests, Request Types, and Teams
okta.governance.accessRequests.read: Allows the app to read information about V1 Access Requests, Request Types, and Teams in your Okta org
okta.governance.entitlements.read: Allows the app to read information about Entitlements, Entitlement bundles, and Grants
okta.governance.entitlements.manage: Allows the app to create and manage Entitlements, Entitlement bundles, and Grants
okta.accessRequests.catalog.read: Allows the app to read information about Access Request Catalogs in your Okta org
okta.accessRequests.condition.manage: Allows the app to create and manage Conditions for the Access Request Resource Catalog
okta.accessRequests.condition.read: Allows the app to read information about Conditions for the Access Request Resource Catalog
okta.accessRequests.request.manage: Allows the app to create and manage V2 Access Requests through the Access Request Resource Catalog
okta.accessRequests.request.read: Allows the app to read information about V2 Access Requests created through the Access Requests Resource Catalog
okta.governance.collections.manage: Allows the app to create and manage collections
okta.governance.collections.read: Allows the app to read information about collections in your Okta org
okta.governance.operations.read: Allows the app to read information about asynchronous operations in your Okta org
okta.governance.riskRule.manage: Allows the app to create and manage rules
okta.governance.riskRule.read: Allows the app to read information about rules in your Okta org
okta.governance.resourceOwner.manage: Allows the app to create and manage resource owners
okta.governance.resourceOwner.read: Allows the app to read information about resource owners in your Okta org
okta.governance.labels.manage: Allows the user to create and manage labels
okta.governance.labels.read: Allows the user to read information about labels in your Okta org
okta.governance.securityAccessReviews.admin.manage: Allows the admin app to create and manage security access reviews
okta.governance.securityAccessReviews.admin.read: Allows the admin app to read information about security access reviews
okta.governance.securityAccessReviews.endUser.manage: Allows the end-user app to create and manage security access reviews
okta.governance.securityAccessReviews.endUser.read: Allows the end-user app to read information about security access reviews
okta.governance.principalSettings.manage: Allows the app to create and manage governance settings for any user in your Okta org
okta.governance.principalSettings.read: Allows the app to read information about governance settings for any user in your Okta org
okta.governance.settings.manage: Allows the app to create and manage governance settings for your Okta org
okta.governance.settings.read: Allows the app to read information about governance settings for your Okta org
okta.governance.delegates.read: Allows the app to read information about delegates in your Okta org
okta.governance.reviewer.read: Allows the end user to read information about access certification reviews assigned to them
okta.governance.reviewer.manage: Allows the end user to manage access certification reviews assigned to them
okta.accessRequests.tasks.manage: Allows the user to manage tasks for access requests in your Okta org
okta.accessRequests.tasks.read: Allows the user to read information about tasks for access requests in your Okta org
ApiKey:
type: apiKey
name: Authorization
in: header
description: 'Pass the API token as the Authorization header value prefixed with SSWS: `Authorization: SSWS {API Token}`.'
schemas:
scim-filter:
type: string
format: scim-filter
request-type-id:
type: string
maxLength: 24
minLength: 24
pattern: ^[a-fA-F\d]{24}$
format: request-type-id
description: |
The request type `id`.
order-by:
type: string
format: order-by
description: A property of items within the collection, optionally followed by a `%20asc` or `%20desc` suffix.
writable-standard-properties:
type: object
properties:
name:
type: string
nullable: false
description: A user-defined unique key that's set during the create operation and can't be updated afterwards
maxLength: 50
minLength: 1
description:
type: string
nullable: false
description: Human readable description
maxLength: 2000
minLength: 1
example:
name: my-object-1
description: The unique instance of my-object-1
created-by:
description: The `id` of the Okta user who created the resource
type: string
x-okta-ignore-redocly-rules-for-sdk: true
readOnly: true
minLength: 1
maxLength: 20
format: okta-user-id
created:
description: The ISO 8601 formatted date and time when the resource was created
type: string
x-okta-ignore-redocly-rules-for-sdk: true
format: date-time
readOnly: true
last-updated:
description: The ISO 8601 formatted date and time when the object was last updated
type: string
format: date-time
readOnly: true
last-updated-by:
description: The `id` of the Okta user who last updated the object
type: string
x-okta-ignore-redocly-rules-for-sdk: true
readOnly: true
minLength: 1
maxLength: 20
format: okta-user-id
link:
type: object
x-okta-ignore-redocly-rules-for-sdk: true
description: A link to a related RESTful resource
required:
- href
properties:
name:
type: string
description: Link name
rel:
type: string
description: Link relation
href:
type: string
minLength: 1
description: Link URI
type:
type: string
description: The media type of the link. If omitted, it's implicitly `application/json`.
method:
type: string
deprecated: true
templated:
type: boolean
description: Indicates whether the link object's `href` property is a URI template
hints:
type: object
description: Link hints
additionalProperties:
type: array
items:
type: string
title:
type: string
description: Link title or label
read-only-standard-properties:
type: object
x-okta-ignore-redocly-rules-for-sdk: true
required:
- id
- createdBy
- created
- lastUpdated
- lastUpdatedBy
properties:
id:
description: Unique identifier for the object
type: string
minLength: 1
createdBy:
$ref: '#/components/schemas/created-by'
created:
$ref: '#/components/schemas/created'
lastUpdated:
$ref: '#/components/schemas/last-updated'
lastUpdatedBy:
$ref: '#/components/schemas/last-updated-by'
_links:
type: object
description: Links to related resources
additionalProperties:
$ref: '#/components/schemas/link'
request-type-status:
type: string
enum:
- DRAFT
- ACTIVE
- DISABLED
description: |
A request type has a status lifecycle described in our [request type lifecycle documentation](/#request-type-status-lifecycle).
A request type may start with a status of DRAFT or ACTIVE, based on the status property in the Add request body.
The publish, unpublish, and delete operations all affect a request type's status.
Additionally, if any operation detects invalid settings, such as an approver who is no longer in the organization, the request type automatically transitions to disabled.
request-type-links:
type: object
description: Links available on a single request type representation
required:
- requests
- self
properties:
createRequest:
description: Only available for request type with status of ACTIVE
allOf:
- $ref: '#/components/schemas/link'
requests:
$ref: '#/components/schemas/link'
self:
$ref: '#/components/schemas/link'
additionalProperties:
$ref: '#/components/schemas/link'
request-type-sparse:
type: object
description: Sparse representation of a Request Type resource
allOf:
- $ref: '#/components/schemas/writable-standard-properties'
- $ref: '#/components/schemas/read-only-standard-properties'
required:
- id
- name
- description
- lastUpdated
- lastUpdatedBy
- status
- lastUpdateSource
- _links
properties:
status:
$ref: '#/components/schemas/request-type-status'
lastUpdateSource:
type: string
enum:
- API
_links:
$ref: '#/components/schemas/request-type-links'
example:
id: 61eb2db568c7c300079fefd0
name: salesforce-01
description: How users can request access to Salesforce 01
lastUpdated: '2022-05-24T14:15:22Z'
lastUpdatedBy: 00ub0oNGTSWTBKOLGLNR
created: '2022-05-24T14:15:22Z'
createdBy: 00ub0oNGTSWTBKOLGLNR
status: ACTIVE
lastUpdateSource: API
_links:
createRequest:
href: https://my-org.at.okta.com/next/new?q=Request%20access%20to%20Salesforce&request_type=0oa1gjh63g214q0Hq0g4
type: text/html
requests:
href: https://myorg.okta.com/governance/api/v1/requests?filter=requestTypeId%20eq%20%2261eb2db568c7c300079fefd0%22
type: application/json
self:
href: https://myorg.okta.com/governance/api/v1/requests/61eb2db568c7c300079fefd0
type: application/json
request-types-list-links:
type: object
description: Links available in request type list response
required:
- self
properties:
self:
$ref: '#/components/schemas/link'
next:
$ref: '#/components/schemas/link'
additionalProperties:
$ref: '#/components/schemas/link'
request-types-list:
type: object
properties:
data:
description: All Request Types on the current page
type: array
items:
$ref: '#/components/schemas/request-type-sparse'
_links:
$ref: '#/components/schemas/request-types-list-links'
error-cause:
type: object
x-okta-ignore-redocly-rules-for-sdk: true
description: A specific cause of an error
required:
- errorSummary
properties:
errorSummary:
type: string
description: A more specific summary for the error that contains the error cause
reason:
type: string
description: An enumerated value to represent the reason why the error occurred. This enumeration allows codes to adapt to different conditions in which an error code can occur.
location:
type: string
description: A value that represents the key where the error cause occurred. This is used with `locationType` to give a holistic view of where the error cause occurred. For example, if `locationType` is `body`, `location` is `username`, and the `reason` was `UNIQUE_CONSTRAINT`, you can derive that the username was already taken.
locationType:
type: string
description: A value that represents where the error cause occurred. For example, in the body or header of the request. This value isn't required for cases where the request is correct, but there was another reason why the error occurred (server-side state conflict, rate limit violation, and so on).
domain:
type: string
description: A value that represents the domain of the service in which the error occurs. This value is used to isolate the error cause reason.
error:
type: object
description: An Error object
required:
- errorCode
- errorId
- errorSummary
properties:
errorCode:
type: string
description: An error code unique to the error
errorId:
type: string
description: An error identifier useful for troubleshooting an error with support
errorSummary:
type: string
description: An error code description detailing the error
errorLink:
type: string
description: An indicator of where to look to troubleshoot the error
errorCauses:
type: array
description: An optional array of string values that explain possible reasons for the error
items:
$ref: '#/components/schemas/error-cause'
request-type-creatable-status:
type: string
enum:
- DRAFT
- ACTIVE
default: DRAFT
description: Whether the request type starts with a status of DRAFT or ACTIVE. Starting as ACTIVE is preferable to avoid a publish operation when no manual inspection of the request type is necessary before publication.
request-type-owner-id:
type: string
description: The ID of the team that administers this request type.
maxLength: 24
minLength: 24
pattern: ^[a-fA-F\d]{24}$
format: owner-id
application-id:
type: string
format: okta-application-id
description: |
An Okta app ID
See [List all apps](https://developer.okta.com/docs/api/openapi/okta-management/management/tags/application/other/listapplications) endpoint for more information on how to retrieve app IDs.
pattern: 0oa[0-9a-zA-Z]+
maxLength: 20
minLength: 20
okta-application-resource:
type: object
description: Identifies a unique Okta resource
required:
- resourceId
properties:
resourceId:
$ref: '#/components/schemas/application-id'
request-type-resource-settings-apps:
type: object
description: Specifies that all resources must be Okta apps
required:
- type
- targetResources
properties:
type:
type: string
enum:
- APPS
targetResources:
type: array
description: List of Okta applications
minItems: 1
maxItems: 1
items:
$ref: '#/components/schemas/okta-application-resource'
group-id:
type: string
format: okta-group-id
description: |
Okta group ID.
> **Note:** See [List all groups](https://developer.okta.com/docs/api/openapi/okta-management/management/group/listgroups) for more information on how to retrieve group IDs.
pattern: 00g[0-9a-zA-Z]+
maxLength: 20
minLength: 20
okta-group-resource:
type: object
description: Identifies a unique Okta group resource
required:
- resourceId
properties:
resourceId:
$ref: '#/components/schemas/group-id'
request-type-resource-settings-groups:
type: object
description: Specifies that all resources must be Okta groups
required:
- type
- targetResources
properties:
type:
type: string
enum:
- GROUPS
targetResources:
type: array
description: List of Okta groups
minItems: 1
maxItems: 1
items:
$ref: '#/components/schemas/okta-group-resource'
entitlement-bundle-id:
type: string
maxLength: 20
minLength: 20
format: entitlement-bundle-id
pattern: enb[0-9a-zA-Z]+
description: |
The entitlement bundle `id`
okta-entitlement-bundle-resource:
type: object
description: Identifies a unique Okta entitlement bundle resource
required:
- resourceId
properties:
resourceId:
$ref: '#/components/schemas/entitlement-bundle-id'
request-type-resource-settings-entitlement-bundles:
type: object
description: Specifies that all resources must be Okta entitlement bundles
required:
- type
- targetResources
properties:
type:
type: string
enum:
- ENTITLEMENT_BUNDLES
targetResources:
type: array
description: List of Okta entitlement bundles
minItems: 1
maxItems: 1
items:
$ref: '#/components/schemas/okta-entitlement-bundle-resource'
request-type-resource-settings-mutable:
type: object
description: Which resource(s) are requestable
oneOf:
- $ref: '#/components/schemas/request-type-resource-settings-apps'
- $ref: '#/components/schemas/request-type-resource-settings-groups'
- $ref: '#/components/schemas/request-type-resource-settings-entitlement-bundles'
discriminator:
propertyName: type
mapping:
APPS: '#/components/schemas/request-type-resource-settings-apps'
GROUPS: '#/components/schemas/request-type-resource-settings-groups'
ENTITLEMENT_BUNDLES: '#/components/schemas/request-type-resource-settings-entitlement-bundles'
okta-push-group-id:
type: string
format: okta-push-group-id
description: An Okta Group ID that's used for push groups in Okta.
example: 00g1emaKYZTWRYYRRTSK
pattern: 00g[0-9a-zA-Z]+
maxLength: 20
minLength: 20
member-of:
type: array
description: Okta groups that the user persona must be a member of
minItems: 1
maxItems: 1
items:
$ref: '#/components/schemas/okta-push-group-id'
field-prompt:
type: string
description: Text to prompt the user with
minLength: 1
maxLength: 100
example: What is the business justification?
field-required:
type: boolean
description: Whether a value to this field is required to advance the request