Skip to main content

Approvals

Use this API to implement approval functionality. With this functionality in place, you can get generic approvals and modify them.

The main advantages this API has vs Access Request Approvals are that you can use it to get generic approvals individually or in batches and make changes to those approvals.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
Approve-ApprovalInBulkV1POST /generic-approvals/v1/bulk-approvePost Bulk Approve Approvals
Approve-ApprovalV1POST /generic-approvals/v1/{id}/approvePost Approvals Approve
Suspend-ApprovalByIdV1POST /generic-approvals/v1/{id}/cancelPost Approval Cancel
Suspend-ApprovalV1POST /generic-approvals/v1/bulk-cancelPost Bulk Cancel Approvals
Remove-ApprovalConfigRequestV1DELETE /generic-approvals/v1/config/{id}/{scope}Delete Approval Configuration
Get-ApprovalV1GET /generic-approvals/v1/{id}Get an approval
Get-ApprovalsConfigV1GET /generic-approvals/v1/config/{id}Get Approval Config
Get-ApprovalsV1GET /generic-approvals/v1Get approvals
Move-ApprovalV1POST /generic-approvals/v1/bulk-reassignPost Bulk Reassign Approvals
Send-ApprovalsConfigV1PUT /generic-approvals/v1/config/{id}/{scope}Put Approval Config
Deny-ApprovalInBulkV1POST /generic-approvals/v1/bulk-rejectPost Bulk Reject Approvals
Deny-ApprovalV1POST /generic-approvals/v1/{id}/rejectPost Approvals Reject
Update-ApprovalsAttributesV1POST /generic-approvals/v1/{id}/attributesPost Approvals Attributes
Update-ApprovalsCommentsV1POST /generic-approvals/v1/{id}/commentsPost Approvals Comments
Update-ApprovalsReassignV1POST /generic-approvals/v1/{id}/reassignPost Approvals Reassign

approve-approval-in-bulk-v1

Bulk Approves specified approval requests on behalf of the caller

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyBulkapproverequestdtoBulkapproverequestdtoTrue

Return type

SystemCollectionsHashtable

Responses

CodeDescriptionData Type
202Accepted - Returned if the request was successfully accepted into the system.SystemCollectionsHashtable
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Bulkapproverequestdto = @""@

# Post Bulk Approve Approvals

try {
$Result = ConvertFrom-JsonToBulkapproverequestdto -Json $Bulkapproverequestdto
Approve-ApprovalInBulkV1 -Bulkapproverequestdto $Result

# Below is a request that includes all optional parameters
# Approve-ApprovalInBulkV1 -Bulkapproverequestdto $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Approve-ApprovalInBulkV1"
Write-Host $_.ErrorDetails
}

[Back to top]

approve-approval-v1

Approves a specified approval request on behalf of the caller. The approval request must be in a state that allows it to be approved. This endpoint does not support access request IDs. If called by an admin and the admin is not listed as an approver, the approval request will be reassigned from a random approver to the admin user.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueApproval ID that correlates to an existing approval request that a user wants to approve.
BodyApprovalapproverequestApprovalapproverequest(optional)

Return type

Approval2

Responses

CodeDescriptionData Type
200Approval objectApproval2
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | Approval ID that correlates to an existing approval request that a user wants to approve.
$Approvalapproverequest = @""@

# Post Approvals Approve

try {
Approve-ApprovalV1 -Id $Id

# Below is a request that includes all optional parameters
# Approve-ApprovalV1 -Id $Id -Approvalapproverequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Approve-ApprovalV1"
Write-Host $_.ErrorDetails
}

[Back to top]

cancel-approval-by-id-v1

Cancels a specified approval requests on behalf of the caller. Note: This endpoint does not support access request IDs. To cancel access request approvals, please use the following: /access-requests/cancel

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueID of the approval request to cancel.
BodyApprovalcancelrequestApprovalcancelrequest(optional)

Return type

(empty response body)

Responses

CodeDescriptionData Type
204No content - indicates the request was successful but there is no content to be returned in the response.
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | ID of the approval request to cancel.
$Approvalcancelrequest = @""@

# Post Approval Cancel

try {
Suspend-ApprovalByIdV1 -Id $Id

# Below is a request that includes all optional parameters
# Suspend-ApprovalByIdV1 -Id $Id -Approvalcancelrequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Suspend-ApprovalByIdV1"
Write-Host $_.ErrorDetails
}

[Back to top]

cancel-approval-v1

Bulk cancels specified approval requests on behalf of the caller. Note: To bulk cancel access request approvals, please use the following: /access-requests/bulk-cancel

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyBulkcancelrequestdtoBulkcancelrequestdtoTrue

Return type

SystemCollectionsHashtable

Responses

CodeDescriptionData Type
202Accepted - Returned if the request was successfully accepted into the system.SystemCollectionsHashtable
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Bulkcancelrequestdto = @""@

# Post Bulk Cancel Approvals

try {
$Result = ConvertFrom-JsonToBulkcancelrequestdto -Json $Bulkcancelrequestdto
Suspend-ApprovalV1 -Bulkcancelrequestdto $Result

# Below is a request that includes all optional parameters
# Suspend-ApprovalV1 -Bulkcancelrequestdto $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Suspend-ApprovalV1"
Write-Host $_.ErrorDetails
}

[Back to top]

delete-approval-config-request-v1

Deletes an approval configuration. Configurations at the APPROVAL_REQUEST scope cannot be deleted.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueThe ID defined by the scope field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT
PathScopeStringTrueThe scope of the field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT

Return type

(empty response body)

Responses

CodeDescriptionData Type
204No content - indicates the request was successful but there is no content to be returned in the response.
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

$Id = "ACCESS_REQUEST_APPROVAL" # String | The ID defined by the scope field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT
$Scope = "DOMAIN_OBJECT" # String | The scope of the field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT

# Delete Approval Configuration

try {
Remove-ApprovalConfigRequestV1 -Id $Id -Scope $Scope

# Below is a request that includes all optional parameters
# Remove-ApprovalConfigRequestV1 -Id $Id -Scope $Scope
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-ApprovalConfigRequestV1"
Write-Host $_.ErrorDetails
}

[Back to top]

get-approval-v1

Fetches an approval request by it's approval ID. For lookups by access request ID please use the following: /generic-approvals?filters=referenceType+eq+"accessRequestId"+and+referenceId+eq+"12345678901234567890123456789012"

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueID of the approval that is to be returned

Return type

Approval2

Responses

CodeDescriptionData Type
200Approval objectApproval2
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | ID of the approval that is to be returned

# Get an approval

try {
Get-ApprovalV1 -Id $Id

# Below is a request that includes all optional parameters
# Get-ApprovalV1 -Id $Id
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-ApprovalV1"
Write-Host $_.ErrorDetails
}

[Back to top]

get-approvals-config-v1

Retrieves a singular approval configuration that matches the given ID

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueThe id of the object the config applies to, for example one of the following: [(approvalID), (roleID), (entitlementID), (accessProfileID), ""ENTITLEMENT_DESCRIPTIONS"", ""ACCESS_REQUEST_APPROVAL"", ""ACCOUNT_CREATE_APPROVAL_REQUEST"", ""ACCOUNT_DELETE_APPROVAL_REQUEST"", ""MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST"", ""MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST"", (tenantID)]

Return type

Approvalconfig

Responses

CodeDescriptionData Type
200Approval objectApprovalconfig
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

$Id = "1.2345678901234567E+31" # String | The id of the object the config applies to, for example one of the following: [(approvalID), (roleID), (entitlementID), (accessProfileID), ""ENTITLEMENT_DESCRIPTIONS"", ""ACCESS_REQUEST_APPROVAL"", ""ACCOUNT_CREATE_APPROVAL_REQUEST"", ""ACCOUNT_DELETE_APPROVAL_REQUEST"", ""MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST"", ""MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST"", (tenantID)]

# Get Approval Config

try {
Get-ApprovalsConfigV1 -Id $Id

# Below is a request that includes all optional parameters
# Get-ApprovalsConfigV1 -Id $Id
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-ApprovalsConfigV1"
Write-Host $_.ErrorDetails
}

[Back to top]

get-approvals-v1

Gets a list of approvals.

One of the following query parameters should be present: 'mine', 'approverId', 'requesterId', 'requesteeId'.

The absence of all query parameters for non admins will default to mine=true (which is the equivalent of 'approverId=[your_identity_id]') while admins will default to mine=false (which will show all approvals in the org).

For lookups by access request ID please use the following:

