Skip to main content

Delete Multiple Non-Employee Records

POST 

https://sailpoint.api.identitynow.com/v2024/non-employee-records/bulk-delete

This request will delete multiple non-employee records based on the non-employee ids provided. Requires role context of idn:nesr:delete

Request

Bodyrequired

Non-Employee bulk delete request body.

    idsuuid[]required

    List of non-employee ids.

    Example: ["2b838de9-db9b-abcf-e646-d4f274ad4238","2d838de9-db9b-abcf-e646-d4f274ad4238"]

Responses

No content - indicates the request was successful but there is no content to be returned in the response.

Authorization: oauth2

type: Personal Access Token
scopes: sp:scopes:all
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://sailpoint.api.identitynow.com/v2024/non-employee-records/bulk-delete"
method := "POST"

payload := strings.NewReader(`{
"ids": [
"2b838de9-db9b-abcf-e646-d4f274ad4238",
"2d838de9-db9b-abcf-e646-d4f274ad4238"
]
}`)

client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/v2024
Auth
Body required
{
  "ids": [
    "2b838de9-db9b-abcf-e646-d4f274ad4238",
    "2d838de9-db9b-abcf-e646-d4f274ad4238"
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!