@gitbook/api 0.41.0 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.json CHANGED
@@ -6323,9 +6323,15 @@
6323
6323
  "title": {
6324
6324
  "$ref": "#/components/schemas/OrganizationTitle"
6325
6325
  },
6326
+ "createdAt": {
6327
+ "$ref": "#/components/schemas/Timestamp"
6328
+ },
6326
6329
  "emailDomains": {
6327
6330
  "$ref": "#/components/schemas/OrganizationEmailDomains"
6328
6331
  },
6332
+ "hostname": {
6333
+ "$ref": "#/paths/~1orgs~1%7BorganizationId%7D/patch/requestBody/content/application~1json/schema/properties/hostname"
6334
+ },
6329
6335
  "type": {
6330
6336
  "$ref": "#/components/schemas/OrganizationType"
6331
6337
  },
@@ -6382,6 +6388,7 @@
6382
6388
  "object",
6383
6389
  "id",
6384
6390
  "title",
6391
+ "createdAt",
6385
6392
  "type",
6386
6393
  "emailDomains",
6387
6394
  "urls"
@@ -6765,9 +6772,6 @@
6765
6772
  "sites": {
6766
6773
  "$ref": "#/components/schemas/OrganizationUsageSites"
6767
6774
  },
6768
- "seats": {
6769
- "$ref": "#/components/schemas/OrganizationUsageSeats"
6770
- },
6771
6775
  "teams": {
6772
6776
  "$ref": "#/components/schemas/OrganizationUsageTeams"
6773
6777
  },
@@ -6782,7 +6786,6 @@
6782
6786
  "spaces",
6783
6787
  "collections",
6784
6788
  "sites",
6785
- "seats",
6786
6789
  "teams",
6787
6790
  "members",
6788
6791
  "teamMembers"
@@ -6860,6 +6863,10 @@
6860
6863
  "description": "Count of all members",
6861
6864
  "type": "number"
6862
6865
  },
6866
+ "seats": {
6867
+ "description": "Count of all paid seats",
6868
+ "type": "number"
6869
+ },
6863
6870
  "admin": {
6864
6871
  "description": "Count of all admins",
6865
6872
  "type": "number"
@@ -6891,6 +6898,7 @@
6891
6898
  },
6892
6899
  "required": [
6893
6900
  "total",
6901
+ "seats",
6894
6902
  "admin",
6895
6903
  "create",
6896
6904
  "edit",
@@ -6936,24 +6944,6 @@
6936
6944
  "member"
6937
6945
  ]
6938
6946
  },
6939
- "OrganizationUsageSeats": {
6940
- "type": "object",
6941
- "description": "Seats usage metrics of an organization",
6942
- "properties": {
6943
- "total": {
6944
- "description": "The total amount of seats in the organization.",
6945
- "type": "number"
6946
- },
6947
- "available": {
6948
- "description": "How many seats are still available.",
6949
- "type": "number"
6950
- }
6951
- },
6952
- "required": [
6953
- "total",
6954
- "available"
6955
- ]
6956
- },
6957
6947
  "Capture": {
6958
6948
  "type": "object",
6959
6949
  "properties": {
@@ -8807,6 +8797,7 @@
8807
8797
  "space:git:sync",
8808
8798
  "space:visitor:auth",
8809
8799
  "site:script:inject",
8800
+ "site:script:cookies",
8810
8801
  "site:visitor:auth"
8811
8802
  ]
8812
8803
  },
@@ -9635,6 +9626,27 @@
9635
9626
  "cookies"
9636
9627
  ]
9637
9628
  },
