The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in VPC
Create a trigger.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| POST | /api/v1/triggers |
Request headers
For information about the headers common to all Data Flow APIs, see Data Flow request headers.
Request body
You can include the following data in the body of your request:
| Field | Type | Required | Description |
|---|---|---|---|
name |
String | Required | Job name
|
type |
String | Required | Trigger type
|
triggerRule |
Object | Required | Trigger execution option |
triggerRule.type |
String | Required | Trigger execution option type
|
triggerRule.interval |
String | Conditional | Trigger execution cycle
|
triggerRule.time |
String | Conditional | Trigger repeat execution time (minute or time)
|
triggerRule.dayOfWeek[] |
Array | Conditional | Trigger repeat execution day of the week
|
triggerRule.dateOfMonth |
String | Conditional | Trigger repeat execution date
|
triggerRule.executionDate |
String | Conditional | Trigger execution date and time
|
Request example
The request example is as follows:
curl --location --request POST 'https://dataflow.apigw.ntruss.com/api/v1/triggers' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--data '{
"name": "trigger001",
"type": "SCHEDULED",
"triggerRule": {
"type": "RECURRING",
"interval": "DAY",
"time": "10:00"
}
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
triggerId |
String | - | Trigger ID |
name |
String | - | Trigger name |
type |
String | - | Trigger execution option type
|
triggerRule |
Object | - | Trigger execution option information |
triggerRule.type |
String | - | Trigger execution option type
|
triggerRule.interval |
String | - | Trigger execution cycle
|
triggerRule.time |
String | - | Trigger repeat execution time (minute or time)
|
triggerRule.dayOfWeek[] |
Array | - | Trigger repeat execution day of the week
|
triggerRule.dateOfMonth |
String | - | Trigger repeat execution date
|
triggerRule.executionDate |
String | - | Trigger execution date and time
|
createdDate |
String | - | Trigger creation date and time
|
updatedDate |
String | - | Trigger modification date and time
|
Response status codes
For response status codes common to all Data Flow APIs, see Data Flow response status codes.
Response example
The response example is as follows:
{
"triggerId": "rWOjcW******",
"name": "trigger1",
"type": "SCHEDULED",
"triggerRule": {
"type": "RECURRING",
"interval": "DAY",
"time": "10:00"
},
"createdDate": "2025-03-21T15:26:51+09:00",
"updatedDate": "2025-03-21T15:26:51+09:00"
}