Create extensionUpload

Creates an extension upload in Dynamics 365 Business Central.

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

Do not supply a request body for this method.

Response

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

Example

Request

Here is 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 is 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" : ""
}

See Also

Tips for working with the APIs
extensionUpload