tencent cloud

APIs

CreateAppTrigger

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-04 21:49:00

1. API Description

Domain name for API request: adp.intl.tencentcloudapi.com.

CreateAppTrigger

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateAppTrigger.
Version Yes String Common Params. The value used for this API: 2026-05-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
AppId No String

Application ID.

ExecuteConfig No ExecuteConfig

Application trigger execution configuration

ExecuteType No Integer
Enumeration item Enumeration value Description
APP_TRIGGER_EXECUTE_TYPE_UNSPECIFIED 0 Unspecified
APP_TRIGGER_EXECUTE_TYPE_PROMPT 1 Command execution
APP_TRIGGER_EXECUTE_TYPE_WORKFLOW 2 Workflow execution
PushConfig No TimerPushConfig

Third-party push configuration

Scope No Integer
Enumeration item Enumeration value Description
APP_TRIGGER_SCOPE_UNSPECIFIED 0 Unspecified
APP_TRIGGER_SCOPE_APP 1 B-end admin
APP_TRIGGER_SCOPE_USER 2 C-end visitor
TriggerConfig No TriggerConfig

Trigger configuration

TriggerName No String

Trigger name.

TriggerType No Integer
Enumeration itemEnumeration valueDescription
APP_TRIGGER_TYPE_UNSPECIFIED0Unspecified
APP_TRIGGER_TYPE_SCHEDULED1Scheduled trigger
APP_TRIGGER_TYPE_WEBHOOK2Webhook trigger
UserId No String

Visitor ID.

3. Output Parameters

Parameter Name Type Description
TriggerId String

Application trigger ID

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Success

Input Example

POST / HTTP/1.1
Host: adp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAppTrigger
<Common request parameters>

{
    "AppId": "20754157***********",
    "ExecuteConfig": {
        "WorkflowConfig": {
            "ParamBindingsApi": {
                "ParamList": []
            },
            "ParamBindingsWorkflow": {
                "ParamList": [
                    {
                        "ParamName": "name",
                        "ParamType": 0,
                        "Value": {
                            "VariableName": "Name"
                        }
                    }
                ]
            },
            "WorkflowId": "2428abbd-9044-4031-8a5a-41ff3dc63fa2"
        }
    },
    "ExecuteType": 2,
    "PushConfig": {
        "PushChannel": 4,
        "PushTargetId": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=***********************************",
        "PushTargetType": 2,
        "PushWebhookUrl": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=***********************************"
    },
    "TriggerConfig": {
        "WebhookConfig": {
            "ParamSchemaConfig": {
                "SchemaList": [
                    {
                        "ParamName": "Name",
                        "ParamType": 0,
                        "Required": true
                    }
                ]
            },
            "WebhookKey": "************************************",
            "WebhookToken": "************************************************",
            "WebhookUrl": "https:/adp.cloud.tencent.com/adp/v2/app/2075415763781738240/trigger/webhook/************************************"
        }
    },
    "TriggerName": "event",
    "TriggerType": 2
}

Output Example

{
    "Response": {
        "TriggerId": "a0129199-5942-478b-af9f-16b201295e65",
        "RequestId": "03c7e279-063b-4900-a6f3-df82f5bc0bd4"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan