What adding a script to your library would add, and anything that stops it
/library/{author}/{slug}/requirements- Base URL
https://api.chartnaut.com/v1- Auth
- Bearer key
- Operation ID
getLibraryRequirements
The app's "Add to library" dialog as data. Changes nothing. confirm is exactly what to send
to addToLibrary once the person agrees. A study's root.status is not_installable.
@N in the path is refused (400).
Path parameters#
authorstringRequiredThe author's username (or me / chartnaut where allowed), in any letter case.
slugstringRequiredThe script's slug. No @N; a library entry is the live script.
Query parameters#
kindstring · ScriptKindWhen the author has more than one script with that slug.
Responses#
200OKapplication/json
The requirements.
Show fields
refstringRequirednamestringRequiredauthorstringLowercase username, or chartnaut. Omitted on a requirements root.
installable: adding the root adds it. installed: already in your library. owned: yours.
builtin: Chartnaut's. unavailable: not shared with you. not_installable: a study root.
Every dependency the caller can have, at its status. Only installable ones are added.
Show item fields
refstringRequirednamestringRequiredauthorstringLowercase username, or chartnaut. Omitted on a requirements root.
installable: adding the root adds it. installed: already in your library. owned: yours.
builtin: Chartnaut's. unavailable: not shared with you. not_installable: a study root.
Dependencies not shared with the caller. Any one refuses the add.
Show item fields
kindstringRequirednamestringRequiredtruncatedbooleanRequiredThe walk stopped at 200 scripts; needs is a prefix.
confirmarray of stringRequiredThe refs to send as confirm to addToLibrary.
messagestringRequiredThe app's wording for the situation, to show the person.
400Bad requestapplication/json
invalid_request: the path is not /library/{author}/{slug}, has @N, or kind is not valid.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring404Not foundapplication/json
not_found: no script by that author and slug the caller can see.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring409Conflictapplication/json
conflict: more than one script with that slug. Pass kind.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstringErrorAny other statusapplication/json
Error.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring