gm_update_label {gmailr}R Documentation

Update a existing label.

Description

Get a specific label by id and user_id. gm_update_label_patch() is identical to gm_update_label() but the latter uses HTTP PATCH to allow partial update.

Usage

gm_update_label(id, label, user_id = "me")

gm_update_label_patch(id, label, user_id = "me")

Arguments

id

label id to update

label

the label fields to update

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/update

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

See Also

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

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


[Package gmailr version 2.0.0 Index]