@gitbook/api 0.42.0 → 0.44.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
@@ -558,6 +558,67 @@
558
558
  "referrer"
559
559
  ]
560
560
  },
561
+ "RequestSiteTrackPageView": {
562
+ "type": "object",
563
+ "properties": {
564
+ "pageId": {
565
+ "type": "string",
566
+ "description": "Unique identifier of the page."
567
+ },
568
+ "spaceId": {
569
+ "type": "string",
570
+ "description": "Unique identifier of the space."
571
+ },
572
+ "visitor": {
573
+ "type": "object",
574
+ "description": "Analytics info on the GitBook's content visitor.",
575
+ "properties": {
576
+ "anonymousId": {
577
+ "type": "string",
578
+ "description": "GitBook's unique identifier of the visitor."
579
+ },
580
+ "cookies": {
581
+ "type": "object",
582
+ "description": "The visitors cookies.",
583
+ "additionalProperties": {
584
+ "type": "string"
585
+ }
586
+ },
587
+ "ip": {
588
+ "type": "string",
589
+ "description": "IP address of the visitor.\nIf undefined, it'll default to the IP executing the request.\n"
590
+ },
591
+ "userAgent": {
592
+ "type": "string",
593
+ "description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
594
+ },
595
+ "language": {
596
+ "type": "string",
597
+ "description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
598
+ }
599
+ },
600
+ "required": [
601
+ "anonymousId",
602
+ "cookies",
603
+ "userAgent"
604
+ ]
605
+ },
606
+ "url": {
607
+ "type": "string",
608
+ "description": "The GitBook content's URL visited (including URL params)."
609
+ },
610
+ "referrer": {
611
+ "type": "string",
612
+ "description": "The URL of referrer that linked to the page."
613
+ }
614
+ },
615
+ "required": [
616
+ "visitor",
617
+ "url",
618
+ "referrer",
619
+ "spaceId"
620
+ ]
621
+ },
561
622
  "RequestPublishIntegration": {
562
623
  "type": "object",
563
624
  "properties": {
@@ -1402,6 +1463,25 @@
1402
1463
  "type",
1403
1464
  "html"
1404
1465
  ]
1466
+ },
1467
+ {
1468
+ "type": "object",
1469
+ "title": "Integration",
1470
+ "properties": {
1471
+ "type": {
1472
+ "type": "string",
1473
+ "enum": [
1474
+ "integration"
1475
+ ]
1476
+ },
1477
+ "block": {
1478
+ "$ref": "#/components/schemas/IntegrationBlock"
1479
+ }
1480
+ },
1481
+ "required": [
1482
+ "type",
1483
+ "block"
1484
+ ]
1405
1485
  }
1406
1486
  ]
1407
1487
  }
@@ -8796,7 +8876,9 @@
8796
8876
  "space:script:cookies",
8797
8877
  "space:git:sync",
8798
8878
  "space:visitor:auth",
8879
+ "site:views:read",
8799
8880
  "site:script:inject",
8881
+ "site:script:cookies",
8800
8882
  "site:visitor:auth"
8801
8883
  ]
8802
8884
  },
@@ -9176,6 +9258,9 @@
9176
9258
  "space_selection": {
9177
9259
  "$ref": "#/components/schemas/IntegrationInstallationSpaceSelection"
9178
9260
  },
9261
+ "site_selection": {
9262
+ "$ref": "#/components/schemas/IntegrationInstallationSiteSelection"
9263
+ },
9179
9264
  "spaces": {
9180
9265
  "type": "number",
9181
9266
  "description": "Count of spaces, the installation is managing"
@@ -9227,6 +9312,7 @@
9227
9312
  "id",
9228
9313
  "status",
9229
9314
  "space_selection",
9315
+ "site_selection",
9230
9316
  "spaces",
9231
9317
  "configuration",
9232
9318
  "urls",
@@ -9625,6 +9711,27 @@
9625
9711
  "cookies"
9626
9712
  ]
9627
9713
  },
9714
+ "SiteIntegrationScript": {
9715
+ "type": "object",
9716
+ "properties": {
9717
+ "script": {
9718
+ "description": "Script URL to load.",
9719
+ "$ref": "#/components/schemas/URL"
9720
+ },
9721
+ "contentSecurityPolicy": {
9722
+ "description": "Content Security Policy to secure the loading of this script.",
9723
+ "type": "string"
9724
+ },
9725
+ "cookies": {
9726
+ "type": "boolean",
9727
+ "description": "If true, the script will potentially load use cookies and visitors should be aware."
9728
+ }
9729
+ },
9730
+ "required": [
9731
+ "script",
9732
+ "cookies"
9733
+ ]
9734
+ },
9628
9735
  "UpsertEntity": {
9629
9736
  "type": "object",
9630
9737
  "description": "Entity to create or update in an integration's installation.",
@@ -10025,79 +10132,13 @@
10025
10132
  "$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
10026
10133
  },
