Skip to content

Commit 1ba0722

Browse files
Update OpenAPI spec
1 parent 6e0fc5b commit 1ba0722

1 file changed

Lines changed: 40 additions & 40 deletions

File tree

site/static/mattermost-openapi-v4.yaml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9323,6 +9323,43 @@ paths:
93239323
$ref: '#/components/responses/Forbidden'
93249324
"404":
93259325
$ref: '#/components/responses/NotFound'
9326+
/api/v4/sharedchannels/{channel_id}/remotes:
9327+
get:
9328+
tags:
9329+
- channels
9330+
summary: Get remote clusters for a shared channel
9331+
description: |
9332+
Gets the remote clusters information for a shared channel.
9333+
9334+
__Minimum server version__: 10.10
9335+
9336+
##### Permissions
9337+
Must be authenticated and have the `read_channel` permission for the channel.
9338+
operationId: GetSharedChannelRemotes
9339+
parameters:
9340+
- name: channel_id
9341+
in: path
9342+
description: Channel GUID
9343+
required: true
9344+
schema:
9345+
type: string
9346+
responses:
9347+
"200":
9348+
description: Remote clusters retrieval successful
9349+
content:
9350+
application/json:
9351+
schema:
9352+
type: array
9353+
items:
9354+
$ref: '#/components/schemas/RemoteClusterInfo'
9355+
"400":
9356+
$ref: '#/components/responses/BadRequest'
9357+
"401":
9358+
$ref: '#/components/responses/Unauthorized'
9359+
"403":
9360+
$ref: '#/components/responses/Forbidden'
9361+
"404":
9362+
$ref: '#/components/responses/NotFound'
93269363
/api/v4/channels/{channel_id}/common_teams:
93279364
get:
93289365
tags:
@@ -19601,43 +19638,6 @@ paths:
1960119638
$ref: '#/components/responses/Unauthorized'
1960219639
"403":
1960319640
$ref: '#/components/responses/Forbidden'
19604-
/api/v4/sharedchannels/{channel_id}/remotes:
19605-
get:
19606-
tags:
19607-
- shared channels
19608-
summary: Get remote clusters for a shared channel
19609-
description: |
19610-
Gets the remote clusters information for a shared channel.
19611-
19612-
__Minimum server version__: 10.11
19613-
19614-
##### Permissions
19615-
Must be authenticated and have the `read_channel` permission for the channel.
19616-
operationId: GetSharedChannelRemotes
19617-
parameters:
19618-
- name: channel_id
19619-
in: path
19620-
description: Channel GUID
19621-
required: true
19622-
schema:
19623-
type: string
19624-
responses:
19625-
"200":
19626-
description: Remote clusters retrieval successful
19627-
content:
19628-
application/json:
19629-
schema:
19630-
type: array
19631-
items:
19632-
$ref: '#/components/schemas/RemoteClusterInfo'
19633-
"400":
19634-
$ref: '#/components/responses/BadRequest'
19635-
"401":
19636-
$ref: '#/components/responses/Unauthorized'
19637-
"403":
19638-
$ref: '#/components/responses/Forbidden'
19639-
"404":
19640-
$ref: '#/components/responses/NotFound'
1964119641
/api/v4/sharedchannels/users/{user_id}/can_dm/{other_user_id}:
1964219642
get:
1964319643
tags:
@@ -22175,15 +22175,15 @@ paths:
2217522175
first_page_ascending:
2217622176
summary: First page, ascending order
2217722177
value:
22178-
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2217922178
cursor: ""
22179+
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2218022180
per_page: 100
2218122181
subsequent_page:
2218222182
summary: Subsequent page using cursor
2218322183
value:
22184-
per_page: 100
2218522184
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2218622185
cursor: MTphYmMxMjM6Y3JlYXRlX2F0OmZhbHNlOmZhbHNlOmFzYzoxNjM1NzI0ODAwMDAwOnBvc3QxMjM
22186+
per_page: 100
2218722187
time_range_query:
2218822188
summary: Query with time range starting from specific time
2218922189
value:
@@ -22227,9 +22227,9 @@ paths:
2222722227
value:
2222822228
posts:
2222922229
post_id_1:
22230-
create_at: 1635638400000
2223122230
id: post_id_1
2223222231
message: First post
22232+
create_at: 1635638400000
2223322233
post_id_2:
2223422234
id: post_id_2
2223522235
message: Second post

0 commit comments

Comments
 (0)