Google Drive

GOOGLEDRIVE_FILES_MODIFY_LABELS

Modifies the set of labels applied to a file. returns a list of the labels that were added or modified. use when you need to programmatically change labels on a google drive file, such as adding, updating, or removing them.

Remote googledrive

Other tools also called GOOGLEDRIVE_FILES_MODIFY_LABELS? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "title": "Kind",
      "default": "drive#modifyLabelsRequest",
      "nullable": true,
      "description": "This is always drive#modifyLabelsRequest."
    },
    "file_id": {
      "type": "string",
      "title": "File Id",
      "description": "The ID of the file."
    },
    "label_modifications": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "LabelModification",
        "required": [
          "label_id"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "drive#labelModification",
            "nullable": true,
            "description": "This is always drive#labelModification."
          },
          "label_id": {
            "type": "string",
            "title": "Label Id",
            "description": "The ID of the label to modify."
          },
          "remove_label": {
            "type": "boolean",
            "title": "Remove Label",
            "default": null,
            "nullable": true,
            "description": "If true, the label will be removed from the file."
          },
          "field_modifications": {
            "type": "array",
            "items": {
              "type": "object",
              "title": "FieldModification",
              "required": [
                "field_id"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "title": "Kind",
                  "default": "drive#labelFieldModification",
                  "nullable": true,
                  "description": "This is always drive#labelFieldModification."
                },
                "field_id": {
                  "type": "string",
                  "title": "Field Id",
                  "description": "The ID of the field to be modified."
                },
                "unset_values": {
                  "type": "boolean",
                  "title": "Unset Values",
                  "default": null,
                  "nullable": true,
                  "description": "Unsets the values for this field."
                },
                "set_date_values": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "properties": {}
                  },
                  "title": "Set Date Values",
                  "default": null,
                  "examples": [
                    "2023-10-26"
                  ],
                  "nullable": true,
                  "description": "Replaces the value of a `date` field with these new values. The string must be in the RFC 3339 full-date format: YYYY-MM-DD."
                },
                "set_text_values": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "properties": {}
                  },
                  "title": "Set Text Values",
                  "default": null,
                  "nullable": true,
                  "description": "Sets the value of a `text` field."
                },
                "set_user_values": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "properties": {}
                  },
                  "title": "Set User Values",
                  "default": null,
                  "nullable": true,
                  "description": "Replaces a `user` field with these new values. The values must be valid email addresses."
                },
                "set_integer_values": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "properties": {}
                  },
                  "title": "Set Integer Values",
                  "default": null,
                  "nullable": true,
                  "description": "Replaces the value of an `integer` field with these new values."
                },
                "set_selection_values": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "properties": {}
                  },
                  "title": "Set Selection Values",
                  "default": null,
                  "nullable": true,
                  "description": "Replaces a `selection` field with these new values."
                }
              }
            },
            "title": "Field Modifications",
            "default": null,
            "nullable": true,
            "description": "The list of modifications to this label's fields."
          }
        }
      },
      "title": "Label Modifications",
      "description": "The list of modifications to apply to the labels on the file."
    }
  }
}