10027
10134
  {
10028
- "allOf": [
10029
- {
10030
- "$ref": "#/components/schemas/SiteEvent"
10031
- },
10032
- {
10033
- "type": "object",
10034
- "description": "Event received when integration has been installed or updated on a site.",
10035
- "properties": {
10036
- "type": {
10037
- "type": "string",
10038
- "enum": [
10039
- "site_installation_setup"
10040
- ]
10041
- },
10042
- "status": {
10043
- "$ref": "#/components/schemas/IntegrationInstallationStatus"
10044
- },
10045
- "previous": {
10046
- "type": "object",
10047
- "description": "The state of the site installation before it was updated.",
10048
- "properties": {
10049
- "status": {
10050
- "$ref": "#/components/schemas/IntegrationInstallationStatus"
10051
- },
10052
- "configuration": {
10053
- "type": "object",
10054
- "description": "The previous configuration of the site installation."
10055
- }
10056
- },
10057
- "required": [
10058
- "status"
10059
- ]
10060
- }
10061
- },
10062
- "required": [
10063
- "type",
10064
- "status"
10065
- ]
10066
- }
10067
- ]
10135
+ "$ref": "#/components/schemas/SiteInstallationSetupEvent"
10068
10136
  },
10069
10137
  {
10070
- "allOf": [
10071
- {
10072
- "$ref": "#/components/schemas/SiteEvent"
10073
- },
10074
- {
10075
- "type": "object",
10076
- "description": "Event received when integration has been uninstalled from a site.",
10077
- "properties": {
10078
- "type": {
10079
- "type": "string",
10080
- "enum": [
10081
- "site_installation_deleted"
10082
- ]
10083
- },
10084
- "previous": {
10085
- "type": "object",
10086
- "description": "The state of the site installation before it was deleted.",
10087
- "properties": {
10088
- "configuration": {
10089
- "type": "object",
10090
- "description": "The previous configuration of the site installation."
10091
- }
10092
- }
10093
- }
10094
- },
10095
- "required": [
10096
- "type",
10097
- "previous"
10098
- ]
10099
- }
10100
- ]
10138
+ "$ref": "#/components/schemas/SiteInstallationDeletedEvent"
10139
+ },
10140
+ {
10141
+ "$ref": "#/components/schemas/SpaceViewEvent"
10101
10142
  },
10102
10143
  {
10103
10144
  "$ref": "#/components/schemas/SiteViewEvent"
@@ -10326,10 +10367,82 @@
10326
10367
  }
10327
10368
  ]
10328
10369
  },
