# Update a short link (/zh/growsocmed/docs/api-reference/links/update-link)

Change the target or title, or turn the link off and on

PATCH /links/{id}

```json
{
  "tags": [
    "Links"
  ],
  "summary": "Update a short link",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true,
      "name": "id",
      "in": "path"
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            "title": {
              "type": [
                "string",
                "null"
              ],
              "maxLength": 120
            },
            "status": {
              "type": "string",
              "enum": [
                "active",
                "disabled"
              ]
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {}
        }
      }
    }
  },
  "operationId": "update-link",
  "description": "Change the target or title, or turn the link off and on"
}
```