Unlink a login credential
curl --request DELETE \
--url https://api.pid.peridotvault.com/v1/identity/credentials/{id} \
--cookie pid_access=const options = {method: 'DELETE', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/identity/credentials/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/identity/credentials/{id}"
headers = {"cookie": "pid_access="}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/identity/credentials/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 400,
"message": "Kamu butuh minimal satu credential untuk login"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}identity
Unlink a login credential
Removes a credential from the current identity. Fails with 400 when it is the
identity’s last credential — every identity must keep at least one way to log in.
DELETE
/
identity
/
credentials
/
{id}
Unlink a login credential
curl --request DELETE \
--url https://api.pid.peridotvault.com/v1/identity/credentials/{id} \
--cookie pid_access=const options = {method: 'DELETE', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/identity/credentials/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/identity/credentials/{id}"
headers = {"cookie": "pid_access="}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/identity/credentials/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 400,
"message": "Kamu butuh minimal satu credential untuk login"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}