Learn R Programming

gmailr (version 0.5.0)

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://tools.ietf.org/html/rfc5789{HTTP PATCH} to allow partial update.

Usage

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

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/v1/reference/users/labels/update

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