10329
- "SpaceViewEvent": {
10330
- "$ref": "#/components/schemas/SiteViewEvent"
10370
+ "SiteInstallationSetupEvent": {
10371
+ "allOf": [
10372
+ {
10373
+ "$ref": "#/components/schemas/SiteEvent"
10374
+ },
10375
+ {
10376
+ "type": "object",
10377
+ "description": "Event received when integration has been installed or updated on a site.",
10378
+ "properties": {
10379
+ "type": {
10380
+ "type": "string",
10381
+ "enum": [
10382
+ "site_installation_setup"
10383
+ ]
10384
+ },
10385
+ "status": {
10386
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
10387
+ },
10388
+ "previous": {
10389
+ "type": "object",
10390
+ "description": "The state of the site installation before it was updated.",
10391
+ "properties": {
10392
+ "status": {
10393
+ "$ref": "#/components/schemas/IntegrationInstallationStatus"
10394
+ },
10395
+ "configuration": {
10396
+ "type": "object",
10397
+ "description": "The previous configuration of the site installation."
10398
+ }
10399
+ },
10400
+ "required": [
10401
+ "status"
10402
+ ]
10403
+ }
10404
+ },
10405
+ "required": [
10406
+ "type",
10407
+ "status"
10408
+ ]
10409
+ }
10410
+ ]
10331
10411
  },
10332
- "SiteViewEvent": {
10412
+ "SiteInstallationDeletedEvent": {
10413
+ "allOf": [
10414
+ {
10415
+ "$ref": "#/components/schemas/SiteEvent"
10416
+ },
10417
+ {
10418
+ "type": "object",
10419
+ "description": "Event received when integration has been uninstalled from a site.",
10420
+ "properties": {
10421
+ "type": {
10422
+ "type": "string",
10423
+ "enum": [
10424
+ "site_installation_deleted"
10425
+ ]
10426
+ },
10427
+ "previous": {
10428
+ "type": "object",
10429
+ "description": "The state of the site installation before it was deleted.",
10430
+ "properties": {
10431
+ "configuration": {
10432
+ "type": "object",
10433
+ "description": "The previous configuration of the site installation."
10434
+ }
10435
+ }
10436
+ }
10437
+ },
10438
+ "required": [
10439
+ "type",
10440
+ "previous"
10441
+ ]
10442
+ }
10443
+ ]
10444
+ },
10445
+ "SpaceViewEvent": {
10333
10446
  "allOf": [
10334
10447
  {
10335
10448
  "$ref": "#/components/schemas/SpaceEvent"
@@ -10401,6 +10514,83 @@
10401
10514
  }
10402
10515
  ]
10403
10516
  },
10517
+ "SiteViewEvent": {
10518
+ "allOf": [
10519
+ {
10520
+ "$ref": "#/components/schemas/SiteEvent"
10521
+ },
10522
+ {
10523
+ "type": "object",
10524
+ "description": "Event received when a page has been visited on a site.",
10525
+ "properties": {
10526
+ "type": {
10527
+ "type": "string",
10528
+ "enum": [
10529
+ "site_view"
10530
+ ]
10531
+ },
10532
+ "spaceId": {
10533
+ "type": "string",
10534
+ "description": "Unique identifier of the visited space in the site."
10535
+ },
10536
+ "pageId": {
10537
+ "type": "string",
10538
+ "description": "Unique identifier of the visited page."
10539
+ },
10540
+ "visitor": {
10541
+ "type": "object",
10542
+ "description": "Analytics info on the GitBook's content visitor.",
10543
+ "properties": {
10544
+ "anonymousId": {
10545
+ "type": "string",
10546
+ "description": "GitBook's unique identifier of the visitor."
10547
+ },
10548
+ "cookies": {
10549
+ "type": "object",
10550
+ "description": "The visitors cookies.",
10551
+ "additionalProperties": {
10552
+ "type": "string"
10553
+ }
10554
+ },
10555
+ "userAgent": {
10556
+ "type": "string",
10557
+ "description": "User-agent of the visitor."
10558
+ },
10559
+ "ip": {
10560
+ "type": "string",
10561
+ "description": "IP address of the visitor."
10562
+ },
10563
+ "language": {
10564
+ "type": "string",
10565
+ "description": "Language of the visitor."
10566
+ }
10567
+ },
10568
+ "required": [
10569
+ "anonymousId",
10570
+ "cookies",
10571
+ "userAgent",
10572
+ "ip"
10573
+ ]
10574
+ },
10575
+ "url": {
10576
+ "type": "string",
10577
+ "description": "The GitBook content's URL visited (including URL params)."
10578
+ },
10579
+ "referrer": {
10580
+ "type": "string",
10581
+ "description": "The URL of referrer that linked to the page."
10582
+ }
10583
+ },
10584
+ "required": [
10585
+ "type",
10586
+ "visitor",
10587
+ "url",
10588
+ "referrer",
10589
+ "spaceId"
10590
+ ]
10591
+ }
10592
+ ]
10593
+ },
10404
10594
  "SpaceContentUpdatedEvent": {
10405
10595
  "allOf": [
10406
10596
  {
@@ -10760,15 +10950,14 @@
10760
10950
  "free_2024",
10761
10951
  "plus_2024",
10762
10952
  "pro_2024",
10763
- "enterprise_2024",
10953
+ "enterprise",
10764
10954
  "free",
10765
10955
  "plus",
10766
10956
  "pro",
10767
10957
  "team",
10768
10958
  "business",
10769
10959
  "legacy",
10770
- "startup",
10771
- "enterprise"
10960
+ "startup"
10772
10961
  ]
10773
10962
  },
10774
10963
  "BillingUpgrade": {
@@ -11439,6 +11628,9 @@
11439
11628
  {
11440
11629
  "$ref": "#/components/schemas/ContentKitContextConfigurationSpace"
11441
11630
  },
11631
+ {
11632
+ "$ref": "#/components/schemas/ContentKitContextConfigurationSite"
11633
+ },
11442
11634
  {
11443
11635
  "$ref": "#/components/schemas/ContentKitContextDocument"
11444
11636
  }
@@ -11478,22 +11670,49 @@
11478
11670
  },
11479
11671
  {
11480
11672
  "type": "object",
11481
- "description": "Context while rendering in a space-installation's configuration.",
11673
+ "description": "Context while rendering in a space-installation's configuration.",
11674
+ "properties": {
11675
+ "type": {
11676
+ "type": "string",
11677
+ "enum": [
11678
+ "configuration_space"
11679
+ ]
11680
+ },
11681
+ "spaceId": {
11682
+ "type": "string",
11683
+ "description": "ID of the space the space-installation configuration is in."
11684
+ }
11685
+ },
11686
+ "required": [
11687
+ "type",
11688
+ "spaceId"
11689
+ ]
11690
+ }
11691
+ ]
11692
+ },
11693
+ "ContentKitContextConfigurationSite": {
11694
+ "allOf": [
11695
+ {
11696
+ "$ref": "#/components/schemas/ContentKitContextBase"
11697
+ },
11698
+ {
11699
+ "type": "object",
11700
+ "description": "Context while rendering in a site-installation's configuration.",
11482
11701
  "properties": {
11483
11702
  "type": {
11484
11703
  "type": "string",
11485
11704
  "enum": [
11486
- "configuration_space"
11705
+ "configuration_site"
11487
11706
  ]
11488
11707
  },
11489
- "spaceId": {
11708
+ "siteId": {
11490
11709
  "type": "string",
11491
- "description": "ID of the space the space-installation configuration is in."
11710
+ "description": "ID of the site the site-installation configuration is in."
11492
11711
  }
11493
11712
  },
11494
11713
  "required": [
11495
11714
  "type",
11496
- "spaceId"
11715
+ "siteId"
11497
11716
  ]
11498
11717
  }
11499
11718
  ]
@@ -13096,6 +13315,9 @@
13096
13315
  {
13097
13316
  "$ref": "#/components/schemas/SiteCustomizationChannel"
13098
13317
  },
13318
+ {
13319
+ "$ref": "#/components/schemas/SiteIntegrationsChannel"
13320
+ },
13099
13321
  {
13100
13322
  "$ref": "#/components/schemas/SiteSpaceChannel"
13101
13323
  },
@@ -13928,6 +14150,24 @@
13928
14150
  "site"
13929
14151
  ]
13930
14152
  },
14153
+ "SiteIntegrationsChannel": {
14154
+ "type": "object",
14155
+ "properties": {
14156
+ "channel": {
14157
+ "type": "string",
14158
+ "enum": [
14159
+ "site-integrations"
14160
+ ]
14161
+ },
14162
+ "site": {
14163
+ "type": "string"
14164
+ }
14165
+ },
14166
+ "required": [
14167
+ "channel",
14168
+ "site"
14169
+ ]
14170
+ },
13931
14171
  "SitePublishingAuthChannel": {
13932
14172
  "type": "object",
13933
14173
  "properties": {
@@ -14722,12 +14962,24 @@
14722
14962
  },
14723
14963
  "active": {
14724
14964
  "type": "boolean"
14965
+ },
14966
+ "urls": {
14967
+ "type": "object",
14968
+ "description": "URLs associated with the object",
14969
+ "properties": {
14970
+ "published": {
14971
+ "type": "string",
14972
+ "description": "URL of the published version of the share-link.",
14973
+ "format": "uri"
14974
+ }
14975
+ }
14725
14976
  }
14726
14977
  },
14727
14978
  "required": [
14728
14979
  "object",
14729
14980
  "id",
14730
- "createdAt"
14981
+ "createdAt",
14982
+ "urls"
14731
14983
  ]
14732
14984
  },
