All URIs are relative to https://developer.api.autodesk.com
Method | HTTP request | Description |
---|---|---|
createAppPackage | POST /autocad.io/us-east/v2/AppPackages | Creates an AppPackage module. |
deleteAppPackage | DELETE /autocad.io/us-east/v2/AppPackages('{id}') | Removes a specific AppPackage. |
deleteAppPackageHistory | POST /autocad.io/us-east/v2/AppPackages('{id}')/Operations.DeleteHistory | Removes the version history of the specified AppPackage. |
getAllAppPackages | GET /autocad.io/us-east/v2/AppPackages | Returns the details of all AppPackages. |
getAppPackage | GET /autocad.io/us-east/v2/AppPackages('{id}') | Returns the details of a specific AppPackage. |
getAppPackageVersions | GET /autocad.io/us-east/v2/AppPackages('{id}')/Operations.GetVersions | Returns all old versions of a specified AppPackage. |
getUploadUrl | GET /autocad.io/us-east/v2/AppPackages/Operations.GetUploadUrl | Requests a pre-signed URL for uploading a zip file that contains the binaries for this AppPackage. |
getUploadUrlWithRequireContentType | GET /autocad.io/us-east/v2/AppPackages/Operations.GetUploadUrl(RequireContentType={require}) | Requests a pre-signed URL for uploading a zip file that contains the binaries for this AppPackage. Unlike the GetUploadUrl method that takes no parameters, this method allows the client to request that the pre-signed URL to be issued so that the subsequent HTTP PUT operation will require Content-Type=binary/octet-stream. |
patchAppPackage | PATCH /autocad.io/us-east/v2/AppPackages('{id}') | Updates an AppPackage by specifying only the changed attributes. |
setAppPackageVersion | POST /autocad.io/us-east/v2/AppPackages('{id}')/Operations.SetVersion | Sets the AppPackage to the specified version. |
updateAppPackage | PUT /autocad.io/us-east/v2/AppPackages('{id}') | Updates an AppPackage by redefining the entire Activity object. |
\Autodesk\Forge\Client\Model\AppPackage createAppPackage($app_package)
Creates an AppPackage module.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$app_package = new \Autodesk\Forge\Client\Model\AppPackage(); // \Autodesk\Forge\Client\Model\AppPackage |
try {
$result = $apiInstance->createAppPackage($app_package);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->createAppPackage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
app_package | \Autodesk\Forge\Client\Model\AppPackage |
\Autodesk\Forge\Client\Model\AppPackage
- 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]
deleteAppPackage($id)
Removes a specific AppPackage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
try {
$apiInstance->deleteAppPackage($id);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->deleteAppPackage: ', $e->getMessage(), PHP_EOL;
}
?>
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]
deleteAppPackageHistory($id)
Removes the version history of the specified AppPackage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
try {
$apiInstance->deleteAppPackageHistory($id);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->deleteAppPackageHistory: ', $e->getMessage(), PHP_EOL;
}
?>
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]
\Autodesk\Forge\Client\Model\DesignAutomationAppPackages getAllAppPackages()
Returns the details of all AppPackages.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
try {
$result = $apiInstance->getAllAppPackages();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->getAllAppPackages: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Autodesk\Forge\Client\Model\DesignAutomationAppPackages
- 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]
\Autodesk\Forge\Client\Model\AppPackage getAppPackage($id)
Returns the details of a specific AppPackage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
try {
$result = $apiInstance->getAppPackage($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->getAppPackage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\Autodesk\Forge\Client\Model\AppPackage
- 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]
\Autodesk\Forge\Client\Model\DesignAutomationAppPackages getAppPackageVersions($id)
Returns all old versions of a specified AppPackage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
try {
$result = $apiInstance->getAppPackageVersions($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->getAppPackageVersions: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\Autodesk\Forge\Client\Model\DesignAutomationAppPackages
- 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]
getUploadUrl()
Requests a pre-signed URL for uploading a zip file that contains the binaries for this AppPackage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
try {
$apiInstance->getUploadUrl();
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->getUploadUrl: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
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]
getUploadUrlWithRequireContentType($require)
Requests a pre-signed URL for uploading a zip file that contains the binaries for this AppPackage. Unlike the GetUploadUrl method that takes no parameters, this method allows the client to request that the pre-signed URL to be issued so that the subsequent HTTP PUT operation will require Content-Type=binary/octet-stream.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$require = true; // bool |
try {
$apiInstance->getUploadUrlWithRequireContentType($require);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->getUploadUrlWithRequireContentType: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
require | bool |
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]
patchAppPackage($id, $app_package)
Updates an AppPackage by specifying only the changed attributes.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
$app_package = new \Autodesk\Forge\Client\Model\AppPackageOptional(); // \Autodesk\Forge\Client\Model\AppPackageOptional |
try {
$apiInstance->patchAppPackage($id, $app_package);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->patchAppPackage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
app_package | \Autodesk\Forge\Client\Model\AppPackageOptional |
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]
setAppPackageVersion($id, $app_package_version)
Sets the AppPackage to the specified version.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
$app_package_version = new \Autodesk\Forge\Client\Model\AppPackageVersion(); // \Autodesk\Forge\Client\Model\AppPackageVersion |
try {
$apiInstance->setAppPackageVersion($id, $app_package_version);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->setAppPackageVersion: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
app_package_version | \Autodesk\Forge\Client\Model\AppPackageVersion |
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]
updateAppPackage($id, $app_package)
Updates an AppPackage by redefining the entire Activity object.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Autodesk\Forge\Client\Api\AppPackagesApi($authObject);
$id = "id_example"; // string |
$app_package = new \Autodesk\Forge\Client\Model\AppPackage(); // \Autodesk\Forge\Client\Model\AppPackage |
try {
$apiInstance->updateAppPackage($id, $app_package);
} catch (Exception $e) {
echo 'Exception when calling AppPackagesApi->updateAppPackage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
app_package | \Autodesk\Forge\Client\Model\AppPackage |
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]