---
agentTools:
  projectIndex: https://seafile-api.readme.io/llms.txt
---

# Update snapshot label

Update the snapshot label in the history.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Account Operations - User",
    "description": "The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.",
    "version": "13.0"
  },
  "servers": [
    {
      "url": "https://{server}",
      "variables": {
        "server": {
          "default": "cloud.seafile.com"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "metrics-enabled": false,
    "proxy-enabled": false
  },
  "components": {
    "securitySchemes": {
      "AccountTokenAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This is the [Account-Token](/reference/authentication)."
      }
    },
    "schemas": {
      "commit_id": {
        "type": "string",
        "description": "Unique identification of the operation",
        "example": "b1a33768517f65ac7d618ff078dd27855374c7e0"
      },
      "tag_names": {
        "type": "string",
        "description": "Separate multiple label names with commas (,)",
        "example": "v2.1,v2.2"
      },
      "repo_id": {
        "type": "string",
        "description": "The unique identifier of a library",
        "example": "d5620899-1e9b-4a8c-b9af-b00a26324407"
      }
    }
  },
  "paths": {
    "/api/v2.1/revision-tags/tagged-items/": {
      "put": {
        "tags": [
          "Snapshot label"
        ],
        "summary": "Update snapshot label",
        "description": "Update the snapshot label in the history.",
        "security": [
          {
            "AccountTokenAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "repo_id": {
                    "$ref": "#/components/schemas/repo_id"
                  },
                  "commit_id": {
                    "$ref": "#/components/schemas/commit_id",
                    "description": "default is head commit if commit_id is empty"
                  },
                  "tag_names": {
                    "$ref": "#/components/schemas/tag_names"
                  }
                },
                "required": [
                  "repo_id",
                  "tag_names"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revisionTags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "Tag info",
                        "properties": {
                          "tag": {
                            "type": "string"
                          },
                          "tag_creator": {
                            "type": "string"
                          },
                          "revision": {
                            "type": "object",
                            "description": "revision info",
                            "properties": {
                              "repo_id": {
                                "type": "string"
                              },
                              "commit_id": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "contact_email": {
                                "type": "string"
                              },
                              "time": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "link": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "example": {
                    "revisionTags": [
                      {
                        "tag": "v5",
                        "tag_creator": "77a423e4804a4d7ca1ec78a150d71229@auth.local",
                        "revision": {
                          "repo_id": "4e6ff511-deb2-4373-8377-c0ce247e6387",
                          "commit_id": "c817a1b23786f67f853c534d5fec046f61a7067d",
                          "email": "77a423e4804a4d7ca1ec78a150d71229@auth.local",
                          "name": "Seafile",
                          "contact_email": "Seafile@example.com",
                          "time": "2024-03-13T15:38:33+08:00",
                          "description": "Added directory \"test\"",
                          "link": "/repo/history/view/4e6ff511-deb2-4373-8377-c0ce247e6387/?commit_id=c817a1b23786f67f853c534d5fec046f61a7067d"
                        }
                      },
                      {
                        "tag": "v6",
                        "tag_creator": "77a423e4804a4d7ca1ec78a150d71229@auth.local",
                        "revision": {
                          "repo_id": "4e6ff511-deb2-4373-8377-c0ce247e6387",
                          "commit_id": "c817a1b23786f67f853c534d5fec046f61a7067d",
                          "email": "77a423e4804a4d7ca1ec78a150d71229@auth.local",
                          "name": "Seafile",
                          "contact_email": "Seafile@example.com",
                          "time": "2024-03-13T15:38:33+08:00",
                          "description": "Added directory \"test\"",
                          "link": "/repo/history/view/4e6ff511-deb2-4373-8377-c0ce247e6387/?commit_id=c817a1b23786f67f853c534d5fec046f61a7067d"
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 183,
      "2": 248,
      "3": 230,
      "4": 103,
      "5": 20,
      "6": 160,
      "7": 0,
      "8": 41,
      "9": 50,
      "10": 176,
      "11": 71
    }
  }
}
```