14733
14985
  "ShareLinkName": {
@@ -15628,7 +15880,8 @@
15628
15880
  "type": "string",
15629
15881
  "enum": [
15630
15882
  "basic",
15631
- "premium"
15883
+ "premium",
15884
+ "premium_va"
15632
15885
  ]
15633
15886
  },
15634
15887
  "SiteSubscription": {
@@ -16603,6 +16856,49 @@
16603
16856
  }
16604
16857
  }
16605
16858
  },
16859
+ "/spaces/{spaceId}/embed": {
16860
+ "get": {
16861
+ "operationId": "getEmbedByUrlInSpace",
16862
+ "summary": "Resolve a URL to an embed in a given space",
16863
+ "tags": [
16864
+ "spaces"
16865
+ ],
16866
+ "security": [
16867
+ {
16868
+ "user": []
16869
+ }
16870
+ ],
16871
+ "parameters": [
16872
+ {
16873
+ "$ref": "#/components/parameters/spaceId"
16874
+ },
16875
+ {
16876
+ "name": "url",
16877
+ "in": "query",
16878
+ "required": true,
16879
+ "description": "URL to resolve",
16880
+ "schema": {
16881
+ "type": "string"
16882
+ }
16883
+ }
16884
+ ],
16885
+ "responses": {
16886
+ "200": {
16887
+ "description": "OK",
16888
+ "content": {
16889
+ "application/json": {
16890
+ "schema": {
16891
+ "$ref": "#/components/schemas/Embed"
16892
+ }
16893
+ }
16894
+ }
16895
+ },
16896
+ "default": {
16897
+ "$ref": "#/components/responses/UnexpectedError"
16898
+ }
16899
+ }
16900
+ }
16901
+ },
16606
16902
  "/spaces/{spaceId}/search": {
16607
16903
  "get": {
16608
16904
  "operationId": "searchSpaceContent",
@@ -27912,7 +28208,7 @@
27912
28208
  },
27913
28209
  "/orgs/{organizationId}/sites/{siteId}/publishing/auth": {
27914
28210
  "get": {
27915
- "operationId": "getSitePublishingAuthSettings",
28211
+ "operationId": "getSitePublishingAuthById",
27916
28212
  "summary": "Get the publishing authentication settings for a site.",
27917
28213
  "tags": [
27918
28214
  "sites"
@@ -27950,7 +28246,7 @@
27950
28246
  }
27951
28247
  },
27952
28248
  "patch": {
27953
- "operationId": "updateSitePublishingAuthSettings",
28249
+ "operationId": "updateSitePublishingAuthById",
27954
28250
  "summary": "Update the publishing authentication settings for a site.",
27955
28251
  "tags": [
27956
28252
  "sites"
@@ -27998,6 +28294,62 @@
27998
28294
  }
27999
28295
  }
28000
28296
  },
28297
+ "/orgs/{organizationId}/sites/{siteId}/publishing/preview": {
28298
+ "get": {
28299
+ "operationId": "getSitePublishingPreviewById",
28300
+ "summary": "Get a URL to preview the published content of a site. The URL will be valid for 1 hour.",
28301
+ "tags": [
28302
+ "sites"
28303
+ ],
28304
+ "security": [
28305
+ {
28306
+ "user": []
28307
+ }
28308
+ ],
28309
+ "parameters": [
28310
+ {
28311
+ "$ref": "#/components/parameters/organizationId"
28312
+ },
28313
+ {
28314
+ "$ref": "#/components/parameters/siteId"
28315
+ },
28316
+ {
28317
+ "name": "siteSpace",
28318
+ "in": "query",
28319
+ "description": "ID of the site-space to preview. If not provided, the default site-space will be used.",
28320
+ "schema": {
28321
+ "type": "string"
28322
+ }
28323
+ }
28324
+ ],
28325
+ "responses": {
28326
+ "200": {
28327
+ "description": "OK",
28328
+ "content": {
28329
+ "application/json": {
28330
+ "schema": {
28331
+ "type": "object",
28332
+ "properties": {
28333
+ "url": {
28334
+ "$ref": "#/components/schemas/URL"
28335
+ }
28336
+ },
28337
+ "required": [
28338
+ "url"
28339
+ ]
28340
+ }
28341
+ }
28342
+ }
28343
+ },
28344
+ "400": {
28345
+ "$ref": "#/components/responses/BadRequestError"
28346
+ },
28347
+ "default": {
28348
+ "$ref": "#/components/responses/UnexpectedError"
28349
+ }
28350
+ }
28351
+ }
28352
+ },
28001
28353
  "/orgs/{organizationId}/sites/{siteId}/customization": {
28002
28354
  "get": {
28003
28355
  "operationId": "getSiteCustomizationById",
@@ -28086,6 +28438,109 @@
28086
28438
  }
28087
28439
  }
28088
28440
  },
