update_label
Modify existing Gmail labels by changing their name, visibility settings, or color scheme to better organize and categorize your email messages.
Instructions
Update an existing label
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the label to update | |
| name | No | The display name of the label | |
| messageListVisibility | No | The visibility of messages with this label in the message list | |
| labelListVisibility | No | The visibility of the label in the label list | |
| color | No | The color settings for the label |
Input Schema (JSON Schema)
{
"properties": {
"color": {
"additionalProperties": false,
"description": "The color settings for the label",
"properties": {
"backgroundColor": {
"description": "The background color of the label as hex string",
"type": "string"
},
"textColor": {
"description": "The text color of the label as hex string",
"type": "string"
}
},
"required": [
"textColor",
"backgroundColor"
],
"type": "object"
},
"id": {
"description": "The ID of the label to update",
"type": "string"
},
"labelListVisibility": {
"description": "The visibility of the label in the label list",
"enum": [
"labelShow",
"labelShowIfUnread",
"labelHide"
],
"type": "string"
},
"messageListVisibility": {
"description": "The visibility of messages with this label in the message list",
"enum": [
"show",
"hide"
],
"type": "string"
},
"name": {
"description": "The display name of the label",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
}