9629
+ "SiteIntegrationScript": {
9630
+ "type": "object",
9631
+ "properties": {
9632
+ "script": {
9633
+ "description": "Script URL to load.",
9634
+ "$ref": "#/components/schemas/URL"
9635
+ },
9636
+ "contentSecurityPolicy": {
9637
+ "description": "Content Security Policy to secure the loading of this script.",
9638
+ "type": "string"
9639
+ },
9640
+ "cookies": {
9641
+ "type": "boolean",
9642
+ "description": "If true, the script will potentially load use cookies and visitors should be aware."
9643
+ }
9644
+ },
9645
+ "required": [
9646
+ "script",
9647
+ "cookies"
9648
+ ]
9649
+ },
9638
9650
  "UpsertEntity": {
9639
9651
  "type": "object",
9640
9652
  "description": "Entity to create or update in an integration's installation.",
@@ -12961,15 +12973,6 @@
12961
12973
  {
12962
12974
  "$ref": "#/components/schemas/OrganizationSitesChannel"
12963
12975
  },
12964
- {
12965
- "$ref": "#/components/schemas/OrganizationSeatsChannel"
12966
- },
12967
- {
12968
- "$ref": "#/components/schemas/OrganizationUsageSeatsChannel"
12969
- },
12970
- {
12971
- "$ref": "#/components/schemas/OrganizationSeatChannel"
12972
- },
12973
12976
  {
12974
12977
  "type": "object",
12975
12978
  "properties": {
@@ -13775,67 +13778,6 @@
13775
13778
  "organization"
13776
13779
  ]
13777
13780
  },
13778
- "OrganizationSeatChannel": {
13779
- "type": "object",
13780
- "description": "Subscription channel for changes in a member seat in an organization.",
13781
- "properties": {
13782
- "channel": {
13783
- "type": "string",
13784
- "enum": [
13785
- "organization-seat"
13786
- ]
13787
- },
13788
- "organization": {
13789
- "type": "string"
13790
- },
13791
- "member": {
13792
- "type": "string"
13793
- }
13794
- },
13795
- "required": [
13796
- "channel",
13797
- "organization",
13798
- "member"
13799
- ]
13800
- },
13801
- "OrganizationSeatsChannel": {
13802
- "type": "object",
13803
- "description": "Subscription channel for changes in seats in an organization.",
13804
- "properties": {
13805
- "channel": {
13806
- "type": "string",
13807
- "enum": [
13808
- "organization-seats"
13809
- ]
13810
- },
13811
- "organization": {
13812
- "type": "string"
13813
- }
13814
- },
13815
- "required": [
13816
- "channel",
13817
- "organization"
13818
- ]
13819
- },
13820
- "OrganizationUsageSeatsChannel": {
13821
- "type": "object",
13822
- "description": "Subscription channel for changes in seats usage in an organization.",
13823
- "properties": {
13824
- "channel": {
13825
- "type": "string",
13826
- "enum": [
13827
- "organization-usage-seats"
13828
- ]
13829
- },
13830
- "organization": {
13831
- "type": "string"
13832
- }
13833
- },
13834
- "required": [
13835
- "channel",
13836
- "organization"
13837
- ]
13838
- },
13839
13781
  "IntegrationChannel": {
13840
13782
  "type": "object",
13841
13783
  "properties": {
@@ -15666,6 +15608,37 @@
15666
15608
  "minLength": 1,
15667
15609
  "maxLength": 100
15668
15610
  },
15611
+ "SiteSpaceMovePosition": {
15612
+ "type": "object",
15613
+ "description": "Position at which to move the site space to.",
15614
+ "properties": {
15615
+ "before": {
15616
+ "$ref": "#/components/schemas/SiteSpacePointer"
15617
+ },
15618
+ "after": {
15619
+ "$ref": "#/components/schemas/SiteSpacePointer"
15620
+ }
15621
+ }
15622
+ },
15623
+ "SiteSpacePointer": {
15624
+ "type": "object",
15625
+ "properties": {
15626
+ "type": {
15627
+ "type": "string",
15628
+ "enum": [
15629
+ "site-space"
15630
+ ]
15631
+ },
15632
+ "siteSpace": {
15633
+ "type": "string",
15634
+ "description": "Unique identifier for the site space"
15635
+ }
15636
+ },
15637
+ "required": [
15638
+ "type",
15639
+ "siteSpace"
15640
+ ]
15641
+ },
15669
15642
  "SiteSubscriptionStatus": {
15670
15643
  "type": "string",
15671
15644
  "enum": [
@@ -17416,6 +17389,67 @@
17416
17389
  }
17417
17390
  }
17418
17391
  },
17392
+ "/spaces/{spaceId}/content/files/{fileId}/backlinks": {
17393
+ "get": {
17394
+ "operationId": "listSpaceFileBacklinks",
17395
+ "summary": "Get backlink locations for a file existing in a space.",
17396
+ "tags": [
17397
+ "spaces"
17398
+ ],
17399
+ "security": [
17400
+ {
17401
+ "user": []
17402
+ }
17403
+ ],
17404
+ "parameters": [
17405
+ {
17406
+ "$ref": "#/components/parameters/spaceId"
17407
+ },
17408
+ {
17409
+ "$ref": "#/components/parameters/fileId"
17410
+ },
17411
+ {
17412
+ "$ref": "#/components/parameters/listPage"
17413
+ },
17414
+ {
17415
+ "$ref": "#/components/parameters/listLimit"
17416
+ }
17417
+ ],
17418
+ "responses": {
17419
+ "200": {
17420
+ "description": "OK",
17421
+ "content": {
17422
+ "application/json": {
17423
+ "schema": {
17424
+ "allOf": [
17425
+ {
17426
+ "$ref": "#/components/schemas/List"
17427
+ },
17428
+ {
17429
+ "type": "object",
17430
+ "required": [
17431
+ "items"
17432
+ ],
17433
+ "properties": {
17434
+ "items": {
17435
+ "type": "array",
17436
+ "items": {
17437
+ "$ref": "#/components/schemas/ContentLocation"
17438
+ }
17439
+ }
17440
+ }
17441
+ }
17442
+ ]
17443
+ }
17444
+ }
17445
+ }
17446
+ },
17447
+ "default": {
17448
+ "$ref": "#/components/responses/UnexpectedError"
17449
+ }
17450
+ }
17451
+ }
17452
+ },
17419
17453
  "/spaces/{spaceId}/content/page/{pageId}": {
17420
17454
  "get": {
17421
17455
  "operationId": "getPageById",
@@ -19064,6 +19098,70 @@
19064
19098
  }
19065
19099
  }
19066
19100
  },
