Skip to main content

Reset Source Entitlements

POST 

https://sailpoint.api.identitynow.com/beta/entitlements/reset/sources/:sourceId

Remove all entitlements from a specific source. To reload the accounts along with the entitlements you removed, you must run an unoptimized aggregation. To do so, use Import Accounts with disableOptimization = true.

Request

Path Parameters

    sourceId stringrequired

    ID of source for the entitlement reset

Responses

Entitlement source reset task result

Schema
    typestring

    The DTO type

    Example: TASK_RESULT
    idstring

    The task ID of the object to which this reference applies

    Example: 2c91808568c529c60168cca6f90c1313
    namestring

    Human-readable display name of the object to which this reference applies

    Example: Entitlement Source Reset

Authorization: oauth2

type: Personal Access Token
scopes: idn:entitlement:update
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/beta/entitlements/reset/sources/:sourceId"
method := "POST"

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/beta
Auth
Parameters
— pathrequired
ResponseClear

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