Skip to content

Commit

Permalink
Documentation Slack
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias committed Dec 27, 2024
1 parent 316b59b commit b7f6934
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions plugins/modules/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,33 @@
- 'auto'
default: 'auto'
version_added: 6.1.0
upload_file:
type: dict
description:
- Specify details to upload a file to Slack. The file can include metadata such as an initial comment, alt text, snipped and title.
- See Slack's file upload API for details: U(https://api.slack.com/methods/files.getUploadURLExternal) and U(https://api.slack.com/methods/files.completeUploadExternal).
suboptions:
path:
type: str
description:
- Path to the file on the local system to upload.
required: true
initial_comment:
type: str
description:
- Optional comment to include when uploading the file.
alt_text:
type: str
description:
- Optional alternative text to describe the file.
snippet_type:
type: str
description:
- Optional snippet type for the file.
title:
type: str
description:
- Optional title for the uploaded file.
"""

EXAMPLES = r"""
Expand Down Expand Up @@ -262,6 +289,7 @@
initial_comment: ''
alt_text: ''
snippet_type: ''
title: ''
"""

import re
Expand Down

0 comments on commit b7f6934

Please sign in to comment.