'/generic-approvals?mine=false&filters=referenceType+eq+"accessRequestId"+and+referenceId+eq+"12345678901234567890123456789012"'

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
QueryMineBoolean(optional) (default to $false)Determines whether to return the list of approvals assigned to the current caller or all approvals in the org. Defaults to false if admin, true otherwise (which is the equivalent of 'approverId=[your_identity_id]').
QueryRequesterIdString(optional)Returns the list of approvals for a given requester ID. Must match the calling user's identity ID unless they are an admin.
QueryRequesteeIdString(optional)Returns the list of approvals for a given requesteeId ID. Must match the calling user's identity ID unless they are an admin.
QueryApproverIdString(optional)Returns the list of approvals for a given approverId ID. Must match the calling user's identity ID unless they are an admin.
QueryCountBoolean(optional) (default to $false)Adds X-Total-Count to the header to give the amount of total approvals returned from the query.
QueryCountOnlyBoolean(optional) (default to $false)Adds X-Total-Count to the header to give the amount of total approvals returned from the query. Only returns the count and no approval objects.
QueryIncludeCommentsBoolean(optional) (default to $false)If set to true in the query, the approval requests returned will include comments.
QueryIncludeApproversBoolean(optional) (default to $false)If set to true in the query, the approval requests returned will include approvers.
QueryIncludeReassignmentHistoryBoolean(optional) (default to $false)If set to true in the query, the approval requests returned will include reassignment history.
QueryIncludeBatchInfoBoolean(optional) (default to $false)If set to true in the query, the approval requests returned will include batch information.
QueryFiltersString(optional)Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: status: eq, ne, in, co, sw name: eq, ne, in, co, sw priority: eq, ne, in, co, sw type: eq, ne, in, co, sw medium: eq, ne, in, co, sw description: eq, ne, in, co, sw batchId: eq, ne, in, co, sw createdDate: eq, ne, in, co, sw, gt, ge, lt, le dueDate: eq, ne, in, co, sw, gt, ge, lt, le completedDate: eq, ne, in, co, sw, gt, ge, lt, le search: eq, ne, in, co, sw referenceId: eq, ne, in, co, sw referenceType: eq, ne, in, co, sw referenceName: eq, ne, in, co, sw requestedTargetId: eq, ne, in, co, sw requestedTargetType: eq, ne, in, co, sw requestedTargetName: eq, ne, in, co, sw requestedTargetRequestType: eq, ne, in, co, sw modifiedDate: eq, ne, in, co, sw, gt, ge, lt, le decisionDate: eq, ne, in, co, sw, gt, ge, lt, le approvalId: eq, ne, in, co, sw requesterId: eq, ne, in, co, sw requesteeId: eq, ne, in, co, sw approverId: eq, ne, in, co, sw
QueryLimitInt32(optional) (default to 250)Max number of results to return. See V3 API Standard Collection Parameters for more information.
QueryOffsetInt32(optional) (default to 0)Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.

Return type

Approval2[]

Responses

CodeDescriptionData Type
200List of approvals.Approval2[]
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

$Mine = $true # Boolean | Determines whether to return the list of approvals assigned to the current caller or all approvals in the org. Defaults to false if admin, true otherwise (which is the equivalent of 'approverId=[your_identity_id]'). (optional) (default to $false)
$RequesterId = "17e633e7d57e481569df76323169deb6a" # String | Returns the list of approvals for a given requester ID. Must match the calling user's identity ID unless they are an admin. (optional)
$RequesteeId = "27e6334g757e481569df76323169db9sc" # String | Returns the list of approvals for a given requesteeId ID. Must match the calling user's identity ID unless they are an admin. (optional)
$ApproverId = "37e6334g557e481569df7g2d3169db9sb" # String | Returns the list of approvals for a given approverId ID. Must match the calling user's identity ID unless they are an admin. (optional)
$Count = $true # Boolean | Adds X-Total-Count to the header to give the amount of total approvals returned from the query. (optional) (default to $false)
$CountOnly = $true # Boolean | Adds X-Total-Count to the header to give the amount of total approvals returned from the query. Only returns the count and no approval objects. (optional) (default to $false)
$IncludeComments = $true # Boolean | If set to true in the query, the approval requests returned will include comments. (optional) (default to $false)
$IncludeApprovers = $true # Boolean | If set to true in the query, the approval requests returned will include approvers. (optional) (default to $false)
$IncludeReassignmentHistory = $true # Boolean | If set to true in the query, the approval requests returned will include reassignment history. (optional) (default to $false)
$IncludeBatchInfo = $true # Boolean | If set to true in the query, the approval requests returned will include batch information. (optional) (default to $false)
$Filters = 'filters=status eq "PENDING" and type eq "ACCESS_REQUEST_APPROVAL"' # String | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, ne, in, co, sw* **name**: *eq, ne, in, co, sw* **priority**: *eq, ne, in, co, sw* **type**: *eq, ne, in, co, sw* **medium**: *eq, ne, in, co, sw* **description**: *eq, ne, in, co, sw* **batchId**: *eq, ne, in, co, sw* **createdDate**: *eq, ne, in, co, sw, gt, ge, lt, le* **dueDate**: *eq, ne, in, co, sw, gt, ge, lt, le* **completedDate**: *eq, ne, in, co, sw, gt, ge, lt, le* **search**: *eq, ne, in, co, sw* **referenceId**: *eq, ne, in, co, sw* **referenceType**: *eq, ne, in, co, sw* **referenceName**: *eq, ne, in, co, sw* **requestedTargetId**: *eq, ne, in, co, sw* **requestedTargetType**: *eq, ne, in, co, sw* **requestedTargetName**: *eq, ne, in, co, sw* **requestedTargetRequestType**: *eq, ne, in, co, sw* **modifiedDate**: *eq, ne, in, co, sw, gt, ge, lt, le* **decisionDate**: *eq, ne, in, co, sw, gt, ge, lt, le* **approvalId**: *eq, ne, in, co, sw* **requesterId**: *eq, ne, in, co, sw* **requesteeId**: *eq, ne, in, co, sw* **approverId**: *eq, ne, in, co, sw* (optional)
$Limit = 250 # Int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
$Offset = 0 # Int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)

# Get approvals

try {
Get-ApprovalsV1

# Below is a request that includes all optional parameters
# Get-ApprovalsV1 -Mine $Mine -RequesterId $RequesterId -RequesteeId $RequesteeId -ApproverId $ApproverId -Count $Count -CountOnly $CountOnly -IncludeComments $IncludeComments -IncludeApprovers $IncludeApprovers -IncludeReassignmentHistory $IncludeReassignmentHistory -IncludeBatchInfo $IncludeBatchInfo -Filters $Filters -Limit $Limit -Offset $Offset
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-ApprovalsV1"
Write-Host $_.ErrorDetails
}

[Back to top]

move-approval-v1

Bulk reassigns specified approval requests on behalf of the caller

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyBulkreassignrequestdtoBulkreassignrequestdtoTrue

Return type

SystemCollectionsHashtable

Responses

CodeDescriptionData Type
202Accepted - Returned if the request was successfully accepted into the system.SystemCollectionsHashtable
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Bulkreassignrequestdto = @""@

# Post Bulk Reassign Approvals

try {
$Result = ConvertFrom-JsonToBulkreassignrequestdto -Json $Bulkreassignrequestdto
Move-ApprovalV1 -Bulkreassignrequestdto $Result

# Below is a request that includes all optional parameters
# Move-ApprovalV1 -Bulkreassignrequestdto $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Move-ApprovalV1"
Write-Host $_.ErrorDetails
}

[Back to top]

put-approvals-config-v1

Upserts a singular approval configuration that matches the given configID and configScope. For example to update the approval configurations for all Access Request Approvals please use: '/generic-approvals/config/ACCESS_REQUEST_APPROVAL/APPROVAL_TYPE'

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueThe ID defined by the scope field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT
PathScopeStringTrueThe scope of the field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT
BodyApprovalconfigApprovalconfigTrue

Return type

Approvalconfig

Responses

CodeDescriptionData Type
200Verified Email StatusApprovalconfig
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "ACCESS_REQUEST_APPROVAL" # String | The ID defined by the scope field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT
$Scope = "DOMAIN_OBJECT" # String | The scope of the field, where [[id]]:[[scope]] is the following [[roleID]]:ROLE [[entitlementID]]:ENTITLEMENT [[accessProfileID]]:ACCESS_PROFILE ENTITLEMENT_DESCRIPTIONS:APPROVAL_TYPE ACCESS_REQUEST_APPROVAL:APPROVAL_TYPE ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_CREATE_APPROVAL_REQUEST:APPROVAL_TYPE MACHINE_ACCOUNT_DELETE_APPROVAL_REQUEST:APPROVAL_TYPE [[tenantID]]:TENANT [[domainObjectID]]:DOMAIN_OBJECT
$Approvalconfig = @""@

# Put Approval Config

try {
$Result = ConvertFrom-JsonToApprovalconfig -Json $Approvalconfig
Send-ApprovalsConfigV1 -Id $Id -Scope $Scope -Approvalconfig $Result

# Below is a request that includes all optional parameters
# Send-ApprovalsConfigV1 -Id $Id -Scope $Scope -Approvalconfig $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Send-ApprovalsConfigV1"
Write-Host $_.ErrorDetails
}

[Back to top]

reject-approval-in-bulk-v1

Bulk reject specified approval requests on behalf of the caller

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyBulkrejectrequestdtoBulkrejectrequestdtoTrue

Return type

SystemCollectionsHashtable

Responses

