Delete Target Credential
curl --request DELETE \
--url https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Credentials
Delete Target Credential
DELETE
/
v1
/
targets
/
{target_id}
/
credentials
/
{credential_id}
Delete Target Credential
curl --request DELETE \
--url https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mindfort.app/v1/targets/{target_id}/credentials/{credential_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Was this page helpful?
⌘I