Skip to main content

Activate a Campaign

POST 

https://sailpoint.api.identitynow.com/v2024/campaigns/:id/activate

Use this API to submit a job to activate the certified campaign with the specified ID. The campaign must be staged.

Request

Path Parameters

    id stringrequired

    Campaign ID.

    Example: ef38f94347e94562b5bb8424a56397d8

Body

Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format.

    timeZonestring

    The timezone must be in a valid ISO 8601 format. Timezones in ISO 8601 are represented as UTC (represented as 'Z') or as an offset from UTC. The offset format can be +/-hh:mm, +/-hhmm, or +/-hh.

    Default value: Z
    Example: -05:00

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/v2024/campaigns/:id/activate"
method := "POST"

payload := strings.NewReader(`{
"timeZone": "-05:00"
}`)

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/v2024
Auth
Parameters
— pathrequired
Body
{
  "timeZone": "-05:00"
}
ResponseClear

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