19101
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks": {
19102
+ "get": {
19103
+ "operationId": "listChangeRequestFileBacklinks",
19104
+ "summary": "Get backlink locations for a file existing in a change request.",
19105
+ "tags": [
19106
+ "spaces"
19107
+ ],
19108
+ "security": [
19109
+ {
19110
+ "user": []
19111
+ }
19112
+ ],
19113
+ "parameters": [
19114
+ {
19115
+ "$ref": "#/components/parameters/spaceId"
19116
+ },
19117
+ {
19118
+ "$ref": "#/components/parameters/changeRequestId"
19119
+ },
19120
+ {
19121
+ "$ref": "#/components/parameters/fileId"
19122
+ },
19123
+ {
19124
+ "$ref": "#/components/parameters/listPage"
19125
+ },
19126
+ {
19127
+ "$ref": "#/components/parameters/listLimit"
19128
+ }
19129
+ ],
19130
+ "responses": {
19131
+ "200": {
19132
+ "description": "OK",
19133
+ "content": {
19134
+ "application/json": {
19135
+ "schema": {
19136
+ "allOf": [
19137
+ {
19138
+ "$ref": "#/components/schemas/List"
19139
+ },
19140
+ {
19141
+ "type": "object",
19142
+ "required": [
19143
+ "items"
19144
+ ],
19145
+ "properties": {
19146
+ "items": {
19147
+ "type": "array",
19148
+ "items": {
19149
+ "$ref": "#/components/schemas/ContentLocation"
19150
+ }
19151
+ }
19152
+ }
19153
+ }
19154
+ ]
19155
+ }
19156
+ }
19157
+ }
19158
+ },
19159
+ "default": {
19160
+ "$ref": "#/components/responses/UnexpectedError"
19161
+ }
19162
+ }
19163
+ }
19164
+ },
19067
19165
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}": {
19068
19166
  "get": {
19069
19167
  "operationId": "getPageInChangeRequestById",
@@ -23139,6 +23237,12 @@
23139
23237
  "emailDomains": {
23140
23238
  "$ref": "#/components/schemas/OrganizationEmailDomains"
23141
23239
  },
23240
+ "hostname": {
23241
+ "type": "string",
23242
+ "description": "Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io",
23243
+ "minLength": 3,
23244
+ "maxLength": 32
23245
+ },
23142
23246
  "defaultRole": {
23143
23247
  "$ref": "#/components/schemas/MemberRoleOrGuest"
23144
23248
  },
@@ -24436,91 +24540,10 @@
24436
24540
  }
24437
24541
  }
24438
24542
  },
24439
- "/orgs/{organizationId}/transfer": {
24440
- "post": {
24441
- "operationId": "transferOrganization",
24442
- "summary": "Transfer one organization (source) into another organization (target).",
24443
- "tags": [
24444
- "organizations"
24445
- ],
24446
- "security": [
24447
- {
24448
- "user": []
24449
- }
24450
- ],
24451
- "parameters": [
24452
- {
24453
- "$ref": "#/components/parameters/organizationId"
24454
- }
24455
- ],
24456
- "requestBody": {
24457
- "required": true,
24458
- "content": {
24459
- "application/json": {
24460
- "schema": {
24461
- "type": "object",
24462
- "required": [
24463
- "source"
24464
- ],
24465
- "properties": {
24466
- "source": {
24467
- "type": "string",
24468
- "description": "The unique id of the organization to transfer into the current one."
24469
- },
24470
- "defaultOrgRole": {
24471
- "description": "Determine the default role members of the source org will have when they are transferred into the target org. Defaults to null, which means no access.",
24472
- "oneOf": [
24473
- {
24474
- "$ref": "#/components/schemas/MemberRoleOrGuest"
24475
- },
24476
- {
24477
- "type": "string",
24478
- "description": "Use SAML's default role for transferred members.",
24479
- "enum": [
24480
- "saml"
24481
- ]
24482
- }
24483
- ]
24484
- }
24485
- }
24486
- }
24487
- }
24488
- }
24489
- },
24490
- "responses": {
24491
- "200": {
24492
- "description": "OK",
24493
- "content": {
24494
- "application/json": {
24495
- "schema": {
24496
- "type": "object",
24497
- "required": [
24498
- "collection"
24499
- ],
24500
- "properties": {
24501
- "collection": {
24502
- "type": "string",
24503
- "description": "The unique id of the collection created in the target organization containing the content of the source organization."
24504
- },
24505
- "newSourceHostname": {
24506
- "type": "string",
24507
- "description": "The new hostname if the source organization needed to change hostname."
24508
- }
24509
- }
24510
- }
24511
- }
24512
- }
24513
- },
24514
- "default": {
24515
- "$ref": "#/components/responses/UnexpectedError"
24516
- }
24517
- }
24518
- }
24519
- },
24520
- "/orgs/{organizationId}/search": {
24521
- "get": {
24522
- "operationId": "searchOrganizationContent",
24523
- "summary": "Search content in an organization",
24543
+ "/orgs/{organizationId}/search": {
24544
+ "get": {
24545
+ "operationId": "searchOrganizationContent",
24546
+ "summary": "Search content in an organization",
24524
24547
  "tags": [
24525
24548
  "organizations"
24526
24549
  ],
@@ -25722,49 +25745,6 @@
25722
25745
  }
25723
25746
  }
25724
25747
  },
25725
- "/orgs/{organizationId}/usage/seats": {
25726
- "get": {
25727
- "operationId": "getSeatsUsageForOrganizationById",
25728
- "summary": "Get seats usage metrics for an organization",
25729
- "tags": [
25730
- "organizations",
25731
- "usage"
25732
- ],
25733
- "security": [
25734
- {
25735
- "user-internal": []
25736
- }
25737
- ],
25738
- "parameters": [
25739
- {
25740
- "$ref": "#/components/parameters/organizationId"
25741
- }
25742
- ],
25743
- "responses": {
25744
- "200": {
25745
- "description": "OK",
25746
- "content": {
25747
- "application/json": {
25748
- "schema": {
25749
- "type": "object",
25750
- "properties": {
25751
- "seats": {
25752
- "$ref": "#/components/schemas/OrganizationUsageSeats"
25753
- }
25754
- },
25755
- "required": [
25756
- "seats"
25757
- ]
25758
- }
25759
- }
25760
- }
25761
- },
25762
- "default": {
25763
- "$ref": "#/components/responses/UnexpectedError"
25764
- }
25765
- }
25766
- }
25767
- },
25768
25748
  "/orgs/{organizationId}/schemas": {
25769
25749
  "get": {
25770
25750
  "operationId": "listEntitySchemas",
@@ -28128,6 +28108,49 @@
28128
28108
  }
28129
28109
  }
28130
28110
  },
