Skip to main content

Approve Access Request Approval

POST 

https://sailpoint.api.identitynow.com/v3/access-request-approvals/:approvalId/approve

Use this endpoint to approve an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action.

Request

Path Parameters

    approvalId stringrequired

    Approval ID.

    Example: 2c91808b7294bea301729568c68c002e

Body

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: idn:access-request-approvals:read
user levels: ORG_ADMIN, APPROVAL_OWNER
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/v3/access-request-approvals/:approvalId/approve"
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/v3
Auth
Parameters
— pathrequired
Body
{
  "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!