Public URLs
Point a public URL at another port
Change the port the URL serves, who may open it, or both. The label is the URL and does not change. The body is at most 4096 bytes (413). The errors this route adds are { error, code }, except that a body that is not JSON or not a JSON object, the 413, and a computer or URL that is not found carry error alone:
- 400 INVALID_BODY: the body names neither port nor access, or has a field other than port and access (named in the error, and nothing changes).
- 400 INVALID_PORT or INVALID_ACCESS: as on create.
- 404 PUBLIC_URLS_DISABLED: public URLs are not enabled here.
- 409 WORKSPACE_MOVING: a change of this computer’s workspace is unsettled, with reason as on create.
Requires the member role or higher.
patch/computers/{id}/public-urls/{urlId}
Request
- Base URL: https://app.mandala.computer/api/v1
- URL: https://app.mandala.computer/api/v1/computers/{id}/public-urls/{urlId}
- Auth: HTTP bearer
Path parameters
idstring required
The computer id.
urlIdstring required
A public URL id from GET /computers/{id}/public-urls (pu- followed by 16 hex characters).
Request body
Response
The URL as stored.
Changes
No recorded changes to this operation across all 1 revision of this API.