Skip to main content

 Services

Web services from /about to /webhooks

Merge externalURI

/members/{member}/externaluris/{uri}/merge [POST]

Description

Merge an external URI into this one.

Moves the specified URL's current incoming links (reverse xrefs) and unarchived discussions to this external URI and archives the URL. This can be useful to merge a http URL into its corresponding https URL.

Parameters

NameDescriptionRequiredTypeDefault value
urlthe URL to move links/discussions fromyesurl

Permission

This service requires contributor or higher in a group with edit all URLs permission.

Response

The output has the following format where @links and @discussions are the number of links and discussions that were moved:

 <uri-merge links="12" discussions="23">
   <uri id="[id]" path="[path]" ...>
     <displaytitle>[title]</displaytitle>
     ...
   </uri>
 </uri-merge>

Error handling

Error codes
CodeCause / Description
0x1213URI not found
0x1240The URI is not external
0x1241A URL cannot be merged with itself
Created on , last edited on