This allows Pin status to be updated. The weightage for this API is 10
This allows Pin status to be updated to false under the given instance.
{
"Data": null,
"Message": "pin status updated successfully",
"Status": "SUCCESS"
}
Take a look at how you might call this method using our official libraries, or via curl
:
curl --location --request POST 'https://api.krypcore.com/api/v0/storagemanageripfs/updatePinStatus' \
--header 'Authorization: xxxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string"
}'
var axios = require('axios');
var data = JSON.stringify({
"id": "string"
});
var config = {
method: 'post',
url: 'https://api.krypcore.com/api/v0/storagemanageripfs/updatePinStatus',
headers: {
'Authorization': 'xxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
import json
url = "https://api.krypcore.com/api/v0/storagemanageripfs/updatePinStatus"
payload = json.dumps({
"id": "string"
})
headers = {
'Authorization': 'xxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.krypcore.com/api/v0/storagemanageripfs/updatePinStatus"
method := "POST"
payload := strings.NewReader(`{
"id": "string"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "xxxxxxxxxxxxxxx")
req.Header.Add("DappId", "xxxxxxxxxxxxxxx")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}