Browse the docs

POST /clipboard/named/{name}

Renames a named clipboard, replaces its text, or makes one from text.

Details #

The body is {"name": "new name"} to rename, {"text": "..."} to replace the text, or both. With only text and no clipboard of that name, one is made. A name that is already taken is a 400.

curl -s -X POST -H "Authorization: Bearer $TOKEN" -d '{"name": "signature"}' http://127.0.0.1:48080/clipboard/named/sig

Parameters #

curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X POST http://localhost/clipboard/named/{name}

Rename a named clipboard, replace its text, or make one from text. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.

See also #