pin_update

/api/v0/pin/update

Update a recursive pin.
Request must be authenticated.

REQUEST

1
POST "https://ipfs.infura.io:5001/api/v0/pin/update?arg=<from-path>&arg=<to-path>&unpin=true"
Copied!

REQUEST PARAMS

  • arg [Required] - Path to old object.
  • arg [Required] - Path to a new object to be pinned.
  • unpin: Remove the old pin. Defaults to true.

EXAMPLE

1
// POST
2
curl -X POST "https://ipfs.infura.io:5001/api/v0/pin/update?arg=<from-path>&arg=<to-path>&unpin=true" -u "<ProjectID>:<ProjectSecret>"
Copied!

RESPONSE

On success, the call to this endpoint returns with 200 and the following body:

BODY

1
{
2
"Pins": [
3
"string"
4
]
5
}
Copied!
Last modified 3mo ago