Skip to main content

Approve an Approval Item

POST 

https://sailpoint.api.identitynow.com/beta/work-items/:id/approve/:approvalItemId

deprecated

This API has been deprecated, please refer to Approve an Approval Item for latest API.

This API approves an Approval Item. Either an admin, or the owning/current user must make this request.

Request

Path Parameters

    id stringrequired

    The ID of the work item

    Example: ef38f94347e94562b5bb8424a56397d8
    approvalItemId stringrequired

    The ID of the approval item.

    Example: 1211bcaa32112bcef6122adb21cef1ac

Responses

A work items details object.

Schema
    idstring

    ID of the work item

    Example: 2c9180835d2e5168015d32f890ca1581
    requesterIdstringnullable

    ID of the requester

    Example: 2c9180835d2e5168015d32f890ca1581
    requesterDisplayNamestringnullable

    The displayname of the requester

    Example: John Smith
    ownerIdstringnullable

    The ID of the owner

    Example: 2c9180835d2e5168015d32f890ca1581
    ownerNamestring

    The name of the owner

    Example: Jason Smith
    createddate-time
    Example: 2017-07-11T18:45:37.098Z
    modifieddate-timenullable
    Example: 2018-06-25T20:22:28.104Z
    descriptionstring

    The description of the work item

    Example: Create account on source 'AD'
    statestringnullable

    The state of a work item

    Possible values: [Finished, Rejected, Returned, Expired, Pending, Canceled, null]

    Example: Pending
    typestring

    The type of the work item

    Possible values: [Unknown, Generic, Certification, Remediation, Delegation, Approval, ViolationReview, Form, PolicyViolation, Challenge, ImpactAnalysis, Signoff, Event, ManualAction, Test]

    Example: Generic
    remediationItems object[]nullable
  • Array [
  • idstring

    The ID of the certification

    Example: 2c9180835d2e5168015d32f890ca1581
    targetIdstring

    The ID of the certification target

    Example: 2c9180835d2e5168015d32f890ca1581
    targetNamestring

    The name of the certification target

    Example: john.smith
    targetDisplayNamestring

    The display name of the certification target

    Example: emailAddress
    applicationNamestring

    The name of the application/source

    Example: Active Directory
    attributeNamestring

    The name of the attribute being certified

    Example: phoneNumber
    attributeOperationstring

    The operation of the certification on the attribute

    Example: update
    attributeValuestring

    The value of the attribute being certified

    Example: 512-555-1212
    nativeIdentitystring

    The native identity of the target

    Example: jason.smith2
  • ]
  • approvalItems object[]nullable
  • Array [
  • idstring

    The approval item's ID

    Example: 2c9180835d2e5168015d32f890ca1581
    accountstringnullable

    The account referenced by the approval item

    Example: john.smith
    applicationstring

    The name of the application/source

    Example: Active Directory
    namestringnullable

    The attribute's name

    Example: emailAddress
    operationstring

    The attribute's operation

    Example: update
    valuestringnullable

    The attribute's value

    Example: a@b.com
    statestringnullable

    The state of a work item

    Possible values: [Finished, Rejected, Returned, Expired, Pending, Canceled, null]

    Example: Pending
  • ]
  • namestringnullable

    The work item name

    Example: Account Create
    completeddate-timenullable
    Example: 2018-10-19T13:49:37.385Z
    numItemsintegernullable

    The number of items in the work item

    Example: 19
    errorsstring[]
    Example: ["The work item ID that was specified was not found."]
    form objectnullable
    idstringnullable

    ID of the form

    Example: 2c9180835d2e5168015d32f890ca1581
    namestringnullable

    Name of the form

    Example: AccountSelection Form
    titlestring

    The form title

    Example: Account Selection for John.Doe
    subtitlestring

    The form subtitle.

    Example: Please select from the following
    targetUserstring

    The name of the user that should be shown this form

    Example: Jane.Doe
    sectionsobject[]

Authorization: oauth2

type: Personal Access Token
scopes: idn:work-item:update
user levels: ORG_ADMIN

View SDK Reference

package main

import (
"context"
"fmt"
"os"
"encoding/json"
beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta"
sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {
id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item
approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item.




configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute()
//resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApproveApprovalItem`: WorkItems
fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp)
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/beta
Auth
Parameters
— pathrequired
— pathrequired
ResponseClear

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