Pin objects to local storage.
arg [string]: Path to object(s) to be pinned. Required: yes.
arg
recursive [bool]: Recursively pin the object linked to by the specified object(s). Default: true. Required: no.
recursive
true
name [string]: An optional name for created pin(s). Required: no.
name
progress [bool]: Show progress. Required: no.
progress
On success, the call to this endpoint will return with 200 and the following body:
{ "Pins": [ "<string>" ], "Progress": "<int>" }
curl -X POST "http://127.0.0.1:5001/api/v0/pin/add?arg=<ipfs-path>&recursive=true&name=<value>&progress=<value>"
Last updated 1 year ago