Skip to Content
Update long URL for existing short code

Source: Jolli-sample-repos/url-shortener  Last Updated: 4/8/2026


import MethodEndpoint from “@theme/ApiExplorer/MethodEndpoint”; import ParamsDetails from “@theme/ParamsDetails”; import RequestSchema from “@theme/RequestSchema”; import StatusCodes from “@theme/StatusCodes”; import OperationTabs from “@theme/OperationTabs”; import TabItem from “@theme/TabItem”; import Heading from “@theme/Heading”;

<Heading as={“h1”} className={“openapi__heading”} children={“Update long URL for existing short code”}

</Heading>

<MethodEndpoint method={“put”} path={“/api/v1/urls/{shortCode}”} context={“endpoint”}

</MethodEndpoint>

Update long URL for existing short code

<Heading id={“request”} as={“h2”} className={“openapi-tabs__heading”} children={“Request”}

</Heading>

<ParamsDetails parameters={[{“in”:“path”,“name”:“shortCode”,“required”:true,“schema”:{“type”:“string”}}]}

</ParamsDetails>

<RequestSchema title={“Body”} body={{“required”:true,“content”:{“application/json”:{“schema”:{“type”:“object”,“required”:[“longUrl”],“properties”:{“longUrl”:{“type”:“string”,“format”:“uri”}}}}}}}

</RequestSchema>

<StatusCodes id={undefined} label={undefined} responses={{“200”:{“description”:“URL updated”},“404”:{“description”:“Not found”}}}

</StatusCodes>