All URIs are relative to https://developer.api.autodesk.com/
Method | HTTP request | Description |
---|---|---|
CreateWorkItem | POST /autocad.io/us-east/v2/WorkItems | Creates a new WorkItem. |
DeleteWorkItem | DELETE /autocad.io/us-east/v2/WorkItems('{id}') | Removes a specific WorkItem. |
GetAllWorkItems | GET /autocad.io/us-east/v2/WorkItems | Returns the details of all WorkItems. |
GetWorkItem | GET /autocad.io/us-east/v2/WorkItems('{id}') | Returns the details of a specific WorkItem. |
WorkItemResp CreateWorkItem (WorkItem workItem)
Creates a new WorkItem.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class CreateWorkItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WorkItemsApi();
var workItem = new WorkItem(); // WorkItem |
try
{
// Creates a new WorkItem.
WorkItemResp result = apiInstance.CreateWorkItem(workItem);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkItemsApi.CreateWorkItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
workItem | WorkItem |
- Content-Type: application/json
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteWorkItem (string id)
Removes a specific WorkItem.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class DeleteWorkItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WorkItemsApi();
var id = id_example; // string |
try
{
// Removes a specific WorkItem.
apiInstance.DeleteWorkItem(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkItemsApi.DeleteWorkItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
void (empty response body)
- Content-Type: application/json
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DesignAutomationWorkItems GetAllWorkItems (int? skip = null)
Returns the details of all WorkItems.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class GetAllWorkItemsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WorkItemsApi();
var skip = 56; // int? | (optional)
try
{
// Returns the details of all WorkItems.
DesignAutomationWorkItems result = apiInstance.GetAllWorkItems(skip);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkItemsApi.GetAllWorkItems: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
skip | int? | [optional] |
- Content-Type: application/json
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkItemResp GetWorkItem (string id)
Returns the details of a specific WorkItem.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class GetWorkItemExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WorkItemsApi();
var id = id_example; // string |
try
{
// Returns the details of a specific WorkItem.
WorkItemResp result = apiInstance.GetWorkItem(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkItemsApi.GetWorkItem: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
- Content-Type: application/json
- Accept: application/vnd.api+json, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]