28441
+ "/orgs/{organizationId}/sites/{siteId}/integration-scripts": {
28442
+ "get": {
28443
+ "operationId": "listSiteIntegrationScripts",
28444
+ "summary": "List the scripts to embed in published content for a site.",
28445
+ "tags": [
28446
+ "integrations",
28447
+ "sites"
28448
+ ],
28449
+ "security": [
28450
+ {
28451
+ "user": []
28452
+ }
28453
+ ],
28454
+ "parameters": [
28455
+ {
28456
+ "$ref": "#/components/parameters/organizationId"
28457
+ },
28458
+ {
28459
+ "$ref": "#/components/parameters/siteId"
28460
+ }
28461
+ ],
28462
+ "responses": {
28463
+ "200": {
28464
+ "description": "OK",
28465
+ "content": {
28466
+ "application/json": {
28467
+ "schema": {
28468
+ "type": "array",
28469
+ "items": {
28470
+ "$ref": "#/components/schemas/SiteIntegrationScript"
28471
+ }
28472
+ }
28473
+ }
28474
+ }
28475
+ },
28476
+ "400": {
28477
+ "$ref": "#/components/responses/BadRequestError"
28478
+ },
28479
+ "default": {
28480
+ "$ref": "#/components/responses/UnexpectedError"
28481
+ }
28482
+ }
28483
+ }
28484
+ },
28485
+ "/orgs/{organizationId}/sites/{siteId}/integrations": {
28486
+ "get": {
28487
+ "operationId": "listSiteIntegrations",
28488
+ "summary": "List integrations enabled in a site.",
28489
+ "tags": [
28490
+ "integrations",
28491
+ "sites"
28492
+ ],
28493
+ "security": [
28494
+ {
28495
+ "user": []
28496
+ }
28497
+ ],
28498
+ "parameters": [
28499
+ {
28500
+ "$ref": "#/components/parameters/organizationId"
28501
+ },
28502
+ {
28503
+ "$ref": "#/components/parameters/siteId"
28504
+ },
28505
+ {
28506
+ "$ref": "#/components/schemas/IntegrationSearchQuery"
28507
+ }
28508
+ ],
28509
+ "responses": {
28510
+ "200": {
28511
+ "description": "Listing of integrations enabled in the site.",
28512
+ "content": {
28513
+ "application/json": {
28514
+ "schema": {
28515
+ "allOf": [
28516
+ {
28517
+ "$ref": "#/components/schemas/List"
28518
+ },
28519
+ {
28520
+ "type": "object",
28521
+ "required": [
28522
+ "items"
28523
+ ],
28524
+ "properties": {
28525
+ "items": {
28526
+ "type": "array",
28527
+ "items": {
28528
+ "$ref": "#/components/schemas/Integration"
28529
+ }
28530
+ }
28531
+ }
28532
+ }
28533
+ ]
28534
+ }
28535
+ }
28536
+ }
28537
+ },
28538
+ "default": {
28539
+ "$ref": "#/components/responses/UnexpectedError"
28540
+ }
28541
+ }
28542
+ }
28543
+ },
28089
28544
  "/orgs/{organizationId}/sites/{siteId}/spaces": {
28090
28545
  "post": {
28091
28546
  "operationId": "addSpaceToSite",
@@ -28545,6 +29000,42 @@
28545
29000
  }
28546
29001
  }