28111
+ "/orgs/{organizationId}/sites/{siteId}/integration-scripts": {
28112
+ "get": {
28113
+ "operationId": "listSiteIntegrationScripts",
28114
+ "summary": "List the scripts to embed in published content for a site.",
28115
+ "tags": [
28116
+ "sites"
28117
+ ],
28118
+ "security": [
28119
+ {
28120
+ "user": []
28121
+ }
28122
+ ],
28123
+ "parameters": [
28124
+ {
28125
+ "$ref": "#/components/parameters/organizationId"
28126
+ },
28127
+ {
28128
+ "$ref": "#/components/parameters/siteId"
28129
+ }
28130
+ ],
28131
+ "responses": {
28132
+ "200": {
28133
+ "description": "OK",
28134
+ "content": {
28135
+ "application/json": {
28136
+ "schema": {
28137
+ "type": "array",
28138
+ "items": {
28139
+ "$ref": "#/components/schemas/SiteIntegrationScript"
28140
+ }
28141
+ }
28142
+ }
28143
+ }
28144
+ },
28145
+ "400": {
28146
+ "$ref": "#/components/responses/BadRequestError"
28147
+ },
28148
+ "default": {
28149
+ "$ref": "#/components/responses/UnexpectedError"
28150
+ }
28151
+ }
28152
+ }
28153
+ },
28131
28154
  "/orgs/{organizationId}/sites/{siteId}/spaces": {
28132
28155
  "post": {
28133
28156
  "operationId": "addSpaceToSite",
@@ -28432,6 +28455,69 @@
28432
28455
  }
28433
28456
  }
28434
28457
  },
28458
+ "/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move": {
28459
+ "post": {
28460
+ "operationId": "moveSiteSpace",
28461
+ "summary": "Move a site space to a new position in the site.",
28462
+ "tags": [
28463
+ "sites"
28464
+ ],
28465
+ "security": [
28466
+ {
28467
+ "user": []
28468
+ }
28469
+ ],
28470
+ "parameters": [
28471
+ {
28472
+ "$ref": "#/components/parameters/organizationId"
28473
+ },
28474
+ {
28475
+ "$ref": "#/components/parameters/siteId"
28476
+ },
28477
+ {
28478
+ "$ref": "#/components/parameters/siteSpaceId"
28479
+ }
28480
+ ],
28481
+ "requestBody": {
28482
+ "content": {
28483
+ "application/json": {
28484
+ "schema": {
28485
+ "type": "object",
28486
+ "properties": {
28487
+ "position": {
28488
+ "description": "The position where to move the site space. When not provided the site space is moved at the end of the site.",
28489
+ "$ref": "#/components/schemas/SiteSpaceMovePosition"
28490
+ }
28491
+ }
28492
+ }
28493
+ }
28494
+ }
28495
+ },
28496
+ "responses": {
28497
+ "200": {
28498
+ "description": "Site space moved",
28499
+ "content": {
28500
+ "application/json": {
28501
+ "schema": {
28502
+ "$ref": "#/components/schemas/SiteSpace"
28503
+ }
28504
+ }
28505
+ }
28506
+ },
28507
+ "400": {
28508
+ "description": "Invalid move site space position provided",
28509
+ "$ref": "#/components/responses/BadRequestError"
28510
+ },
28511
+ "404": {
28512
+ "description": "No matching Site space found",
28513
+ "$ref": "#/components/responses/NotFoundError"
28514
+ },
28515
+ "default": {
28516
+ "$ref": "#/components/responses/UnexpectedError"
28517
+ }
28518
+ }
28519
+ }
28520
+ },
28435
28521
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
28436
28522
  "get": {
28437
28523
  "operationId": "listPermissionsAggregateInSite",
@@ -28524,355 +28610,6 @@
28524
28610
  }
28525
28611
  }
28526
28612
  },