CodeDescriptionData Type
202Accepted - Returned if the request was successfully accepted into the system.SystemCollectionsHashtable
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Bulkrejectrequestdto = @""@

# Post Bulk Reject Approvals

try {
$Result = ConvertFrom-JsonToBulkrejectrequestdto -Json $Bulkrejectrequestdto
Deny-ApprovalInBulkV1 -Bulkrejectrequestdto $Result

# Below is a request that includes all optional parameters
# Deny-ApprovalInBulkV1 -Bulkrejectrequestdto $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Deny-ApprovalInBulkV1"
Write-Host $_.ErrorDetails
}

[Back to top]

reject-approval-v1

Rejects a specified approval request on behalf of the caller. This endpoint does not support access request IDs. If called by an admin and the admin is not listed as an approver, the approval request will be reassigned from a random approver to the admin user and approved.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueApproval ID that correlates to an existing approval request that a user wants to reject.
BodyApprovalrejectrequestApprovalrejectrequest(optional)

Return type

(empty response body)

Responses

CodeDescriptionData Type
204No content - indicates the request was successful but there is no content to be returned in the response.
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | Approval ID that correlates to an existing approval request that a user wants to reject.
$Approvalrejectrequest = @""@

# Post Approvals Reject

try {
Deny-ApprovalV1 -Id $Id

# Below is a request that includes all optional parameters
# Deny-ApprovalV1 -Id $Id -Approvalrejectrequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Deny-ApprovalV1"
Write-Host $_.ErrorDetails
}

[Back to top]

update-approvals-attributes-v1

Allows for the edit/addition/removal of the key/value pair additional attributes map for an existing approval request. This endpoint does not support access request IDs.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueApproval ID that correlates to an existing approval request that a user wants to change the attributes of.
BodyApprovalattributesrequestApprovalattributesrequestTrue

Return type

Approval2

Responses

CodeDescriptionData Type
200Approval objectApproval2
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | Approval ID that correlates to an existing approval request that a user wants to change the attributes of.
$Approvalattributesrequest = @""@

# Post Approvals Attributes

try {
$Result = ConvertFrom-JsonToApprovalattributesrequest -Json $Approvalattributesrequest
Update-ApprovalsAttributesV1 -Id $Id -Approvalattributesrequest $Result

# Below is a request that includes all optional parameters
# Update-ApprovalsAttributesV1 -Id $Id -Approvalattributesrequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-ApprovalsAttributesV1"
Write-Host $_.ErrorDetails
}

[Back to top]

update-approvals-comments-v1

Adds comments to a specified approval request. This endpoint does not support access request IDs.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueApproval ID that correlates to an existing approval request that a user wants to add a comment to.
BodyApprovalcommentsrequestApprovalcommentsrequestTrue

Return type

Approval2

Responses

CodeDescriptionData Type
200Approval objectApproval2
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | Approval ID that correlates to an existing approval request that a user wants to add a comment to.
$Approvalcommentsrequest = @""@

# Post Approvals Comments

try {
$Result = ConvertFrom-JsonToApprovalcommentsrequest -Json $Approvalcommentsrequest
Update-ApprovalsCommentsV1 -Id $Id -Approvalcommentsrequest $Result

# Below is a request that includes all optional parameters
# Update-ApprovalsCommentsV1 -Id $Id -Approvalcommentsrequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-ApprovalsCommentsV1"
Write-Host $_.ErrorDetails
}

[Back to top]

update-approvals-reassign-v1

Reassigns an approval request to another identity resulting in that identity being added as an authorized approver. This endpoint does not support access request IDs.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathIdStringTrueApproval ID that correlates to an existing approval request that a user wants to reassign.
BodyApprovalreassignrequestApprovalreassignrequestTrue

Return type

(empty response body)

Responses

CodeDescriptionData Type
204No content - indicates the request was successful but there is no content to be returned in the response.
400Client Error - Returned if the request body is invalid.Errorresponsedto
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetApprovalsV1401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorresponsedto
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetApprovalsV1429Response
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

$Id = "38453251-6be2-5f8f-df93-5ce19e295837" # String | Approval ID that correlates to an existing approval request that a user wants to reassign.
$Approvalreassignrequest = @""@

# Post Approvals Reassign

try {
$Result = ConvertFrom-JsonToApprovalreassignrequest -Json $Approvalreassignrequest
Update-ApprovalsReassignV1 -Id $Id -Approvalreassignrequest $Result

# Below is a request that includes all optional parameters
# Update-ApprovalsReassignV1 -Id $Id -Approvalreassignrequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-ApprovalsReassignV1"
Write-Host $_.ErrorDetails
}

[Back to top]