Skip to main content

Unsubscribe a recipient from Scheduled Search

POST 

https://sailpoint.api.identitynow.com/v2024/scheduled-searches/:id/unsubscribe

Unsubscribes a recipient from the specified scheduled search.

Request

Path Parameters

    id stringrequired

    ID of the requested document.

    Example: 2c91808568c529c60168cca6f90c1313

Bodyrequired

The recipient to be removed from the scheduled search.

    typestringrequired

    An enumeration of the types of DTOs supported within the IdentityNow infrastructure.

    Possible values: [ACCOUNT_CORRELATION_CONFIG, ACCESS_PROFILE, ACCESS_REQUEST_APPROVAL, ACCOUNT, APPLICATION, CAMPAIGN, CAMPAIGN_FILTER, CERTIFICATION, CLUSTER, CONNECTOR_SCHEMA, ENTITLEMENT, GOVERNANCE_GROUP, IDENTITY, IDENTITY_PROFILE, IDENTITY_REQUEST, MACHINE_IDENTITY, LIFECYCLE_STATE, PASSWORD_POLICY, ROLE, RULE, SOD_POLICY, SOURCE, TAG, TAG_CATEGORY, TASK_RESULT, REPORT_RESULT, SOD_VIOLATION, ACCOUNT_ACTIVITY, WORKGROUP]

    Example: IDENTITY
    idstringrequired

    The id of the object.

    Example: 2c91808568c529c60168cca6f90c1313

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/scheduled-searches/:id/unsubscribe"
method := "POST"

payload := strings.NewReader(`{
"type": "IDENTITY",
"id": "2c91808568c529c60168cca6f90c1313"
}`)

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
Parameters
— pathrequired
Body required
{
  "type": "IDENTITY",
  "id": "2c91808568c529c60168cca6f90c1313"
}
ResponseClear

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