Sample - Slack Web API
POST/stars.remove

Remove a star from an item

Removes a star from a message, channel, file, or file comment. Supply an authentication token with the stars:write scope and identify the item using the applicable target fields. The request succeeds only when the item is currently starred.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 4 body fields
tokenstringrequired
Authentication token with the `stars:write` scope.

Form-encoded fields identifying the item from which to remove the star.

channelstringoptional
Channel to remove star from, or channel where the message to remove star from was posted (used with `timestamp`).
filestringoptional
File to remove star from.
file_commentstringoptional
File comment to remove star from.
timestampstringoptional
Timestamp of the message to remove star from.

2 status codes
200Returns an object with `ok` set to true when the star is removed.
okbooleanrequired
Allowed:true
defaultReturns an error object with `ok` set to false and an `error` value describing why the star could not be removed.
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:bad_timestampmessage_not_foundfile_not_foundfile_comment_not_foundchannel_not_foundno_item_specifiednot_starrednot_authedinvalid_authaccount_inactivetoken_revokedno_permission
okbooleanrequired
Allowed:false

Error handling

Supply token with the stars:write scope and provide an item target through channel, timestamp, file, or file_comment. The target must identify an existing starred message, channel, file, or file comment.