Skip to main content

Delete Source by ID

DELETE 

https://sailpoint.api.identitynow.com/v3/sources/:id

Use this API to delete a specific source in Identity Security Cloud (ISC). The API removes all the accounts on the source first, and then it deletes the source. You can retrieve the actual task execution status with this method: GET /task-status/{id}

Request

Path Parameters

    id stringrequired

    Source ID.

    Example: 2c9180835d191a86015d28455b4a2329

Responses

Accepted - Returned if the request was successfully accepted into the system.

Schema
    typestring

    Type of object being referenced.

    Possible values: [TASK_RESULT]

    Example: TASK_RESULT
    idstring

    Task result ID.

    Example: 2c91808779ecf55b0179f720942f181a
    namestring

    Task result's human-readable display name (this should be null/empty).

    Example: null

Authorization: oauth2

type: Personal Access Token
scopes: idn:sources:manage
user levels: ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/v3/sources/:id"
method := "DELETE"

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

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "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/v3
Auth
Parameters
— pathrequired
ResponseClear

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