views_publish: Publish a View

View source: R/views.R

views_publishR Documentation

Publish a View

Description

Create or update the view that comprises an app's Home tab for a specific user.

Usage

views_publish(
  token = Sys.getenv("SLACK_TOKEN"),
  user_id,
  view,
  hash = 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.

user_id

id of the user you want publish a view to.

view

A view_object.

hash

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

return_response

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

Value

Assuming your view object was properly formatted, valid, and the user_id was viable, you will receive a success response.

See Also

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

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


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