commands

Create a command

Create a command for a team.

Permissions

manage_slash_commands for the team the command is in.

post/api/v4/commands

Request body

team_idstring required

Team ID to where the command should be created

methodstring required

'P' for post request, 'G' for get request

triggerstring required

Activation word to trigger the command

urlstring required

The URL that the command will make the request

Response

Command creation successful

idstring

The ID of the slash command

tokenstring

The token which is used to verify the source of the payload

create_atinteger

The time in milliseconds the command was created

update_atinteger

The time in milliseconds the command was last updated

delete_atinteger

The time in milliseconds the command was deleted, 0 if never deleted

creator_idstring

The user id for the commands creator

team_idstring

The team id for which this command is configured

triggerstring

The string that triggers this command

methodstring

Is the trigger done with HTTP Get ('G') or HTTP Post ('P')

usernamestring

What is the username for the response post

icon_urlstring

The url to find the icon for this users avatar

auto_completeboolean

Use auto complete for this command

auto_complete_descstring

The description for this command shown when selecting the command

auto_complete_hintstring

The hint for this command

display_namestring

Display name for the command

descriptionstring

Description for this command

urlstring

The URL that is triggered

Changes

No recorded changes to this endpoint across all 1 revision of this API.