Skip to main content

Delete Campaigns

POST 

https://sailpoint.api.identitynow.com/v2025/campaigns/delete

Use this API to delete certification campaigns whose IDs are specified in the provided list of campaign IDs.

Request

Bodyrequired

IDs of the campaigns to delete.

    idsstring[]

    The ids of the campaigns to delete

    Example: ["2c9180887335cee10173490db1776c26","2c9180836a712436016a7125a90c0021"]

Responses

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

Schema
    objectobject

Authorization: oauth2

type: Personal Access Token
scopes: idn:campaign:manage
user levels: ORG_ADMIN, CERT_ADMIN
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/v2025/campaigns/delete"
method := "POST"

payload := strings.NewReader(`{
"ids": [
"2c9180887335cee10173490db1776c26",
"2c9180836a712436016a7125a90c0021"
]
}`)

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("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/v2025
Auth
Body required
{
  "ids": [
    "2c9180887335cee10173490db1776c26",
    "2c9180836a712436016a7125a90c0021"
  ]
}
ResponseClear

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