Skip to content

Commit 7201b7e

Browse files
Update OpenAPI spec
1 parent 70e402d commit 7201b7e

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

site/static/mattermost-openapi-v4.yaml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8966,43 +8966,6 @@ paths:
89668966
$ref: '#/components/responses/Forbidden'
89678967
"404":
89688968
$ref: '#/components/responses/NotFound'
8969-
/api/v4/sharedchannels/{channel_id}/remotes:
8970-
get:
8971-
tags:
8972-
- channels
8973-
summary: Get remote clusters for a shared channel
8974-
description: |
8975-
Gets the remote clusters information for a shared channel.
8976-
8977-
__Minimum server version__: 10.10
8978-
8979-
##### Permissions
8980-
Must be authenticated and have the `read_channel` permission for the channel.
8981-
operationId: GetSharedChannelRemotes
8982-
parameters:
8983-
- name: channel_id
8984-
in: path
8985-
description: Channel GUID
8986-
required: true
8987-
schema:
8988-
type: string
8989-
responses:
8990-
"200":
8991-
description: Remote clusters retrieval successful
8992-
content:
8993-
application/json:
8994-
schema:
8995-
type: array
8996-
items:
8997-
$ref: '#/components/schemas/RemoteClusterInfo'
8998-
"400":
8999-
$ref: '#/components/responses/BadRequest'
9000-
"401":
9001-
$ref: '#/components/responses/Unauthorized'
9002-
"403":
9003-
$ref: '#/components/responses/Forbidden'
9004-
"404":
9005-
$ref: '#/components/responses/NotFound'
90068969
/api/v4/channels/{channel_id}/common_teams:
90078970
get:
90088971
tags:
@@ -19185,6 +19148,43 @@ paths:
1918519148
$ref: '#/components/responses/Unauthorized'
1918619149
"403":
1918719150
$ref: '#/components/responses/Forbidden'
19151+
/api/v4/sharedchannels/{channel_id}/remotes:
19152+
get:
19153+
tags:
19154+
- channels
19155+
summary: Get remote clusters for a shared channel
19156+
description: |
19157+
Gets the remote clusters information for a shared channel.
19158+
19159+
__Minimum server version__: 10.10
19160+
19161+
##### Permissions
19162+
Must be authenticated and have the `read_channel` permission for the channel.
19163+
operationId: GetSharedChannelRemotes
19164+
parameters:
19165+
- name: channel_id
19166+
in: path
19167+
description: Channel GUID
19168+
required: true
19169+
schema:
19170+
type: string
19171+
responses:
19172+
"200":
19173+
description: Remote clusters retrieval successful
19174+
content:
19175+
application/json:
19176+
schema:
19177+
type: array
19178+
items:
19179+
$ref: '#/components/schemas/RemoteClusterInfo'
19180+
"400":
19181+
$ref: '#/components/responses/BadRequest'
19182+
"401":
19183+
$ref: '#/components/responses/Unauthorized'
19184+
"403":
19185+
$ref: '#/components/responses/Forbidden'
19186+
"404":
19187+
$ref: '#/components/responses/NotFound'
1918819188
/api/v4/sharedchannels/users/{user_id}/can_dm/{other_user_id}:
1918919189
get:
1919019190
tags:
@@ -21315,9 +21315,9 @@ paths:
2131521315
first_page_ascending:
2131621316
summary: First page, ascending order
2131721317
value:
21318-
per_page: 100
2131921318
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2132021319
cursor: ""
21320+
per_page: 100
2132121321
subsequent_page:
2132221322
summary: Subsequent page using cursor
2132321323
value:
@@ -21329,15 +21329,15 @@ paths:
2132921329
value:
2133021330
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2133121331
cursor: ""
21332-
start_time: 1635638400000
2133321332
per_page: 100
21333+
start_time: 1635638400000
2133421334
descending_order:
2133521335
summary: Descending order from recent
2133621336
value:
21337-
cursor: ""
21337+
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2133821338
per_page: 100
21339+
cursor: ""
2133921340
sort_direction: desc
21340-
channel_id: 4xp9fdt77pncbef59f4k1qe83o
2134121341
responses:
2134221342
"200":
2134321343
description: Posts retrieved successfully
@@ -21381,9 +21381,9 @@ paths:
2138121381
value:
2138221382
posts:
2138321383
post_id_99:
21384-
create_at: 1635724800000
2138521384
id: post_id_99
2138621385
message: Last post
21386+
create_at: 1635724800000
2138721387
"400":
2138821388
$ref: '#/components/responses/BadRequest'
2138921389
"401":
@@ -26265,12 +26265,12 @@ components:
2626526265
description: Additional attributes for the property field (options for select fields, visibility, etc.).
2626626266
additionalProperties: true
2626726267
example:
26268-
visibility: when_set
26269-
sortOrder: 1
2627026268
options:
2627126269
- color: '#ff0000'
2627226270
id: opt1
2627326271
name: High
26272+
visibility: when_set
26273+
sortOrder: 1
2627426274
PropertyFieldPatch:
2627526275
type: object
2627626276
properties:

0 commit comments

Comments
 (0)