# Change a short link (/en/reference/links/update-link)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "updateLink",
    "tags": [
      "Links"
    ],
    "summary": "Change a short link",
    "description": "A new destination applies at once. enabled: false stops the redirect until turned on again. The code cannot change. A link Tebar blocked cannot be changed (403 link_blocked).\n\nRequires the write scope.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/UpdateLinkRequest"
          }
        }
      }
    },
    "responses": {
      "200": {
        "description": "The link.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Link"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```