views_update: Update an Existing View

View source: R/views.R

views_updateR Documentation

Update an Existing View

Description

Update a view by passing a new view definition object along with the view_id returned in views.open or the external_id. See the modals documentation to learn more about updating views and avoiding race conditions with the hash argument.

Usage

views_update(
  token = Sys.getenv("SLACK_TOKEN"),
  view,
  external_id = NULL,
  hash = NULL,
  view_id = NULL,
  return_response = F
)

Arguments

token

Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter.

view

A view_object.

external_id

A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.

hash

A string that represents view state to protect against possible race conditions.

view_id

A unique identifier of the view to be updated. Either view_id or external_id is required.

return_response

Whether or not to return the API call response as opposed to the response body. Defaults to FALSE (return response body)

Value

A Success Response with the Updated payload.

See Also

https://api.slack.com/methods/views.update

Other Views: view_object(), views_open(), views_publish(), views_push()


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.