Update an external link in a site's navigation
A unique entity identifier
^[a-zA-Z0-9_-]+$The unique id of the site
The unique ID of the site external link
Control whether a successful response includes the updated resource representation.
Title of the site section
Description of the site section
Name of the icon
gearAbsolute HTTP or HTTPS destination URL
ID of the section group to move the link into. Set to null to move it to the site root.
Whether the external link should be kept in draft mode
Adaptive condition controlling whether visitors see the link
External link updated
The object type, which is always "site-external-link"
Unique identifier of the external link
Title of the site section
Description of the site section
Name of the icon
gearAbsolute HTTP or HTTPS URL opened by the external link
ID of the section group the external link belongs to. Omitted for a root link.
Whether the external link is draft and not live
Conditional expression used to evaluate whether the external link should be shown to the site's visitor
External link updated without returning its representation
The parent group or destination URL is invalid
Site or external link not found
Unexpected Error
PATCH /v1/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"title": "text",
"localizedTitle": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"description": "text",
"localizedDescription": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"icon": "gear",
"url": "https://example.com",
"parent": "text",
"draft": true,
"condition": "text"
}{
"object": "site-external-link",
"id": "text",
"title": "text",
"localizedTitle": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"description": "text",
"localizedDescription": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"icon": "gear",
"url": "https://example.com",
"sectionGroup": "text",
"draft": true,
"condition": "text"
}Last updated
Was this helpful?