Bewerken

(automation API) Create extensionUpload

Creates an extension upload in Dynamics 365 Business Central.

Important

The recommended way to upload, install, and manage per-tenant extensions is now the Business Central Admin Center and its API. The in-product Extension Management upload flow and the Automation API extensionUpload endpoint are deprecated and planned for removal in 2027 release wave 1. Learn more in Deprecated features in the platform.

Bound Actions

Actions Return Type Description
Microsoft.NAV.upload none Uploads an extension.

HTTP requests

Replace the URL prefix for Business Central depending on environment following the guideline.

Insert extensionUpload

POST /microsoft/automation/v2.0/companies({companyId})/extensionUpload

Request headers

Header Value
Authorization Bearer {token}. Required.
Content-Type application/json

Request body

In the request body, supply a JSON representation of a extensionUpload object.

Response

If successful, this method returns 201 Created response code and a extensionUpload object in the response body.

Upload extensionUpload

POST /microsoft/automation/v2.0/companies({companyId})/extensionUpload({extensionUploadId})/Microsoft.NAV.upload

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns 204 No Content response code.

Example

Request

Here's an example of the request.

POST https://api.businesscentral.dynamics.com/v2.0/{environment name}/api/microsoft/automation/v2.0/companies({companyId})/extensionUpload
Content-type: application/json
{
    "schedule" : "Current version",
    "schemaSyncMode": "Add"
}

Response Here's an example of the response.

HTTP/1.1 201 Created
Content-type: application/json
{
    "systemId" : "f99be650-07ce-45df-a285-3afe69a953eb",
    "schedule" : "Current version",
    "schemaSyncMode": "Add",
    "extensionContent" : ""
}

Tips for working with the APIs
extensionUpload