Skip to main content

Reject Access Request Approval

POST 

https://sailpoint.api.identitynow.com/v2025/access-request-approvals/:approvalId/reject

Use this API to reject an access request approval. Only the owner of the approval and admin users are allowed to perform this action.

Request

Path Parameters

    approvalId stringrequired

    Approval ID.

    Example: 2c91808b7294bea301729568c68c002e

Bodyrequired

Reviewer's comment.

    commentstringnullable

    Comment content.

    Example: This is a comment.
    createddate-time

    Date and time comment was created.

    Example: 2017-07-11T18:45:37.098Z

Responses

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

Schema
    objectobject

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/v2025/access-request-approvals/:approvalId/reject"
method := "POST"

payload := strings.NewReader(`{
"comment": "This is a comment.",
"created": "2017-07-11T18:45:37.098Z"
}`)

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
Parameters
— pathrequired
Body required
{
  "comment": "This is a comment.",
  "created": "2017-07-11T18:45:37.098Z"
}
ResponseClear

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