---
title: "Update a portal menu link"
method: PUT
path: "/ui/portal-menu-links/{portalMenuLinkId}"
tags: ["Management UI"]
---

# Update a portal menu link

`PUT /ui/portal-menu-links/{portalMenuLinkId}`

## Request

- Base URL: `/management/v2/environments/DEFAULT` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/management/v2/environments/DEFAULT/ui/portal-menu-links/{portalMenuLinkId}`
- Auth: none declared

Update a portal menu link.
For an EXTERNAL link, provide a name, a target and an order.

User must have the ENVIRONMENT_SETTINGS[UPDATE] permission.

## Request body

- UpdatePortalMenuLink
  - `name` string: Displayed name of the menu link
  - `target` string: target of the menu link
  - `visibility` 'PUBLIC' | 'PRIVATE': visibility of the menu link
  - `order` integer: The order of the menu link.

## Response `200`

The updated portal menu link

- PortalMenuLink
  - `id` string, required: Portal menu link id
  - `name` string, required: Displayed name of the menu link
  - `type` 'EXTERNAL', required: type of the menu link
  - `target` string: target of the menu link
  - `visibility` 'PUBLIC' | 'PRIVATE': visibility of the menu link
  - `order` integer, required: The order of the menu link.

## Other responses

- `default`: Generic error response

## Changes

- **2024-08-30** `3375d6eeea70`: 2 info
  - added the new optional request property `visibility`
  - added the optional property `visibility` to the response with the `200` status
- **2024-08-26** `0bfd3b0b2723`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui/changes/ui/portal-menu-links/:portalMenuLinkId/put.md)

---

[API](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui.md) - [All operations](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui/llms.txt) - [OpenAPI document](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-ui/revisions/6e3899b14406?raw)
