diff --git a/docs/API.md b/docs/API.md index d96707e78..9ca085ecf 100644 --- a/docs/API.md +++ b/docs/API.md @@ -270,7 +270,7 @@ If JSON is present in the request's `Accept` header, the compilation results are ### `POST /api/shortener` - saves given state _forever_ to a shortlink and returns the unique id for the link The body of this post should be in the format of a -[ClientState](https://github.com/compiler-explorer/compiler-explorer/blob/main/lib/clientstate.js) Be sure that the +[ClientState](../lib/clientstate.ts) Be sure that the Content-Type of your post is application/json An example of one the easiest forms of a clientstate: