Skip to main content

pin_update

/api/v0/pin/update

Update a recursive pin.

Request

curl "https://ipfs.infura.io:5001/api/v0/pin/update?arg=<from-path>&arg=<to-path>&unpin=true" \
-X POST \
-u "<YOUR-API-KEY>:<YOUR-API-KEY-SECRET>"

Request parameters

  • arg [Required] - Path to old object.
  • arg [Required] - Path to a new object to be pinned.
  • unpin [Optional] - Remove the old pin. The default is true.

Response

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

Body

{
"Pins": [
"string"
]
}