# WorkItemsApi All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**apiV2WorkItemsIdAttachmentsPost**](WorkItemsApi.md#apiV2WorkItemsIdAttachmentsPost) | **POST** /api/v2/workItems/{id}/attachments | Upload and link attachment to WorkItem | | [**apiV2WorkItemsIdCheckListTransformToTestCasePost**](WorkItemsApi.md#apiV2WorkItemsIdCheckListTransformToTestCasePost) | **POST** /api/v2/workItems/{id}/checkList/transformTo/testCase | Transform CheckList to TestCase | | [**apiV2WorkItemsIdHistoryGet**](WorkItemsApi.md#apiV2WorkItemsIdHistoryGet) | **GET** /api/v2/workItems/{id}/history | Get change history of WorkItem | | [**apiV2WorkItemsIdLikeDelete**](WorkItemsApi.md#apiV2WorkItemsIdLikeDelete) | **DELETE** /api/v2/workItems/{id}/like | Delete like from WorkItem | | [**apiV2WorkItemsIdLikePost**](WorkItemsApi.md#apiV2WorkItemsIdLikePost) | **POST** /api/v2/workItems/{id}/like | Set like to WorkItem | | [**apiV2WorkItemsIdLikesCountGet**](WorkItemsApi.md#apiV2WorkItemsIdLikesCountGet) | **GET** /api/v2/workItems/{id}/likes/count | Get likes count of WorkItem | | [**apiV2WorkItemsIdLikesGet**](WorkItemsApi.md#apiV2WorkItemsIdLikesGet) | **GET** /api/v2/workItems/{id}/likes | Get likes of WorkItem | | [**apiV2WorkItemsIdTestResultsHistoryGet**](WorkItemsApi.md#apiV2WorkItemsIdTestResultsHistoryGet) | **GET** /api/v2/workItems/{id}/testResults/history | Get test results history of WorkItem | | [**apiV2WorkItemsIdVersionVersionIdActualPost**](WorkItemsApi.md#apiV2WorkItemsIdVersionVersionIdActualPost) | **POST** /api/v2/workItems/{id}/version/{versionId}/actual | Set WorkItem as actual | | [**apiV2WorkItemsMovePost**](WorkItemsApi.md#apiV2WorkItemsMovePost) | **POST** /api/v2/workItems/move | Move WorkItem to another section | | [**apiV2WorkItemsSearchPost**](WorkItemsApi.md#apiV2WorkItemsSearchPost) | **POST** /api/v2/workItems/search | Search for work items | | [**apiV2WorkItemsSharedStepIdReferencesSectionsPost**](WorkItemsApi.md#apiV2WorkItemsSharedStepIdReferencesSectionsPost) | **POST** /api/v2/workItems/{sharedStepId}/references/sections | Get SharedStep references in sections | | [**apiV2WorkItemsSharedStepIdReferencesWorkItemsPost**](WorkItemsApi.md#apiV2WorkItemsSharedStepIdReferencesWorkItemsPost) | **POST** /api/v2/workItems/{sharedStepId}/references/workItems | Get SharedStep references in workitems | | [**apiV2WorkItemsSharedStepsSharedStepIdReferencesGet**](WorkItemsApi.md#apiV2WorkItemsSharedStepsSharedStepIdReferencesGet) | **GET** /api/v2/workItems/sharedSteps/{sharedStepId}/references | Get SharedStep references | | [**createWorkItem**](WorkItemsApi.md#createWorkItem) | **POST** /api/v2/workItems | Create Test Case, Checklist or Shared Step | | [**deleteAllWorkItemsFromAutoTest**](WorkItemsApi.md#deleteAllWorkItemsFromAutoTest) | **DELETE** /api/v2/workItems/{id}/autoTests | Delete all links AutoTests from WorkItem by Id or GlobalId | | [**deleteWorkItem**](WorkItemsApi.md#deleteWorkItem) | **DELETE** /api/v2/workItems/{id} | Delete Test Case, Checklist or Shared Step by Id or GlobalId | | [**getAutoTestsForWorkItem**](WorkItemsApi.md#getAutoTestsForWorkItem) | **GET** /api/v2/workItems/{id}/autoTests | Get all AutoTests linked to WorkItem by Id or GlobalId | | [**getIterations**](WorkItemsApi.md#getIterations) | **GET** /api/v2/workItems/{id}/iterations | Get iterations by workitem Id or GlobalId | | [**getWorkItemById**](WorkItemsApi.md#getWorkItemById) | **GET** /api/v2/workItems/{id} | Get Test Case, Checklist or Shared Step by Id or GlobalId | | [**getWorkItemChronology**](WorkItemsApi.md#getWorkItemChronology) | **GET** /api/v2/workItems/{id}/chronology | Get WorkItem chronology by Id or GlobalId | | [**getWorkItemVersions**](WorkItemsApi.md#getWorkItemVersions) | **GET** /api/v2/workItems/{id}/versions | Get WorkItem versions | | [**purgeWorkItem**](WorkItemsApi.md#purgeWorkItem) | **POST** /api/v2/workItems/{id}/purge | Permanently delete test case, checklist or shared steps from archive | | [**restoreWorkItem**](WorkItemsApi.md#restoreWorkItem) | **POST** /api/v2/workItems/{id}/restore | Restore test case, checklist or shared steps from archive | | [**updateWorkItem**](WorkItemsApi.md#updateWorkItem) | **PUT** /api/v2/workItems | Update Test Case, Checklist or Shared Step | # **apiV2WorkItemsIdAttachmentsPost** > UUID apiV2WorkItemsIdAttachmentsPost(id, file) Upload and link attachment to WorkItem <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Work item internal identifier (guid format) | [default to null] | | **file** | **File**| Select file | [optional] [default to null] | ### Return type **UUID** ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json # **apiV2WorkItemsIdCheckListTransformToTestCasePost** > WorkItemModel apiV2WorkItemsIdCheckListTransformToTestCasePost(id) Transform CheckList to TestCase <br>Use case <br>User sets checklist identifier <br>User runs method execution <br>System transform CheckList to TestCase ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | ### Return type [**WorkItemModel**](../Models/WorkItemModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdHistoryGet** > List apiV2WorkItemsIdHistoryGet(id, Skip, Take, OrderBy, SearchField, SearchValue) Get change history of WorkItem <br>Use case <br>User sets workitem identifier <br>User runs method execution <br>System return change history of WorkItem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | | **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] | | **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] | | **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] | | **SearchField** | **String**| Property name for searching | [optional] [default to null] | | **SearchValue** | **String**| Value for searching | [optional] [default to null] | ### Return type [**List**](../Models/WorkItemChangeModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdLikeDelete** > apiV2WorkItemsIdLikeDelete(id) Delete like from WorkItem <br>Use case <br>User sets WorkItem identifier <br>User runs method execution <br>System delete like from WorkItem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdLikePost** > apiV2WorkItemsIdLikePost(id) Set like to WorkItem <br>Use case <br>User sets WorkItem identifier <br>User runs method execution <br>System set like to WorkItem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdLikesCountGet** > Integer apiV2WorkItemsIdLikesCountGet(id) Get likes count of WorkItem <br>Use case <br>User sets WorkItem identifier <br>User runs method execution <br>System return likes count of WorkItem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | ### Return type **Integer** ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdLikesGet** > List apiV2WorkItemsIdLikesGet(id) Get likes of WorkItem <br>Use case <br>User sets WorkItem identifier <br>User runs method execution <br>System return likes of WorkItem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | ### Return type [**List**](../Models/WorkItemLikeModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdTestResultsHistoryGet** > List apiV2WorkItemsIdTestResultsHistoryGet(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, Skip, Take, OrderBy, SearchField, SearchValue) Get test results history of WorkItem <br>Use case <br>User sets WorkItem identifier <br>User runs method execution <br>System return test results history of WorkItem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | | **from** | **Date**| Take results from this date | [optional] [default to null] | | **to** | **Date**| Take results until this date | [optional] [default to null] | | **configurationIds** | [**List**](../Models/UUID.md)| Identifiers of test result configurations | [optional] [default to null] | | **testPlanIds** | [**List**](../Models/UUID.md)| Identifiers of test plans which contain test results | [optional] [default to null] | | **userIds** | [**List**](../Models/UUID.md)| Identifiers of users who set test results | [optional] [default to null] | | **outcomes** | [**List**](../Models/String.md)| List of outcomes of test results | [optional] [default to null] | | **isAutomated** | **Boolean**| OBSOLETE: Use `Automated` instead | [optional] [default to null] | | **automated** | **Boolean**| If result must consist of only manual/automated test results | [optional] [default to null] | | **testRunIds** | [**List**](../Models/UUID.md)| Identifiers of test runs which contain test results | [optional] [default to null] | | **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] | | **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] | | **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] | | **SearchField** | **String**| Property name for searching | [optional] [default to null] | | **SearchValue** | **String**| Value for searching | [optional] [default to null] | ### Return type [**List**](../Models/TestResultHistoryReportModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsIdVersionVersionIdActualPost** > WorkItemModel apiV2WorkItemsIdVersionVersionIdActualPost(id, versionId) Set WorkItem as actual <br>Use case <br>User sets workitem identifier <br>User runs method execution <br>System set WorkItem as actual ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| | [default to null] | | **versionId** | **UUID**| | [default to null] | ### Return type [**WorkItemModel**](../Models/WorkItemModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2WorkItemsMovePost** > WorkItemShortModel apiV2WorkItemsMovePost(WorkItemMovePostModel) Move WorkItem to another section <br>Use case <br>User sets WorkItem identifier <br>User runs method execution <br>System move WorkItem to another section ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **WorkItemMovePostModel** | [**WorkItemMovePostModel**](../Models/WorkItemMovePostModel.md)| | [optional] | ### Return type [**WorkItemShortModel**](../Models/WorkItemShortModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **apiV2WorkItemsSearchPost** > List apiV2WorkItemsSearchPost(Skip, Take, OrderBy, SearchField, SearchValue, WorkItemSelectModel) Search for work items ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] | | **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] | | **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] | | **SearchField** | **String**| Property name for searching | [optional] [default to null] | | **SearchValue** | **String**| Value for searching | [optional] [default to null] | | **WorkItemSelectModel** | [**WorkItemSelectModel**](../Models/WorkItemSelectModel.md)| | [optional] | ### Return type [**List**](../Models/WorkItemShortModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **apiV2WorkItemsSharedStepIdReferencesSectionsPost** > List apiV2WorkItemsSharedStepIdReferencesSectionsPost(sharedStepId, Skip, Take, OrderBy, SearchField, SearchValue, SharedStepReferenceSectionsQueryFilterModel) Get SharedStep references in sections <br>Use case <br>User sets SharedStep identifier <br>User runs method execution <br>System return SharedStep references ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **sharedStepId** | **UUID**| | [default to null] | | **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] | | **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] | | **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] | | **SearchField** | **String**| Property name for searching | [optional] [default to null] | | **SearchValue** | **String**| Value for searching | [optional] [default to null] | | **SharedStepReferenceSectionsQueryFilterModel** | [**SharedStepReferenceSectionsQueryFilterModel**](../Models/SharedStepReferenceSectionsQueryFilterModel.md)| | [optional] | ### Return type [**List**](../Models/SharedStepReferenceSectionModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **apiV2WorkItemsSharedStepIdReferencesWorkItemsPost** > List apiV2WorkItemsSharedStepIdReferencesWorkItemsPost(sharedStepId, Skip, Take, OrderBy, SearchField, SearchValue, SharedStepReferencesQueryFilterModel) Get SharedStep references in workitems <br>Use case <br>User sets SharedStep identifier <br>User runs method execution <br>System return SharedStep references ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **sharedStepId** | **UUID**| | [default to null] | | **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] | | **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] | | **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] | | **SearchField** | **String**| Property name for searching | [optional] [default to null] | | **SearchValue** | **String**| Value for searching | [optional] [default to null] | | **SharedStepReferencesQueryFilterModel** | [**SharedStepReferencesQueryFilterModel**](../Models/SharedStepReferencesQueryFilterModel.md)| | [optional] | ### Return type [**List**](../Models/SharedStepReferenceModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **apiV2WorkItemsSharedStepsSharedStepIdReferencesGet** > List apiV2WorkItemsSharedStepsSharedStepIdReferencesGet(sharedStepId) Get SharedStep references <br>Use case <br>User sets SharedStep identifier <br>User runs method execution <br>System return SharedStep references ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **sharedStepId** | **UUID**| | [default to null] | ### Return type [**List**](../Models/SharedStepReferenceModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **createWorkItem** > WorkItemModel createWorkItem(WorkItemPostModel) Create Test Case, Checklist or Shared Step <br>Use case <br>User sets workitem properties (listed in request parameters) <br>User runs method execution <br>System creates workitem by identifier <br>System returns workitem model (listed in response parameters) ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **WorkItemPostModel** | [**WorkItemPostModel**](../Models/WorkItemPostModel.md)| | [optional] | ### Return type [**WorkItemModel**](../Models/WorkItemModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **deleteAllWorkItemsFromAutoTest** > deleteAllWorkItemsFromAutoTest(id) Delete all links AutoTests from WorkItem by Id or GlobalId <br>Use case <br>User sets workitem identifier <br>User runs method execution <br>System search workitem by identifier <br>System search and delete all autotests, related to found workitem <br>System returns no content response ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| WorkItem internal (guid format) or global(integer format) identifier\" | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **deleteWorkItem** > deleteWorkItem(id) Delete Test Case, Checklist or Shared Step by Id or GlobalId <br>Use case <br>User sets workitem identifier <br>User runs method execution <br>System deletes workitem <br>System returns no content response ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| WorkItem internal (guid format) or global(integer format) identifier\" | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getAutoTestsForWorkItem** > List getAutoTestsForWorkItem(id) Get all AutoTests linked to WorkItem by Id or GlobalId <br>Use case <br>User sets workitem identifier <br>User runs method execution <br>System search workitem by identifier <br>System search all autotests, related to found workitem <br>System returns list of found autotests ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| WorkItem internal (guid format) or global(integer format) identifier\" | [default to null] | ### Return type [**List**](../Models/AutoTestModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getIterations** > List getIterations(id, versionId, versionNumber) Get iterations by workitem Id or GlobalId ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| WorkItem internal (guid format) or global(integer format) identifier\" | [default to null] | | **versionId** | **UUID**| WorkItem version (guid format) identifier | [optional] [default to null] | | **versionNumber** | **Integer**| WorkItem version number (0 is the last version)\" | [optional] [default to null] | ### Return type [**List**](../Models/IterationModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getWorkItemById** > WorkItemModel getWorkItemById(id, versionId, versionNumber) Get Test Case, Checklist or Shared Step by Id or GlobalId <br>Use case <br>User sets workitem identifier <br>[Optional] User sets workitem version identifier <br>[Optional] User sets workitem version number <br>User runs method execution <br>System search workitem by identifier <br>[Optional] if User sets workitem version identifier, system search workitem version by identifier. <br>[Optional] if user sets workitem version number, system search workitem version by number <br>Otherwise, system search last workitem version <br>System returns workitem ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| WorkItem internal (guid format) or global(integer format) identifier\" | [default to null] | | **versionId** | **UUID**| WorkItem version (guid format) identifier\" | [optional] [default to null] | | **versionNumber** | **Integer**| WorkItem version number (0 is the last version)\" | [optional] [default to null] | ### Return type [**WorkItemModel**](../Models/WorkItemModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getWorkItemChronology** > List getWorkItemChronology(id) Get WorkItem chronology by Id or GlobalId <br>Use case <br>User sets workitem identifier <br>User runs method execution <br>System search workitem by identifier <br>System search test results of all autotests, related to found workitem <br>System sort results by CompletedOn ascending, then by CreatedDate ascending <br>System returns sorted collection of test results ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| | [default to null] | ### Return type [**List**](../Models/TestResultChronologyModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getWorkItemVersions** > List getWorkItemVersions(id, workItemVersionId, versionNumber) Get WorkItem versions <br>Use case <br>User sets workitem identifier <br>[Optional] User sets workitem version identifier <br>User runs method execution <br>System search workitem by identifier <br> [Optional] If User set workitem version identifier, System search workitem version by version identifier Otherwise, system search all version of workitem <br>System returns array of workitem version models (listed in response example) ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| WorkItem internal (guid format) or global(integer format) identifier\" | [default to null] | | **workItemVersionId** | **UUID**| WorkItem version (guid format) identifier\" | [optional] [default to null] | | **versionNumber** | **Integer**| WorkItem version (integer format) number\" | [optional] [default to null] | ### Return type [**List**](../Models/WorkItemVersionModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **purgeWorkItem** > purgeWorkItem(id) Permanently delete test case, checklist or shared steps from archive ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| Unique or global ID of the work item | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **restoreWorkItem** > restoreWorkItem(id) Restore test case, checklist or shared steps from archive ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| Unique or global ID of the work item | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **updateWorkItem** > updateWorkItem(WorkItemPutModel) Update Test Case, Checklist or Shared Step <br>Use case <br>User sets workitem properties (listed in request parameters) <br>User runs method execution <br>System updates workitem by identifier <br>System returns updated workitem model (listed in response parameters) ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **WorkItemPutModel** | [**WorkItemPutModel**](../Models/WorkItemPutModel.md)| | [optional] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json