createTrigger
- Print
- PDF
createTrigger
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Create trigger.
POST https://dataflow.apigw.ntruss.com/api/v1/triggers
Requests
Request bodies
Parameter name | Required | Type | Service limits | Description |
---|---|---|---|---|
name | Yes | String | - Start with English letter or underscore ( _ ) - English letter, number, underscore ( _ ), or hyphen ( - ) can be used - Input minimum 3, maximum 20 characters | Job name |
type | Yes | String | SCHEDULED, NONE | Trigger type |
triggerRule | Yes | Object | Trigger option |
Responses
Field name | Type | Description | Note |
---|---|---|---|
triggerId | String | Trigger ID | |
name | String | Trigger name | |
type | String | Trigger type | |
triggerRule.type | String | Trigger option type | |
triggerRule.interval | String | Trigger interval | |
triggerRule.time | String | Trigger repeat time | |
triggerRule.dayOfWeek | String | Trigger repeat day | |
triggerRule.dateOfMonth | String | Trigger repeat month | |
triggerRule.executionDate | String | Trigger execution time | |
createdDate | String | Trigger creation date | |
updatedDate | String | Final update |
Response Status
HTTP Status | Desc |
---|---|
201 | Created (Creation complete) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Examples
Request examples
POST /api/v1/triggers
Host: dataflow.apigw.ntruss.com
x-ncp-iam-access-key: {Access key}
x-ncp-apigw-signature-v2: {API GW signature}
x-ncp-apigw-timestamp: {timestamp}
{
"name": "trigger1",
"type": "SCHEDULED",
"triggerRule": {
"type": "RECURRING",
"interval": "DAY",
"time": "10:00"
}
}
Response examples
{
"triggerId": "T63391JxQHNj",
"name": "trigger1",
"type": "SCHEDULED",
"triggerRule": {
"type": "RECURRING",
"interval": "DAY",
"time": "10:00"
},
"createdDate": "2023-10-23T15:17:32.833",
"updatedDate": "2023-10-23T15:17:32.833"
}
Was this article helpful?