28547
29002
  },
29003
+ "/orgs/{organizationId}/sites/{siteId}/insights/track_view": {
29004
+ "post": {
29005
+ "operationId": "trackViewInSiteById",
29006
+ "description": "Track a page view in a site.",
29007
+ "tags": [
29008
+ "analytics",
29009
+ "sites"
29010
+ ],
29011
+ "parameters": [
29012
+ {
29013
+ "$ref": "#/components/parameters/organizationId"
29014
+ },
29015
+ {
29016
+ "$ref": "#/components/parameters/siteId"
29017
+ }
29018
+ ],
29019
+ "responses": {
29020
+ "204": {
29021
+ "description": "Page view has been tracked."
29022
+ },
29023
+ "default": {
29024
+ "$ref": "#/components/responses/UnexpectedError"
29025
+ }
29026
+ },
29027
+ "requestBody": {
29028
+ "required": true,
29029
+ "content": {
29030
+ "application/json": {
29031
+ "schema": {
29032
+ "$ref": "#/components/schemas/RequestSiteTrackPageView"
29033
+ }
29034
+ }
29035
+ }
29036
+ }
29037
+ }
29038
+ },
28548
29039
  "/custom-hostnames/{hostname}": {
28549
29040
  "get": {
28550
29041
  "operationId": "getCustomHostname",