Skip to content

Commit b9d2187

Browse files
Update OpenAPI spec
1 parent d5b3f53 commit b9d2187

1 file changed

Lines changed: 43 additions & 43 deletions

File tree

site/static/mattermost-openapi-v4.yaml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9044,43 +9044,6 @@ paths:
90449044
$ref: '#/components/responses/Forbidden'
90459045
"404":
90469046
$ref: '#/components/responses/NotFound'
9047-
/api/v4/sharedchannels/{channel_id}/remotes:
9048-
get:
9049-
tags:
9050-
- shared channels
9051-
summary: Get remote clusters for a shared channel
9052-
description: |
9053-
Gets the remote clusters information for a shared channel.
9054-
9055-
__Minimum server version__: 10.11
9056-
9057-
##### Permissions
9058-
Must be authenticated and have the `read_channel` permission for the channel.
9059-
operationId: GetSharedChannelRemotes
9060-
parameters:
9061-
- name: channel_id
9062-
in: path
9063-
description: Channel GUID
9064-
required: true
9065-
schema:
9066-
type: string
9067-
responses:
9068-
"200":
9069-
description: Remote clusters retrieval successful
9070-
content:
9071-
application/json:
9072-
schema:
9073-
type: array
9074-
items:
9075-
$ref: '#/components/schemas/RemoteClusterInfo'
9076-
"400":
9077-
$ref: '#/components/responses/BadRequest'
9078-
"401":
9079-
$ref: '#/components/responses/Unauthorized'
9080-
"403":
9081-
$ref: '#/components/responses/Forbidden'
9082-
"404":
9083-
$ref: '#/components/responses/NotFound'
90849047
/api/v4/channels/{channel_id}/common_teams:
90859048
get:
90869049
tags:
@@ -19359,6 +19322,43 @@ paths:
1935919322
$ref: '#/components/responses/Unauthorized'
1936019323
"403":
1936119324
$ref: '#/components/responses/Forbidden'
19325+
/api/v4/sharedchannels/{channel_id}/remotes:
19326+
get:
19327+
tags:
19328+
- shared channels
19329+
summary: Get remote clusters for a shared channel
19330+
description: |
19331+
Gets the remote clusters information for a shared channel.
19332+
19333+
__Minimum server version__: 10.11
19334+
19335+
##### Permissions
19336+
Must be authenticated and have the `read_channel` permission for the channel.
19337+
operationId: GetSharedChannelRemotes
19338+
parameters:
19339+
- name: channel_id
19340+
in: path
19341+
description: Channel GUID
19342+
required: true
19343+
schema:
19344+
type: string
19345+
responses:
19346+
"200":
19347+
description: Remote clusters retrieval successful
19348+
content:
19349+
application/json:
19350+
schema:
19351+
type: array
19352+
items:
19353+
$ref: '#/components/schemas/RemoteClusterInfo'
19354+
"400":
19355+
$ref: '#/components/responses/BadRequest'
19356+
"401":
19357+
$ref: '#/components/responses/Unauthorized'
19358+
"403":
19359+
$ref: '#/components/responses/Forbidden'
19360+
"404":
19361+
$ref: '#/components/responses/NotFound'
1936219362
/api/v4/sharedchannels/users/{user_id}/can_dm/{other_user_id}:
1936319363
get:
1936419364
tags:
@@ -21902,9 +21902,9 @@ paths:
2190221902
subsequent_page:
2190321903
summary: Subsequent page using cursor
2190421904
value:
21905+
cursor: MTphYmMxMjM6Y3JlYXRlX2F0OmZhbHNlOmZhbHNlOmFzYzoxNjM1NzI0ODAwMDAwOnBvc3QxMjM
2190521906
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2190621907
per_page: 100
21907-
cursor: MTphYmMxMjM6Y3JlYXRlX2F0OmZhbHNlOmZhbHNlOmFzYzoxNjM1NzI0ODAwMDAwOnBvc3QxMjM
2190821908
time_range_query:
2190921909
summary: Query with time range starting from specific time
2191021910
value:
@@ -21916,9 +21916,9 @@ paths:
2191621916
summary: Descending order from recent
2191721917
value:
2191821918
channel_id: 4xp9fdt77pncbef59f4k1qe83o
21919+
sort_direction: desc
2191921920
cursor: ""
2192021921
per_page: 100
21921-
sort_direction: desc
2192221922
responses:
2192321923
"200":
2192421924
description: Posts retrieved successfully
@@ -21948,9 +21948,9 @@ paths:
2194821948
value:
2194921949
posts:
2195021950
post_id_1:
21951+
message: First post
2195121952
create_at: 1635638400000
2195221953
id: post_id_1
21953-
message: First post
2195421954
post_id_2:
2195521955
id: post_id_2
2195621956
message: Second post
@@ -27358,12 +27358,12 @@ components:
2735827358
description: Additional attributes for the property field (options for select fields, visibility, etc.).
2735927359
additionalProperties: true
2736027360
example:
27361-
visibility: when_set
27362-
sortOrder: 1
2736327361
options:
2736427362
- color: '#ff0000'
2736527363
id: opt1
2736627364
name: High
27365+
sortOrder: 1
27366+
visibility: when_set
2736727367
PropertyFieldPatch:
2736827368
type: object
2736927369
properties:
@@ -31624,8 +31624,8 @@ components:
3162431624
description: Team-specific reviewer configuration, keyed by team ID
3162531625
example:
3162631626
8guxic3sg7nijeu5dgxt1fh4ia:
31627-
ReviewerIds: []
3162831627
Enabled: true
31628+
ReviewerIds: []
3162931629
u1ujk34a47gfxp856pdczs9gey:
3163031630
Enabled: false
3163131631
ReviewerIds: []

0 commit comments

Comments
 (0)