Package version:

Interface WebHookActivity

WebHook activity.

interface WebHookActivity {
    authentication?: WebActivityAuthentication;
    body?: any;
    dependsOn?: ActivityDependency[];
    description?: string;
    headers?: {
        [propertyName: string]: any;
    };
    method: string;
    name: string;
    onInactiveMarkAs?: string;
    policy?: SecureInputOutputPolicy;
    reportStatusOnCallBack?: any;
    state?: string;
    timeout?: string;
    type: "WebHook";
    url: any;
    userProperties?: UserProperty[];
}

Hierarchy (view full)

Properties

authentication?: WebActivityAuthentication

Authentication method used for calling the endpoint.

body?: any

Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string).

dependsOn?: ActivityDependency[]

Activity depends on condition.

description?: string

Activity description.

headers?: {
    [propertyName: string]: any;
}

Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string).

method: string

Rest API method for target endpoint.

name: string

Activity name.

onInactiveMarkAs?: string

Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.

Activity policy.

reportStatusOnCallBack?: any

When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with resultType boolean).

state?: string

Activity state. This is an optional property and if not provided, the state will be Active by default.

timeout?: string

The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

type

Polymorphic discriminator, which specifies the different types this object can be

url: any

WebHook activity target endpoint and path. Type: string (or Expression with resultType string).

userProperties?: UserProperty[]

Activity user properties.