pin_update
/api/v0/pin/update
Update a recursive pin.
REQUEST
- Syntax
- Example
curl "https://ipfs.infura.io:5001/api/v0/pin/update?arg=<from-path>&arg=<to-path>&unpin=true" \
-X POST \
-u "<API_KEY>:<API_KEY_SECRET>"
curl "https://ipfs.infura.io:5001/api/v0/pin/update?arg=QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM&arg=QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn" \
-X POST \
-u "PROJECT_ID:PROJECT_SECRET"
REQUEST PARAMS
arg
[Required] - Path to old object.arg
[Required] - Path to a new object to be pinned.unpin
[Optional] - Remove the old pin. The default istrue.
RESPONSE
On success, the call to this endpoint returns with 200 and the following body:
BODY
{
"Pins": [
"string"
]
}