28527
- "/orgs/{organizationId}/seats": {
28528
- "get": {
28529
- "operationId": "listSeatsInOrganizationById",
28530
- "summary": "List all seats in an organization",
28531
- "tags": [
28532
- "seats"
28533
- ],
28534
- "security": [
28535
- {
28536
- "user-internal": []
28537
- }
28538
- ],
28539
- "parameters": [
28540
- {
28541
- "$ref": "#/components/parameters/organizationId"
28542
- }
28543
- ],
28544
- "responses": {
28545
- "200": {
28546
- "description": "OK",
28547
- "content": {
28548
- "application/json": {
28549
- "schema": {
28550
- "allOf": [
28551
- {
28552
- "$ref": "#/components/schemas/List"
28553
- },
28554
- {
28555
- "type": "object",
28556
- "required": [
28557
- "items"
28558
- ],
28559
- "properties": {
28560
- "items": {
28561
- "type": "array",
28562
- "items": {
28563
- "$ref": "#/components/schemas/Seat"
28564
- }
28565
- }
28566
- }
28567
- }
28568
- ]
28569
- }
28570
- }
28571
- }
28572
- },
28573
- "default": {
28574
- "$ref": "#/components/responses/UnexpectedError"
28575
- }
28576
- }
28577
- },
28578
- "post": {
28579
- "operationId": "addSeatsToOrganizationById",
28580
- "summary": "Add more seats to an organization",
28581
- "tags": [
28582
- "seats"
28583
- ],
28584
- "security": [
28585
- {
28586
- "user-internal": []
28587
- }
28588
- ],
28589
- "parameters": [
28590
- {
28591
- "$ref": "#/components/parameters/organizationId"
28592
- }
28593
- ],
28594
- "requestBody": {
28595
- "required": true,
28596
- "content": {
28597
- "application/json": {
28598
- "schema": {
28599
- "type": "object",
28600
- "properties": {
28601
- "amount": {
28602
- "description": "How many seats to add",
28603
- "type": "number"
28604
- }
28605
- },
28606
- "required": [
28607
- "amount"
28608
- ]
28609
- }
28610
- }
28611
- }
28612
- },
28613
- "responses": {
28614
- "201": {
28615
- "description": "Seats added"
28616
- },
28617
- "default": {
28618
- "$ref": "#/components/responses/UnexpectedError"
28619
- }
28620
- }
28621
- },
28622
- "delete": {
28623
- "operationId": "removeSeatsFromOrganizationById",
28624
- "summary": "Remove unassigned seats from an organization",
28625
- "tags": [
28626
- "seats"
28627
- ],
28628
- "security": [
28629
- {
28630
- "user-internal": []
28631
- }
28632
- ],
28633
- "parameters": [
28634
- {
28635
- "$ref": "#/components/parameters/organizationId"
28636
- }
28637
- ],
28638
- "requestBody": {
28639
- "content": {
28640
- "application/json": {
28641
- "schema": {
28642
- "type": "object",
28643
- "properties": {
28644
- "amount": {
28645
- "description": "How many seats to remove. Omit to remove all unassigned seats.",
28646
- "type": "number"
28647
- }
28648
- }
28649
- }
28650
- }
28651
- }
28652
- },
28653
- "responses": {
28654
- "205": {
28655
- "description": "Seats removed"
28656
- },
28657
- "default": {
28658
- "$ref": "#/components/responses/UnexpectedError"
28659
- }
28660
- }
28661
- }
28662
- },
28663
- "/orgs/{organizationId}/seats/members": {
28664
- "put": {
28665
- "operationId": "assignSeatsToMembersInOrganizationById",
28666
- "summary": "Assign seats for one or more members within an organization",
28667
- "tags": [
28668
- "seats"
28669
- ],
28670
- "security": [
28671
- {
28672
- "user-internal": []
28673
- }
28674
- ],
28675
- "parameters": [
28676
- {
28677
- "$ref": "#/components/parameters/organizationId"
28678
- }
28679
- ],
28680
- "requestBody": {
28681
- "required": true,
28682
- "content": {
28683
- "application/json": {
28684
- "schema": {
28685
- "type": "array",
28686
- "description": "A list of members",
28687
- "minItems": 1,
28688
- "items": {
28689
- "type": "object",
28690
- "properties": {
28691
- "member": {
28692
- "description": "The unique ID of the organization member",
28693
- "type": "string"
28694
- }
28695
- },
28696
- "required": [
28697
- "member"
28698
- ]
28699
- }
28700
- }
28701
- }
28702
- }
28703
- },
28704
- "responses": {
28705
- "200": {
28706
- "description": "Seats assigned"
28707
- },
28708
- "409": {
28709
- "description": "Not enough seats available",
28710
- "$ref": "#/components/responses/ConflictError"
28711
- },
28712
- "default": {
28713
- "$ref": "#/components/responses/UnexpectedError"
28714
- }
28715
- }
28716
- },
28717
- "delete": {
28718
- "operationId": "revokeSeatsFromMembersInOrganizationById",
28719
- "summary": "Revoke seats for one or more members within an organization",
28720
- "tags": [
28721
- "seats"
28722
- ],
28723
- "security": [
28724
- {
28725
- "user-internal": []
28726
- }
28727
- ],
28728
- "parameters": [
28729
- {
28730
- "$ref": "#/components/parameters/organizationId"
28731
- }
28732
- ],
28733
- "requestBody": {
28734
- "required": true,
28735
- "content": {
28736
- "application/json": {
28737
- "schema": {
28738
- "type": "array",
28739
- "description": "A list of members",
28740
- "minItems": 1,
28741
- "items": {
28742
- "type": "object",
28743
- "properties": {
28744
- "member": {
28745
- "description": "The unique ID of the organization member",
28746
- "type": "string"
28747
- }
28748
- },
28749
- "required": [
28750
- "member"
28751
- ]
28752
- }
28753
- }
28754
- }
28755
- }
28756
- },
28757
- "responses": {
28758
- "205": {
28759
- "description": "Seats revoked"
28760
- },
28761
- "409": {
28762
- "description": "Not enough seats available",
28763
- "$ref": "#/components/responses/ConflictError"
28764
- },
28765
- "default": {
28766
- "$ref": "#/components/responses/UnexpectedError"
28767
- }
28768
- }
28769
- }
28770
- },
28771
- "/orgs/{organizationId}/seats/members/{userId}": {
28772
- "get": {
28773
- "operationId": "getSeatForMemberInOrganizationById",
28774
- "summary": "Get the seat of a member of the organization",
28775
- "tags": [
28776
- "seats"
28777
- ],
28778
- "security": [
28779
- {
28780
- "user-internal": []
28781
- }
28782
- ],
28783
- "parameters": [
28784
- {
28785
- "$ref": "#/components/parameters/organizationId"
28786
- },
28787
- {
28788
- "$ref": "#/components/parameters/userId"
28789
- }
28790
- ],
28791
- "responses": {
28792
- "200": {
28793
- "description": "OK",
28794
- "content": {
28795
- "application/json": {
28796
- "schema": {
28797
- "$ref": "#/components/schemas/Seat"
28798
- }
28799
- }
28800
- }
28801
- },
28802
- "409": {
28803
- "description": "Member has no seat assigned",
28804
- "$ref": "#/components/responses/ConflictError"
28805
- },
28806
- "default": {
28807
- "$ref": "#/components/responses/UnexpectedError"
28808
- }
28809
- }
28810
- },
28811
- "put": {
28812
- "operationId": "assignSeatToMemberInOrganizationById",
28813
- "summary": "Assign an available seat to a member of the organization",
28814
- "tags": [
28815
- "seats"
28816
- ],
28817
- "security": [
28818
- {
28819
- "user-internal": []
28820
- }
28821
- ],
28822
- "parameters": [
28823
- {
28824
- "$ref": "#/components/parameters/organizationId"
28825
- },
28826
- {
28827
- "$ref": "#/components/parameters/userId"
28828
- }
28829
- ],
28830
- "responses": {
28831
- "200": {
28832
- "description": "Seat assigned"
28833
- },
28834
- "409": {
28835
- "description": "Not enough seats available",
28836
- "$ref": "#/components/responses/ConflictError"
28837
- },
28838
- "default": {
28839
- "$ref": "#/components/responses/UnexpectedError"
28840
- }
28841
- }
28842
- },
28843
- "delete": {
28844
- "operationId": "revokeSeatFromMemberInOrganizationById",
28845
- "summary": "Revoke a seat from a member of the organization",
28846
- "tags": [
28847
- "seats"
28848
- ],
28849
- "security": [
28850
- {
28851
- "user-internal": []
28852
- }
28853
- ],
28854
- "parameters": [
28855
- {
28856
- "$ref": "#/components/parameters/organizationId"
28857
- },
28858
- {
28859
- "$ref": "#/components/parameters/userId"
28860
- }
28861
- ],
28862
- "responses": {
28863
- "205": {
28864
- "description": "Seat revoked"
28865
- },
28866
- "409": {
28867
- "description": "Member has no seat assigned",
28868
- "$ref": "#/components/responses/ConflictError"
28869
- },
28870
- "default": {
28871
- "$ref": "#/components/responses/UnexpectedError"
28872
- }
28873
- }
28874
- }
28875
- },
28876
28613
  "/custom-hostnames/{hostname}": {
28877
28614
  "get": {
28878
28615
  "operationId": "getCustomHostname",