createTrigger
    • PDF

    createTrigger

    • PDF

    Article summary

    Create trigger.

    POST https://dataflow.apigw.ntruss.com/api/v1/triggers
    

    Requests

    Request bodies

    Parameter nameRequiredTypeService limitsDescription
    nameYesString- Start with English letter or underscore ( _ )
    - English letter, number, underscore ( _ ), or hyphen ( - ) can be used
    - Input minimum 3, maximum 20 characters
    Job name
    typeYesStringSCHEDULED, NONETrigger type
    triggerRuleYesObjectTrigger option

    Responses

    Field nameTypeDescriptionNote
    triggerIdStringTrigger ID
    nameStringTrigger name
    typeStringTrigger type
    triggerRule.typeStringTrigger option type
    triggerRule.intervalStringTrigger interval
    triggerRule.timeStringTrigger repeat time
    triggerRule.dayOfWeekStringTrigger repeat day
    triggerRule.dateOfMonthStringTrigger repeat month
    triggerRule.executionDateStringTrigger execution time
    createdDateStringTrigger creation date
    updatedDateStringFinal update

    Response Status

    HTTP StatusDesc
    201Created (Creation complete)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal 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?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.