Skip to main content

WorkItemsApi

Use this API to implement work item functionality. With this functionality in place, users can manage their work items (tasks).

Work items refer to the tasks users see in Identity Security Cloud's Task Manager. They can see the pending work items they need to complete, as well as the work items they have already completed. Task Manager lists the work items along with the involved sources, identities, accounts, and the timestamp when the work item was created. For example, a user may see a pending 'Create an Account' work item for the identity Fred.Astaire in GitHub for Fred's GitHub account, fred-astaire-sp. Once the user completes the work item, the work item will be listed with his or her other completed work items.

To complete work items, users can use their dashboards and select the 'My Tasks' widget. The widget will list any work items they need to complete, and they can select the work item from the list to review its details. When they complete the work item, they can select 'Mark Complete' to add it to their list of completed work items.

Refer to Task Manager for more information about work items, including the different types of work items users may need to complete.

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

MethodHTTP requestDescription
approve-approval-item-v1POST /work-items/v1/{id}/approve/{approvalItemId}Approve an approval item
approve-approval-items-in-bulk-v1POST /work-items/v1/bulk-approve/{id}Bulk approve approval items
complete-work-item-v1POST /work-items/v1/{id}Complete a work item
forward-work-item-v1POST /work-items/v1/{id}/forwardForward a work item
get-completed-work-items-v1GET /work-items/v1/completedCompleted work items
get-count-completed-work-items-v1GET /work-items/v1/completed/countCount completed work items
get-count-work-items-v1GET /work-items/v1/countCount work items
get-work-item-v1GET /work-items/v1/{id}Get a work item
get-work-items-summary-v1GET /work-items/v1/summaryWork items summary
list-work-items-v1GET /work-items/v1List work items
reject-approval-item-v1POST /work-items/v1/{id}/reject/{approvalItemId}Reject an approval item
reject-approval-items-in-bulk-v1POST /work-items/v1/bulk-reject/{id}Bulk reject approval items
submit-account-selection-v1POST /work-items/v1/{id}/submit-account-selectionSubmit account selections

approve-approval-item-v1

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

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]
approvalItemIdstringThe ID of the approval item.[default to undefined]

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const approvalItemId: string = 1211bcaa32112bcef6122adb21cef1ac; // The ID of the approval item.
const result = await apiInstance.approveApprovalItemV1({ id: id, approvalItemId: approvalItemId });
console.log(result);

[Back to top]

approve-approval-items-in-bulk-v1

Bulk approve approval items This API bulk approves Approval Items. Either an admin, or the owning/current user must make this request.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const result = await apiInstance.approveApprovalItemsInBulkV1({ id: id });
console.log(result);

[Back to top]

complete-work-item-v1

Complete a work item This API completes a work item. Either an admin, or the owning/current user must make this request.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]
bodystringBody is the request payload to create form definition request[optional]

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const body: string = body_example; // Body is the request payload to create form definition request (optional)
const result = await apiInstance.completeWorkItemV1({ id: id });
console.log(result);

[Back to top]

forward-work-item-v1

Forward a work item This API forwards a work item to a new owner. Either an admin, or the owning/current user must make this request.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]
workItemForwardWorkItemForward

Return type

(empty response body)

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';
import { WorkItemForward } from 'sailpoint-api-client/dist/work_items/api';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const workItemForward: WorkItemForward = {
"targetOwnerId" : "2c9180835d2e5168015d32f890ca1581",
"comment" : "I'm going on vacation.",
"sendNotifications" : true
}; //
const result = await apiInstance.forwardWorkItemV1({ id: id, workItemForward: workItemForward });
console.log(result);

[Back to top]

get-completed-work-items-v1

Completed work items This gets a collection of completed work items belonging to either the specified user(admin required), or the current user.

API Spec

Parameters

NameTypeDescriptionNotes
ownerIdstringThe id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request.[optional] [default to undefined]
limitnumberMax number of results to return. See V3 API Standard Collection Parameters for more information.[optional] [default to 250]
offsetnumberOffset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.[optional] [default to 0]
countbooleanIf true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information.[optional] [default to false]

Return type

Array<WorkItems>

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const ownerId: string = 1211bcaa32112bcef6122adb21cef1ac; // The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request. (optional)
const limit: number = 250; // 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)
const offset: number = 0; // 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)
const count: boolean = true; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const result = await apiInstance.getCompletedWorkItemsV1({ });
console.log(result);

