addedOutput schema / properties / result / items / properties / file
Added value: +{
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "description": "Uploaded file metadata.\n\nNote: Go source uses CreatorId field name, but JSON response uses \"user_id\".\n\nSee: https://github.com/mattermost/mattermost/blob/master/server/public/model/file_info.go",
+ "properties": {
+ "channel_id": {
+ "description": "Channel where file was uploaded",
+ "type": "string"
+ },
+ "create_at": {
+ "description": "Upload timestamp in milliseconds",
+ "type": "integer"
+ },
+ "delete_at": {
+ "description": "Deletion timestamp",
+ "type": "integer"
+ },
+ "extension": {
+ "description": "File extension without dot",
+ "type": "string"
+ },
+ "has_preview_image": {
+ "default": false,
+ "description": "Has generated preview",
+ "type": "boolean"
+ },
+ "height": {
+ "default": 0,
+ "description": "Image height in pixels",
+ "type": "integer"
+ },
+ "id": {
+ "description": "Unique file identifier",
+ "type": "string"
+ },
+ "mime_type": {
+ "description": "MIME type",
+ "type": "string"
+ },
+ "name": {
+ "description": "File name",
+ "type": "string"
+ },
+ "post_id": {
+ "default": "",
+ "description": "Associated post ID",
+ "type": "string"
+ },
+ "size": {
+ "description": "File size in bytes",
+ "type": "integer"
+ },
+ "update_at": {
+ "description": "Last update timestamp",
+ "type": "integer"
+ },
+ "user_id": {
+ "description": "Uploader user identifier (CreatorId in Go)",
+ "type": "string"
+ },
+ "width": {
+ "default": 0,
+ "description": "Image width in pixels",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "user_id",
+ "channel_id",
+ "create_at",
+ "update_at",
+ "delete_at",
+ "name",
+ "extension",
+ "size",
+ "mime_type"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "File metadata for file bookmarks"
+}