@gitbook/api 0.15.0 → 0.16.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/dist/client.d.ts +171 -7
- package/dist/index.cjs +94 -0
- package/dist/index.js +94 -0
- package/package.json +1 -1
- package/spec/openapi.json +753 -61
- package/spec/openapi.yaml +422 -25
package/spec/openapi.yaml
CHANGED
|
@@ -151,6 +151,13 @@ components:
|
|
|
151
151
|
description: The unique id of a capture
|
|
152
152
|
schema:
|
|
153
153
|
type: string
|
|
154
|
+
snippetId:
|
|
155
|
+
name: snippetId
|
|
156
|
+
in: path
|
|
157
|
+
required: true
|
|
158
|
+
description: The unique id of a snippet
|
|
159
|
+
schema:
|
|
160
|
+
type: string
|
|
154
161
|
userId:
|
|
155
162
|
name: userId
|
|
156
163
|
in: path
|
|
@@ -172,6 +179,13 @@ components:
|
|
|
172
179
|
description: The unique id of the page
|
|
173
180
|
schema:
|
|
174
181
|
type: string
|
|
182
|
+
fileId:
|
|
183
|
+
name: fileId
|
|
184
|
+
in: path
|
|
185
|
+
required: true
|
|
186
|
+
description: The unique id of the file
|
|
187
|
+
schema:
|
|
188
|
+
type: string
|
|
175
189
|
pagePath:
|
|
176
190
|
name: pagePath
|
|
177
191
|
in: path
|
|
@@ -3860,9 +3874,9 @@ components:
|
|
|
3860
3874
|
oneOf:
|
|
3861
3875
|
- type: string
|
|
3862
3876
|
enum:
|
|
3863
|
-
- meeting
|
|
3864
3877
|
- thread
|
|
3865
3878
|
- walkthrough
|
|
3879
|
+
- document
|
|
3866
3880
|
BaseCaptureEvent:
|
|
3867
3881
|
type: object
|
|
3868
3882
|
properties:
|
|
@@ -4007,6 +4021,80 @@ components:
|
|
|
4007
4021
|
body:
|
|
4008
4022
|
description: Content of the capture.
|
|
4009
4023
|
$ref: "#/components/schemas/Document"
|
|
4024
|
+
Snippet:
|
|
4025
|
+
allOf:
|
|
4026
|
+
- $ref: "#/components/schemas/Document"
|
|
4027
|
+
- type: object
|
|
4028
|
+
properties:
|
|
4029
|
+
id:
|
|
4030
|
+
type: string
|
|
4031
|
+
description: Unique identifier for the snippet
|
|
4032
|
+
createdAt:
|
|
4033
|
+
type: string
|
|
4034
|
+
format: date-time
|
|
4035
|
+
editedAt:
|
|
4036
|
+
type: string
|
|
4037
|
+
format: date-time
|
|
4038
|
+
description: Timestamp of when the snippet was last edited, if it has been edited since its creation.
|
|
4039
|
+
title:
|
|
4040
|
+
type: string
|
|
4041
|
+
description: Title describing the snippet.
|
|
4042
|
+
maxLength: 100
|
|
4043
|
+
source:
|
|
4044
|
+
description: The source of the snippet.
|
|
4045
|
+
type: object
|
|
4046
|
+
properties:
|
|
4047
|
+
sourceId:
|
|
4048
|
+
type: string
|
|
4049
|
+
description: An ID identifying the source, unique across all sources.
|
|
4050
|
+
name:
|
|
4051
|
+
type: string
|
|
4052
|
+
description: A display name for the source.
|
|
4053
|
+
externalId:
|
|
4054
|
+
type: string
|
|
4055
|
+
description: An ID identifying the snippet in the source system, if available.
|
|
4056
|
+
externalUrl:
|
|
4057
|
+
description: URL of the snippet in the source system, if available.
|
|
4058
|
+
$ref: "#/components/schemas/URL"
|
|
4059
|
+
required:
|
|
4060
|
+
- sourceId
|
|
4061
|
+
- name
|
|
4062
|
+
contributors:
|
|
4063
|
+
description: An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
|
|
4064
|
+
type: array
|
|
4065
|
+
minItems: 1
|
|
4066
|
+
items:
|
|
4067
|
+
oneOf:
|
|
4068
|
+
- $ref: "#/components/schemas/Integration"
|
|
4069
|
+
- $ref: "#/components/schemas/User"
|
|
4070
|
+
urls:
|
|
4071
|
+
type: object
|
|
4072
|
+
description: URLs associated with the object
|
|
4073
|
+
properties:
|
|
4074
|
+
location:
|
|
4075
|
+
description: URL of the snippet in the API
|
|
4076
|
+
$ref: "#/components/schemas/URL"
|
|
4077
|
+
app:
|
|
4078
|
+
description: URL of the snippet in the app
|
|
4079
|
+
$ref: "#/components/schemas/URL"
|
|
4080
|
+
required:
|
|
4081
|
+
- location
|
|
4082
|
+
- app
|
|
4083
|
+
required:
|
|
4084
|
+
- id
|
|
4085
|
+
- source
|
|
4086
|
+
- createdAt
|
|
4087
|
+
- contributors
|
|
4088
|
+
- urls
|
|
4089
|
+
UpdateSnippetSchema:
|
|
4090
|
+
type: object
|
|
4091
|
+
properties:
|
|
4092
|
+
title:
|
|
4093
|
+
type: string
|
|
4094
|
+
description: A new title for the snippet.
|
|
4095
|
+
body:
|
|
4096
|
+
description: Content of the snippet.
|
|
4097
|
+
$ref: "#/components/schemas/Document"
|
|
4010
4098
|
ContentAuditRelation:
|
|
4011
4099
|
type: object
|
|
4012
4100
|
description: Content audit relation
|
|
@@ -4817,6 +4905,7 @@ components:
|
|
|
4817
4905
|
type: string
|
|
4818
4906
|
enum:
|
|
4819
4907
|
- entities:write
|
|
4908
|
+
- snippets:read
|
|
4820
4909
|
- capture:write
|
|
4821
4910
|
- space:views:read
|
|
4822
4911
|
- space:content:read
|
|
@@ -8145,21 +8234,6 @@ components:
|
|
|
8145
8234
|
required:
|
|
8146
8235
|
- code
|
|
8147
8236
|
- message
|
|
8148
|
-
ContentFilesResponse:
|
|
8149
|
-
description: OK
|
|
8150
|
-
content:
|
|
8151
|
-
application/json:
|
|
8152
|
-
schema:
|
|
8153
|
-
allOf:
|
|
8154
|
-
- $ref: "#/components/schemas/List"
|
|
8155
|
-
- type: object
|
|
8156
|
-
required:
|
|
8157
|
-
- items
|
|
8158
|
-
properties:
|
|
8159
|
-
items:
|
|
8160
|
-
type: array
|
|
8161
|
-
items:
|
|
8162
|
-
$ref: "#/components/schemas/RevisionFile"
|
|
8163
8237
|
paths:
|
|
8164
8238
|
/:
|
|
8165
8239
|
get:
|
|
@@ -8713,9 +8787,31 @@ paths:
|
|
|
8713
8787
|
application/json:
|
|
8714
8788
|
schema:
|
|
8715
8789
|
$ref: "#/components/schemas/RequestImportContent"
|
|
8790
|
+
"/spaces/{spaceId}/content/pages":
|
|
8791
|
+
get:
|
|
8792
|
+
summary: List all pages for the main revision content of a space
|
|
8793
|
+
operationId: listPages
|
|
8794
|
+
security:
|
|
8795
|
+
- user: []
|
|
8796
|
+
parameters:
|
|
8797
|
+
- $ref: "#/components/parameters/spaceId"
|
|
8798
|
+
responses:
|
|
8799
|
+
"200":
|
|
8800
|
+
description: OK
|
|
8801
|
+
content:
|
|
8802
|
+
application/json:
|
|
8803
|
+
schema:
|
|
8804
|
+
type: object
|
|
8805
|
+
properties:
|
|
8806
|
+
pages:
|
|
8807
|
+
type: array
|
|
8808
|
+
items:
|
|
8809
|
+
$ref: "#/components/schemas/RevisionPage"
|
|
8810
|
+
default:
|
|
8811
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8716
8812
|
"/spaces/{spaceId}/content/files":
|
|
8717
8813
|
get:
|
|
8718
|
-
summary: List all files for the
|
|
8814
|
+
summary: List all files for the main revision content of a space
|
|
8719
8815
|
operationId: listFiles
|
|
8720
8816
|
security:
|
|
8721
8817
|
- user: []
|
|
@@ -8725,7 +8821,38 @@ paths:
|
|
|
8725
8821
|
- $ref: "#/components/parameters/listLimit"
|
|
8726
8822
|
responses:
|
|
8727
8823
|
"200":
|
|
8728
|
-
|
|
8824
|
+
description: OK
|
|
8825
|
+
content:
|
|
8826
|
+
application/json:
|
|
8827
|
+
schema:
|
|
8828
|
+
allOf:
|
|
8829
|
+
- $ref: "#/components/schemas/List"
|
|
8830
|
+
- type: object
|
|
8831
|
+
required:
|
|
8832
|
+
- items
|
|
8833
|
+
properties:
|
|
8834
|
+
items:
|
|
8835
|
+
type: array
|
|
8836
|
+
items:
|
|
8837
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
8838
|
+
default:
|
|
8839
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8840
|
+
"/spaces/{spaceId}/content/files/{fileId}":
|
|
8841
|
+
get:
|
|
8842
|
+
summary: Get a file by its ID in the main revision of a space
|
|
8843
|
+
operationId: getFileById
|
|
8844
|
+
security:
|
|
8845
|
+
- user: []
|
|
8846
|
+
parameters:
|
|
8847
|
+
- $ref: "#/components/parameters/spaceId"
|
|
8848
|
+
- $ref: "#/components/parameters/fileId"
|
|
8849
|
+
responses:
|
|
8850
|
+
"200":
|
|
8851
|
+
description: OK
|
|
8852
|
+
content:
|
|
8853
|
+
application/json:
|
|
8854
|
+
schema:
|
|
8855
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
8729
8856
|
default:
|
|
8730
8857
|
$ref: "#/components/responses/UnexpectedError"
|
|
8731
8858
|
"/spaces/{spaceId}/content/page/{pageId}":
|
|
@@ -9433,9 +9560,32 @@ paths:
|
|
|
9433
9560
|
application/json:
|
|
9434
9561
|
schema:
|
|
9435
9562
|
$ref: "#/components/schemas/RequestImportContent"
|
|
9563
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages":
|
|
9564
|
+
get:
|
|
9565
|
+
summary: List all pages in the content of a change request
|
|
9566
|
+
operationId: listPagesInChangeRequest
|
|
9567
|
+
security:
|
|
9568
|
+
- user: []
|
|
9569
|
+
parameters:
|
|
9570
|
+
- $ref: "#/components/parameters/spaceId"
|
|
9571
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
9572
|
+
responses:
|
|
9573
|
+
"200":
|
|
9574
|
+
description: OK
|
|
9575
|
+
content:
|
|
9576
|
+
application/json:
|
|
9577
|
+
schema:
|
|
9578
|
+
type: object
|
|
9579
|
+
properties:
|
|
9580
|
+
pages:
|
|
9581
|
+
type: array
|
|
9582
|
+
items:
|
|
9583
|
+
$ref: "#/components/schemas/RevisionPage"
|
|
9584
|
+
default:
|
|
9585
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9436
9586
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/files":
|
|
9437
9587
|
get:
|
|
9438
|
-
summary: List all files in
|
|
9588
|
+
summary: List all files in a change request content
|
|
9439
9589
|
operationId: listFilesInChangeRequestById
|
|
9440
9590
|
security:
|
|
9441
9591
|
- user: []
|
|
@@ -9446,7 +9596,39 @@ paths:
|
|
|
9446
9596
|
- $ref: "#/components/parameters/listLimit"
|
|
9447
9597
|
responses:
|
|
9448
9598
|
"200":
|
|
9449
|
-
|
|
9599
|
+
description: OK
|
|
9600
|
+
content:
|
|
9601
|
+
application/json:
|
|
9602
|
+
schema:
|
|
9603
|
+
allOf:
|
|
9604
|
+
- $ref: "#/components/schemas/List"
|
|
9605
|
+
- type: object
|
|
9606
|
+
required:
|
|
9607
|
+
- items
|
|
9608
|
+
properties:
|
|
9609
|
+
items:
|
|
9610
|
+
type: array
|
|
9611
|
+
items:
|
|
9612
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
9613
|
+
default:
|
|
9614
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9615
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}":
|
|
9616
|
+
get:
|
|
9617
|
+
summary: Get a file by its ID in the content of a change request
|
|
9618
|
+
operationId: getFileInChangeRequestById
|
|
9619
|
+
security:
|
|
9620
|
+
- user: []
|
|
9621
|
+
parameters:
|
|
9622
|
+
- $ref: "#/components/parameters/spaceId"
|
|
9623
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
9624
|
+
- $ref: "#/components/parameters/fileId"
|
|
9625
|
+
responses:
|
|
9626
|
+
"200":
|
|
9627
|
+
description: OK
|
|
9628
|
+
content:
|
|
9629
|
+
application/json:
|
|
9630
|
+
schema:
|
|
9631
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
9450
9632
|
default:
|
|
9451
9633
|
$ref: "#/components/responses/UnexpectedError"
|
|
9452
9634
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}":
|
|
@@ -9579,6 +9761,28 @@ paths:
|
|
|
9579
9761
|
- changes
|
|
9580
9762
|
default:
|
|
9581
9763
|
$ref: "#/components/responses/UnexpectedError"
|
|
9764
|
+
"/spaces/{spaceId}/revisions/{revisionId}/pages":
|
|
9765
|
+
get:
|
|
9766
|
+
summary: List all pages in a revision
|
|
9767
|
+
operationId: listPagesInRevisionById
|
|
9768
|
+
security:
|
|
9769
|
+
- user: []
|
|
9770
|
+
parameters:
|
|
9771
|
+
- $ref: "#/components/parameters/spaceId"
|
|
9772
|
+
responses:
|
|
9773
|
+
"200":
|
|
9774
|
+
description: OK
|
|
9775
|
+
content:
|
|
9776
|
+
application/json:
|
|
9777
|
+
schema:
|
|
9778
|
+
type: object
|
|
9779
|
+
properties:
|
|
9780
|
+
pages:
|
|
9781
|
+
type: array
|
|
9782
|
+
items:
|
|
9783
|
+
$ref: "#/components/schemas/RevisionPage"
|
|
9784
|
+
default:
|
|
9785
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9582
9786
|
"/spaces/{spaceId}/revisions/{revisionId}/files":
|
|
9583
9787
|
get:
|
|
9584
9788
|
summary: List all files in a revision
|
|
@@ -9592,7 +9796,39 @@ paths:
|
|
|
9592
9796
|
- $ref: "#/components/parameters/listLimit"
|
|
9593
9797
|
responses:
|
|
9594
9798
|
"200":
|
|
9595
|
-
|
|
9799
|
+
description: OK
|
|
9800
|
+
content:
|
|
9801
|
+
application/json:
|
|
9802
|
+
schema:
|
|
9803
|
+
allOf:
|
|
9804
|
+
- $ref: "#/components/schemas/List"
|
|
9805
|
+
- type: object
|
|
9806
|
+
required:
|
|
9807
|
+
- items
|
|
9808
|
+
properties:
|
|
9809
|
+
items:
|
|
9810
|
+
type: array
|
|
9811
|
+
items:
|
|
9812
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
9813
|
+
default:
|
|
9814
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9815
|
+
"/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}":
|
|
9816
|
+
get:
|
|
9817
|
+
summary: Get a file in a revision by its ID
|
|
9818
|
+
operationId: getFileInRevisionById
|
|
9819
|
+
security:
|
|
9820
|
+
- user: []
|
|
9821
|
+
parameters:
|
|
9822
|
+
- $ref: "#/components/parameters/spaceId"
|
|
9823
|
+
- $ref: "#/components/parameters/revisionId"
|
|
9824
|
+
- $ref: "#/components/parameters/fileId"
|
|
9825
|
+
responses:
|
|
9826
|
+
"200":
|
|
9827
|
+
description: OK
|
|
9828
|
+
content:
|
|
9829
|
+
application/json:
|
|
9830
|
+
schema:
|
|
9831
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
9596
9832
|
default:
|
|
9597
9833
|
$ref: "#/components/responses/UnexpectedError"
|
|
9598
9834
|
"/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}":
|
|
@@ -12360,7 +12596,8 @@ paths:
|
|
|
12360
12596
|
"/orgs/{organizationId}/captures":
|
|
12361
12597
|
get:
|
|
12362
12598
|
operationId: listCaptures
|
|
12363
|
-
|
|
12599
|
+
deprecated: true
|
|
12600
|
+
summary: List captures. Deprecated, use listSnippets instead.
|
|
12364
12601
|
description: |
|
|
12365
12602
|
List captures in an organization, newest first.
|
|
12366
12603
|
tags:
|
|
@@ -12443,7 +12680,8 @@ paths:
|
|
|
12443
12680
|
"/orgs/{organizationId}/captures/{captureId}":
|
|
12444
12681
|
get:
|
|
12445
12682
|
operationId: getCapture
|
|
12446
|
-
|
|
12683
|
+
deprecated: true
|
|
12684
|
+
summary: Get a capture by its ID. Deprecated, use getSnippet instead.
|
|
12447
12685
|
tags:
|
|
12448
12686
|
- organizations
|
|
12449
12687
|
security:
|
|
@@ -12463,7 +12701,8 @@ paths:
|
|
|
12463
12701
|
$ref: "#/components/responses/UnexpectedError"
|
|
12464
12702
|
delete:
|
|
12465
12703
|
operationId: deleteCapture
|
|
12466
|
-
|
|
12704
|
+
deprecated: true
|
|
12705
|
+
summary: Delete a capture by its ID. Deprecated, use deleteSnippet.
|
|
12467
12706
|
tags:
|
|
12468
12707
|
- organizations
|
|
12469
12708
|
security:
|
|
@@ -12478,7 +12717,8 @@ paths:
|
|
|
12478
12717
|
$ref: "#/components/responses/UnexpectedError"
|
|
12479
12718
|
put:
|
|
12480
12719
|
operationId: updateCapture
|
|
12481
|
-
|
|
12720
|
+
deprecated: true
|
|
12721
|
+
summary: Update an existing capture. Deprecated, use updateSnippet.
|
|
12482
12722
|
tags:
|
|
12483
12723
|
- organizations
|
|
12484
12724
|
security:
|
|
@@ -12567,6 +12807,134 @@ paths:
|
|
|
12567
12807
|
- capture
|
|
12568
12808
|
default:
|
|
12569
12809
|
$ref: "#/components/responses/UnexpectedError"
|
|
12810
|
+
"/orgs/{organizationId}/snippets":
|
|
12811
|
+
get:
|
|
12812
|
+
operationId: listSnippets
|
|
12813
|
+
summary: Lists snippets.
|
|
12814
|
+
description: |
|
|
12815
|
+
List snippets in an organization, newest first.
|
|
12816
|
+
tags:
|
|
12817
|
+
- organizations
|
|
12818
|
+
security:
|
|
12819
|
+
- user: []
|
|
12820
|
+
parameters:
|
|
12821
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12822
|
+
- $ref: "#/components/parameters/pageFormat"
|
|
12823
|
+
- $ref: "#/components/parameters/listPage"
|
|
12824
|
+
- $ref: "#/components/parameters/listLimit"
|
|
12825
|
+
- name: source
|
|
12826
|
+
in: query
|
|
12827
|
+
description: If specified, only snippets from the specified source will be returned.
|
|
12828
|
+
schema:
|
|
12829
|
+
type: string
|
|
12830
|
+
responses:
|
|
12831
|
+
"200":
|
|
12832
|
+
description: OK
|
|
12833
|
+
content:
|
|
12834
|
+
application/json:
|
|
12835
|
+
schema:
|
|
12836
|
+
allOf:
|
|
12837
|
+
- $ref: "#/components/schemas/List"
|
|
12838
|
+
- type: object
|
|
12839
|
+
required:
|
|
12840
|
+
- items
|
|
12841
|
+
properties:
|
|
12842
|
+
items:
|
|
12843
|
+
type: array
|
|
12844
|
+
items:
|
|
12845
|
+
$ref: "#/components/schemas/Snippet"
|
|
12846
|
+
default:
|
|
12847
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12848
|
+
post:
|
|
12849
|
+
operationId: createSnippet
|
|
12850
|
+
summary: Create a new snippet
|
|
12851
|
+
tags:
|
|
12852
|
+
- organizations
|
|
12853
|
+
security:
|
|
12854
|
+
- user: []
|
|
12855
|
+
parameters:
|
|
12856
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12857
|
+
requestBody:
|
|
12858
|
+
content:
|
|
12859
|
+
application/json:
|
|
12860
|
+
schema:
|
|
12861
|
+
type: object
|
|
12862
|
+
responses:
|
|
12863
|
+
"201":
|
|
12864
|
+
description: Snippet created
|
|
12865
|
+
headers:
|
|
12866
|
+
Location:
|
|
12867
|
+
description: API URL for the newly created snippet
|
|
12868
|
+
schema:
|
|
12869
|
+
type: string
|
|
12870
|
+
content:
|
|
12871
|
+
application/json:
|
|
12872
|
+
schema:
|
|
12873
|
+
$ref: "#/components/schemas/Snippet"
|
|
12874
|
+
default:
|
|
12875
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12876
|
+
"/orgs/{organizationId}/snippets/{snippetId}":
|
|
12877
|
+
get:
|
|
12878
|
+
operationId: getSnippet
|
|
12879
|
+
summary: Get a snippet by its ID
|
|
12880
|
+
tags:
|
|
12881
|
+
- organizations
|
|
12882
|
+
security:
|
|
12883
|
+
- user: []
|
|
12884
|
+
parameters:
|
|
12885
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12886
|
+
- $ref: "#/components/parameters/snippetId"
|
|
12887
|
+
- $ref: "#/components/parameters/pageFormat"
|
|
12888
|
+
responses:
|
|
12889
|
+
"200":
|
|
12890
|
+
description: OK
|
|
12891
|
+
content:
|
|
12892
|
+
application/json:
|
|
12893
|
+
schema:
|
|
12894
|
+
$ref: "#/components/schemas/Snippet"
|
|
12895
|
+
default:
|
|
12896
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12897
|
+
delete:
|
|
12898
|
+
operationId: deleteSnippet
|
|
12899
|
+
summary: Delete a snippet by its ID.
|
|
12900
|
+
tags:
|
|
12901
|
+
- organizations
|
|
12902
|
+
security:
|
|
12903
|
+
- user: []
|
|
12904
|
+
parameters:
|
|
12905
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12906
|
+
- $ref: "#/components/parameters/snippetId"
|
|
12907
|
+
responses:
|
|
12908
|
+
"200":
|
|
12909
|
+
description: OK
|
|
12910
|
+
default:
|
|
12911
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12912
|
+
put:
|
|
12913
|
+
operationId: updateSnippet
|
|
12914
|
+
summary: Update an existing snippet.
|
|
12915
|
+
tags:
|
|
12916
|
+
- organizations
|
|
12917
|
+
security:
|
|
12918
|
+
- user: []
|
|
12919
|
+
parameters:
|
|
12920
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12921
|
+
- $ref: "#/components/parameters/snippetId"
|
|
12922
|
+
- $ref: "#/components/parameters/ifUnmodifiedSince"
|
|
12923
|
+
requestBody:
|
|
12924
|
+
required: true
|
|
12925
|
+
content:
|
|
12926
|
+
application/json:
|
|
12927
|
+
schema:
|
|
12928
|
+
$ref: "#/components/schemas/UpdateSnippetSchema"
|
|
12929
|
+
responses:
|
|
12930
|
+
"200":
|
|
12931
|
+
description: OK
|
|
12932
|
+
content:
|
|
12933
|
+
application/json:
|
|
12934
|
+
schema:
|
|
12935
|
+
$ref: "#/components/schemas/Snippet"
|
|
12936
|
+
default:
|
|
12937
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12570
12938
|
"/orgs/{organizationId}/ask":
|
|
12571
12939
|
post:
|
|
12572
12940
|
operationId: askInOrganization
|
|
@@ -12666,6 +13034,35 @@ paths:
|
|
|
12666
13034
|
$ref: "#/components/responses/NotFoundError"
|
|
12667
13035
|
default:
|
|
12668
13036
|
$ref: "#/components/responses/UnexpectedError"
|
|
13037
|
+
"/orgs/{organizationId}/insights/audit-sources/{sourceId}/content":
|
|
13038
|
+
get:
|
|
13039
|
+
operationId: getContentAuditSourceContentById
|
|
13040
|
+
summary: Get the content of an audit source
|
|
13041
|
+
tags:
|
|
13042
|
+
- organizations
|
|
13043
|
+
security:
|
|
13044
|
+
- user: []
|
|
13045
|
+
parameters:
|
|
13046
|
+
- $ref: "#/components/parameters/organizationId"
|
|
13047
|
+
- name: sourceId
|
|
13048
|
+
in: path
|
|
13049
|
+
required: true
|
|
13050
|
+
description: The id of the content audit source
|
|
13051
|
+
schema:
|
|
13052
|
+
type: string
|
|
13053
|
+
- $ref: "#/components/parameters/pageFormat"
|
|
13054
|
+
responses:
|
|
13055
|
+
"200":
|
|
13056
|
+
description: OK
|
|
13057
|
+
content:
|
|
13058
|
+
application/json:
|
|
13059
|
+
schema:
|
|
13060
|
+
$ref: "#/components/schemas/Document"
|
|
13061
|
+
"404":
|
|
13062
|
+
description: No matching content source found for given ID
|
|
13063
|
+
$ref: "#/components/responses/NotFoundError"
|
|
13064
|
+
default:
|
|
13065
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12669
13066
|
/internal/hive/token:
|
|
12670
13067
|
post:
|
|
12671
13068
|
operationId: generateHiveAccessToken
|