Update
Re-point it, rename it, publish it, put it away, or say who may
follow it. Publishing and archiving have no endpoints of their own:
"draft": false publishes a draft (and the activity feed says who
did), "draft": true takes a live link off the air, and archived
puts a link away or brings it back, each left alone if it is already
so. A domain in access.domains that is neither on the
allow-list nor already the link’s gets 422 domain_not_allowed;
editorUserIds naming anybody who is not a member of the workspace
gets 422 validation_error. With a signed-in session, only a link that person may edit (one
naming no editors, naming them, made by them, or any if they are an
app admin of Go Links); any other is 403 forbidden. A Viewer of Go
Links edits none (403 viewer_only).
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
Replaces who may change it, beside its creator and Go Links’ app
admins; empty, anybody with a seat who is not a Viewer of Go Links.
Each must be a member of the workspace, with a key as with a session:
anybody else is a 422 validation_error with
details: { field: "editorUserIds", userIds } naming them, and
nothing is saved.
False publishes a draft; true takes a live link off the air again.
Response
The bit after go/. Normalised hard on the way in: lowercase, with
spaces and underscores folded to hyphens, because the whole value
of go/roadmap is that a colleague can guess it.
The address to hand out: on the workspace’s own Go Links hostname
where it has one (https://go.acme.com/roadmap), otherwise this
installation’s /go/roadmap, which asks a member to sign in. What
the link’s QR code (qrCode) holds: the short link, never the
destination, so re-pointing the link breaks nothing printed.
Who may change it, when it is not simply anybody with a seat, beside
its creator and Go Links’ app admins, who always may. Empty means no
restriction, which is what every link is until somebody narrows it.
A Viewer of Go Links changes no link, named or not. Never affects who may follow a link: that is access.
Members of the workspace when they were named; somebody since
removed from it stays listed until the link’s editors are saved
again.
Who may follow this link on the Go Links hostname, as a Dory event’s
audience says who may join it. There is no “anyone signed in”: anybody
can make an account, so for links it would be no check at all. A link
made without saying is DOMAIN with no domains listed.
Where it goes. Null for a draft when called with a signed-in session by somebody who may not edit the link: a draft’s destination is its editors’ business. A key always sees it.