All URIs are relative to https://developer.api.autodesk.com/
| Method | HTTP request | Description |
|---|---|---|
| CreateActivity | POST /autocad.io/us-east/v2/Activities | Creates a new Activity. |
| DeleteActivity | DELETE /autocad.io/us-east/v2/Activities('{id}') | Removes a specific Activity. |
| DeleteActivityHistory | POST /autocad.io/us-east/v2/Activities('{id}')/Operations.DeleteHistory | Removes the version history of the specified Activity. |
| GetActivity | GET /autocad.io/us-east/v2/Activities('{id}') | Returns the details of a specific Activity. |
| GetActivityVersions | GET /autocad.io/us-east/v2/Activities('{id}')/Operations.GetVersions | Returns all old versions of a specified Activity. |
| GetAllActivities | GET /autocad.io/us-east/v2/Activities | Returns the details of all Activities. |
| PatchActivity | PATCH /autocad.io/us-east/v2/Activities('{id}') | Updates an Activity by specifying only the changed attributes. |
| SetActivityVersion | POST /autocad.io/us-east/v2/Activities('{id}')/Operations.SetVersion | Sets the Activity to the specified version. |
Activity CreateActivity (Activity activity)
Creates a new Activity.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class CreateActivityExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var activity = new Activity(); // Activity |
try
{
// Creates a new Activity.
Activity result = apiInstance.CreateActivity(activity);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.CreateActivity: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| activity | Activity |
- 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 DeleteActivity (string id)
Removes a specific Activity.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class DeleteActivityExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var id = id_example; // string |
try
{
// Removes a specific Activity.
apiInstance.DeleteActivity(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.DeleteActivity: " + 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]
void DeleteActivityHistory (string id)
Removes the version history of the specified Activity.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class DeleteActivityHistoryExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var id = id_example; // string |
try
{
// Removes the version history of the specified Activity.
apiInstance.DeleteActivityHistory(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.DeleteActivityHistory: " + 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]
Activity GetActivity (string id)
Returns the details of a specific Activity.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class GetActivityExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var id = id_example; // string |
try
{
// Returns the details of a specific Activity.
Activity result = apiInstance.GetActivity(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.GetActivity: " + 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]
DesignAutomationActivities GetActivityVersions (string id)
Returns all old versions of a specified Activity.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class GetActivityVersionsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var id = id_example; // string |
try
{
// Returns all old versions of a specified Activity.
DesignAutomationActivities result = apiInstance.GetActivityVersions(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.GetActivityVersions: " + 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]
DesignAutomationActivities GetAllActivities ()
Returns the details of all Activities.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class GetAllActivitiesExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
try
{
// Returns the details of all Activities.
DesignAutomationActivities result = apiInstance.GetAllActivities();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.GetAllActivities: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
- 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 PatchActivity (string id, ActivityOptional activity)
Updates an Activity by specifying only the changed attributes.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class PatchActivityExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var id = id_example; // string |
var activity = new ActivityOptional(); // ActivityOptional |
try
{
// Updates an Activity by specifying only the changed attributes.
apiInstance.PatchActivity(id, activity);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.PatchActivity: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| activity | ActivityOptional |
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]
void SetActivityVersion (string id, ActivityVersion activityVersion)
Sets the Activity to the specified version.
using System;
using System.Diagnostics;
using Autodesk.Forge;
using Autodesk.Forge.Client;
using Autodesk.Forge.Model;
namespace Example
{
public class SetActivityVersionExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2_application
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ActivitiesApi();
var id = id_example; // string |
var activityVersion = new ActivityVersion(); // ActivityVersion |
try
{
// Sets the Activity to the specified version.
apiInstance.SetActivityVersion(id, activityVersion);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActivitiesApi.SetActivityVersion: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| activityVersion | ActivityVersion |
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]