PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/?api-version=2023-01-01

Description for Create function for web site, or a deployment slot.

Servers

Path parameters

Name Type Required Description
name String Yes

Site name.

slot String Yes

Name of the deployment slot.

subscriptionId String Yes

Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

resourceGroupName String Yes

Name of the resource group to which the resource belongs.

functionName String Yes

Function name.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
id String No

Resource Id.

name String No

Resource Name.

properties Object No

FunctionEnvelope resource specific properties

properties.files Object No

File list.

properties.isDisabled Boolean No

Gets or sets a value indicating whether the function is disabled

properties.config Object No

Config information.

properties.secrets_file_href String No

Secrets file URI.

properties.test_data String No

Test data used when testing via the Azure Portal.

properties.invoke_url_template String No

The invocation URL

properties.href String No

Function URI.

properties.config_href String No

Config URI.

properties.test_data_href String No

Test data URI.

properties.script_href String No

Script URI.

properties.script_root_path_href String No

Script root path URI.

properties.function_app_id String No

Function App ID.

properties.language String No

The function language

type String No

Resource type.

kind String No

Kind of resource.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.