Learn R Programming

gmailr (version 1.0.1)

gm_update_label: Update a existing label.

Description

Get a specific label by id and user_id. update_label_patch is identical to 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()