[Back to top]

get-count-completed-work-items-v1

Count completed work items This gets a count of completed work items belonging to either the specified user(admin required), or the current user.

API Spec

Parameters

NameTypeDescriptionNotes
ownerIdstringID of the work item owner.[optional] [default to undefined]

Return type

WorkItemsCount

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const ownerId: string = ownerId_example; // ID of the work item owner. (optional)
const result = await apiInstance.getCountCompletedWorkItemsV1({ });
console.log(result);

[Back to top]

get-count-work-items-v1

Count work items This gets a count of work items belonging to either the specified user(admin required), or the current user.

API Spec

Parameters

NameTypeDescriptionNotes
ownerIdstringID of the work item owner.[optional] [default to undefined]

Return type

WorkItemsCount

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const ownerId: string = ef38f94347e94562b5bb8424a56397d8; // ID of the work item owner. (optional)
const result = await apiInstance.getCountWorkItemsV1({ });
console.log(result);

[Back to top]

get-work-item-v1

Get a work item This gets the details of a Work Item belonging to either the specified user(admin required), or the current user.

API Spec

Parameters

NameTypeDescriptionNotes
idstringID of the work item.[default to undefined]

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = 2c9180835d191a86015d28455b4a2329; // ID of the work item.
const result = await apiInstance.getWorkItemV1({ id: id });
console.log(result);

[Back to top]

get-work-items-summary-v1

Work items summary This gets a summary of work items belonging to either the specified user(admin required), or the current user.

API Spec

Parameters

NameTypeDescriptionNotes
ownerIdstringID of the work item owner.[optional] [default to undefined]

Return type

WorkItemsSummary

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const ownerId: string = 1211bcaa32112bcef6122adb21cef1ac; // ID of the work item owner. (optional)
const result = await apiInstance.getWorkItemsSummaryV1({ });
console.log(result);

[Back to top]

list-work-items-v1

List work items This gets a collection of work items belonging to either the specified user(admin required), or the current user.

API Spec

Parameters

NameTypeDescriptionNotes
limitnumberMax number of results to return. See V3 API Standard Collection Parameters for more information.[optional] [default to 250]
offsetnumberOffset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.[optional] [default to 0]
countbooleanIf true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information.[optional] [default to false]
ownerIdstringID of the work item owner.[optional] [default to undefined]

Return type

Array<WorkItems>

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const limit: number = 250; // 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)
const offset: number = 0; // 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)
const count: boolean = true; // If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional)
const ownerId: string = 1211bcaa32112bcef6122adb21cef1ac; // ID of the work item owner. (optional)
const result = await apiInstance.listWorkItemsV1({ });
console.log(result);

[Back to top]

reject-approval-item-v1

Reject an approval item This API rejects an Approval Item. Either an admin, or the owning/current user must make this request.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]
approvalItemIdstringThe ID of the approval item.[default to undefined]

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const approvalItemId: string = 1211bcaa32112bcef6122adb21cef1ac; // The ID of the approval item.
const result = await apiInstance.rejectApprovalItemV1({ id: id, approvalItemId: approvalItemId });
console.log(result);

[Back to top]

reject-approval-items-in-bulk-v1

Bulk reject approval items This API bulk rejects Approval Items. Either an admin, or the owning/current user must make this request.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const result = await apiInstance.rejectApprovalItemsInBulkV1({ id: id });
console.log(result);

[Back to top]

submit-account-selection-v1

Submit account selections This API submits account selections. Either an admin, or the owning/current user must make this request.

API Spec

Parameters

NameTypeDescriptionNotes
idstringThe ID of the work item[default to undefined]
requestBodyAccount Selection Data map, keyed on fieldName

Return type

WorkItems

HTTP request headers

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

Example

import { WorkItemsApi } from 'sailpoint-api-client';
import { Configuration } from 'sailpoint-api-client';

const configuration = new Configuration();
const apiInstance = new WorkItemsApi(configuration);
const id: string = ef38f94347e94562b5bb8424a56397d8; // The ID of the work item
const requestBody: { [key: string]: any; } = {"fieldName":"fieldValue"}; // Account Selection Data map, keyed on fieldName
const result = await apiInstance.submitAccountSelectionV1({ id: id, requestBody: requestBody });
console.log(result);

[Back to top]