gm_create_label: Create a new label

View source: R/gm_label.R

gm_create_labelR Documentation

Create a new label

Description

Function to create a label.

Usage

gm_create_label(
  name,
  label_list_visibility = c("show", "hide", "show_unread"),
  message_list_visibility = c("show", "hide"),
  user_id = "me"
)

Arguments

name

name to give to the new label

label_list_visibility

The visibility of the label in the label list in the Gmail web interface.

message_list_visibility

The visibility of messages with this label in the message list in the Gmail web interface.

user_id

gmail user_id to access, special value of 'me' indicates the authenticated user.

References

https://developers.google.com/gmail/api/reference/rest/v1/users.labels/create

See Also

Other label: gm_delete_label(), gm_labels(), gm_label(), gm_update_label()


r-lib/gmailr documentation built on Nov. 5, 2023, 6:22 a.m.