@gitbook/api 0.41.0 → 0.42.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": {
@@ -12961,15 +12951,6 @@
12961
12951
  {
12962
12952
  "$ref": "#/components/schemas/OrganizationSitesChannel"
12963
12953
  },
12964
- {
12965
- "$ref": "#/components/schemas/OrganizationSeatsChannel"
12966
- },
12967
- {
12968
- "$ref": "#/components/schemas/OrganizationUsageSeatsChannel"
12969
- },
12970
- {
12971
- "$ref": "#/components/schemas/OrganizationSeatChannel"
12972
- },
12973
12954
  {
12974
12955
  "type": "object",
12975
12956
  "properties": {
@@ -13775,67 +13756,6 @@
13775
13756
  "organization"
13776
13757
  ]
13777
13758
  },
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
13759
  "IntegrationChannel": {
13840
13760
  "type": "object",
13841
13761
  "properties": {
@@ -15666,6 +15586,37 @@
15666
15586
  "minLength": 1,
15667
15587
  "maxLength": 100
15668
15588
  },
15589
+ "SiteSpaceMovePosition": {
15590
+ "type": "object",
15591
+ "description": "Position at which to move the site space to.",
15592
+ "properties": {
15593
+ "before": {
15594
+ "$ref": "#/components/schemas/SiteSpacePointer"
15595
+ },
15596
+ "after": {
15597
+ "$ref": "#/components/schemas/SiteSpacePointer"
15598
+ }
15599
+ }
15600
+ },
15601
+ "SiteSpacePointer": {
15602
+ "type": "object",
15603
+ "properties": {
15604
+ "type": {
15605
+ "type": "string",
15606
+ "enum": [
15607
+ "site-space"
15608
+ ]
15609
+ },
15610
+ "siteSpace": {
15611
+ "type": "string",
15612
+ "description": "Unique identifier for the site space"
15613
+ }
15614
+ },
15615
+ "required": [
15616
+ "type",
15617
+ "siteSpace"
15618
+ ]
15619
+ },
15669
15620
  "SiteSubscriptionStatus": {
15670
15621
  "type": "string",
15671
15622
  "enum": [
@@ -17416,6 +17367,67 @@
17416
17367
  }
17417
17368
  }
17418
17369
  },
17370
+ "/spaces/{spaceId}/content/files/{fileId}/backlinks": {
17371
+ "get": {
17372
+ "operationId": "listSpaceFileBacklinks",
17373
+ "summary": "Get backlink locations for a file existing in a space.",
17374
+ "tags": [
17375
+ "spaces"
17376
+ ],
17377
+ "security": [
17378
+ {
17379
+ "user": []
17380
+ }
17381
+ ],
17382
+ "parameters": [
17383
+ {
17384
+ "$ref": "#/components/parameters/spaceId"
17385
+ },
17386
+ {
17387
+ "$ref": "#/components/parameters/fileId"
17388
+ },
17389
+ {
17390
+ "$ref": "#/components/parameters/listPage"
17391
+ },
17392
+ {
17393
+ "$ref": "#/components/parameters/listLimit"
17394
+ }
17395
+ ],
17396
+ "responses": {
17397
+ "200": {
17398
+ "description": "OK",
17399
+ "content": {
17400
+ "application/json": {
17401
+ "schema": {
17402
+ "allOf": [
17403
+ {
17404
+ "$ref": "#/components/schemas/List"
17405
+ },
17406
+ {
17407
+ "type": "object",
17408
+ "required": [
17409
+ "items"
17410
+ ],
17411
+ "properties": {
17412
+ "items": {
17413
+ "type": "array",
17414
+ "items": {
17415
+ "$ref": "#/components/schemas/ContentLocation"
17416
+ }
17417
+ }
17418
+ }
17419
+ }
17420
+ ]
17421
+ }
17422
+ }
17423
+ }
17424
+ },
17425
+ "default": {
17426
+ "$ref": "#/components/responses/UnexpectedError"
17427
+ }
17428
+ }
17429
+ }
17430
+ },
17419
17431
  "/spaces/{spaceId}/content/page/{pageId}": {
17420
17432
  "get": {
17421
17433
  "operationId": "getPageById",
@@ -19064,6 +19076,70 @@
19064
19076
  }
19065
19077
  }
19066
19078
  },
19079
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks": {
19080
+ "get": {
19081
+ "operationId": "listChangeRequestFileBacklinks",
19082
+ "summary": "Get backlink locations for a file existing in a change request.",
19083
+ "tags": [
19084
+ "spaces"
19085
+ ],
19086
+ "security": [
19087
+ {
19088
+ "user": []
19089
+ }
19090
+ ],
19091
+ "parameters": [
19092
+ {
19093
+ "$ref": "#/components/parameters/spaceId"
19094
+ },
19095
+ {
19096
+ "$ref": "#/components/parameters/changeRequestId"
19097
+ },
19098
+ {
19099
+ "$ref": "#/components/parameters/fileId"
19100
+ },
19101
+ {
19102
+ "$ref": "#/components/parameters/listPage"
19103
+ },
19104
+ {
19105
+ "$ref": "#/components/parameters/listLimit"
19106
+ }
19107
+ ],
19108
+ "responses": {
19109
+ "200": {
19110
+ "description": "OK",
19111
+ "content": {
19112
+ "application/json": {
19113
+ "schema": {
19114
+ "allOf": [
19115
+ {
19116
+ "$ref": "#/components/schemas/List"
19117
+ },
19118
+ {
19119
+ "type": "object",
19120
+ "required": [
19121
+ "items"
19122
+ ],
19123
+ "properties": {
19124
+ "items": {
19125
+ "type": "array",
19126
+ "items": {
19127
+ "$ref": "#/components/schemas/ContentLocation"
19128
+ }
19129
+ }
19130
+ }
19131
+ }
19132
+ ]
19133
+ }
19134
+ }
19135
+ }
19136
+ },
19137
+ "default": {
19138
+ "$ref": "#/components/responses/UnexpectedError"
19139
+ }
19140
+ }
19141
+ }
19142
+ },
19067
19143
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}": {
19068
19144
  "get": {
19069
19145
  "operationId": "getPageInChangeRequestById",
@@ -23139,6 +23215,12 @@
23139
23215
  "emailDomains": {
23140
23216
  "$ref": "#/components/schemas/OrganizationEmailDomains"
23141
23217
  },
23218
+ "hostname": {
23219
+ "type": "string",
23220
+ "description": "Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io",
23221
+ "minLength": 3,
23222
+ "maxLength": 32
23223
+ },
23142
23224
  "defaultRole": {
23143
23225
  "$ref": "#/components/schemas/MemberRoleOrGuest"
23144
23226
  },
@@ -24436,10 +24518,10 @@
24436
24518
  }
24437
24519
  }
24438
24520
  },
24439
- "/orgs/{organizationId}/transfer": {
24440
- "post": {
24441
- "operationId": "transferOrganization",
24442
- "summary": "Transfer one organization (source) into another organization (target).",
24521
+ "/orgs/{organizationId}/search": {
24522
+ "get": {
24523
+ "operationId": "searchOrganizationContent",
24524
+ "summary": "Search content in an organization",
24443
24525
  "tags": [
24444
24526
  "organizations"
24445
24527
  ],
@@ -24449,103 +24531,22 @@
24449
24531
  }
24450
24532
  ],
24451
24533
  "parameters": [
24534
+ {
24535
+ "name": "query",
24536
+ "in": "query",
24537
+ "required": true,
24538
+ "schema": {
24539
+ "type": "string"
24540
+ }
24541
+ },
24452
24542
  {
24453
24543
  "$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",
24524
- "tags": [
24525
- "organizations"
24526
- ],
24527
- "security": [
24528
- {
24529
- "user": []
24530
- }
24531
- ],
24532
- "parameters": [
24533
- {
24534
- "name": "query",
24535
- "in": "query",
24536
- "required": true,
24537
- "schema": {
24538
- "type": "string"
24539
- }
24540
- },
24541
- {
24542
- "$ref": "#/components/parameters/organizationId"
24543
- },
24544
- {
24545
- "$ref": "#/components/parameters/listPage"
24546
- },
24547
- {
24548
- "$ref": "#/components/parameters/listLimit"
24544
+ },
24545
+ {
24546
+ "$ref": "#/components/parameters/listPage"
24547
+ },
24548
+ {
24549
+ "$ref": "#/components/parameters/listLimit"
24549
24550
  }
24550
24551
  ],
24551
24552
  "responses": {
@@ -25722,49 +25723,6 @@
25722
25723
  }
25723
25724
  }
25724
25725
  },
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
25726
  "/orgs/{organizationId}/schemas": {
25769
25727
  "get": {
25770
25728
  "operationId": "listEntitySchemas",
@@ -28432,6 +28390,69 @@
28432
28390
  }
28433
28391
  }
28434
28392
  },
28393
+ "/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move": {
28394
+ "post": {
28395
+ "operationId": "moveSiteSpace",
28396
+ "summary": "Move a site space to a new position in the site.",
28397
+ "tags": [
28398
+ "sites"
28399
+ ],
28400
+ "security": [
28401
+ {
28402
+ "user": []
28403
+ }
28404
+ ],
28405
+ "parameters": [
28406
+ {
28407
+ "$ref": "#/components/parameters/organizationId"
28408
+ },
28409
+ {
28410
+ "$ref": "#/components/parameters/siteId"
28411
+ },
28412
+ {
28413
+ "$ref": "#/components/parameters/siteSpaceId"
28414
+ }
28415
+ ],
28416
+ "requestBody": {
28417
+ "content": {
28418
+ "application/json": {
28419
+ "schema": {
28420
+ "type": "object",
28421
+ "properties": {
28422
+ "position": {
28423
+ "description": "The position where to move the site space. When not provided the site space is moved at the end of the site.",
28424
+ "$ref": "#/components/schemas/SiteSpaceMovePosition"
28425
+ }
28426
+ }
28427
+ }
28428
+ }
28429
+ }
28430
+ },
28431
+ "responses": {
28432
+ "200": {
28433
+ "description": "Site space moved",
28434
+ "content": {
28435
+ "application/json": {
28436
+ "schema": {
28437
+ "$ref": "#/components/schemas/SiteSpace"
28438
+ }
28439
+ }
28440
+ }
28441
+ },
28442
+ "400": {
28443
+ "description": "Invalid move site space position provided",
28444
+ "$ref": "#/components/responses/BadRequestError"
28445
+ },
28446
+ "404": {
28447
+ "description": "No matching Site space found",
28448
+ "$ref": "#/components/responses/NotFoundError"
28449
+ },
28450
+ "default": {
28451
+ "$ref": "#/components/responses/UnexpectedError"
28452
+ }
28453
+ }
28454
+ }
28455
+ },
28435
28456
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
28436
28457
  "get": {
28437
28458
  "operationId": "listPermissionsAggregateInSite",
@@ -28524,355 +28545,6 @@
28524
28545
  }
28525
28546
  }
28526
28547
  },
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
28548
  "/custom-hostnames/{hostname}": {
28877
28549
  "get": {
28878
28550
  "operationId": "getCustomHostname",