createConfig
    • PDF

    createConfig

    • PDF

    Article Summary

    Creating and changing project settings

    POST https://{endpoint}/config
    

    Request

    Request Parameters

    ParameterRequiredTypeLimitationDescription
    typeYesStringSEND_BLOCK_TIMEType of setup to create or change
    subTypeNoStringSEND_BLOCK_TIME : nullSubtype of setup type to create or change
    valueYesStringThe content of the value is determined by type, subType, and unit. SEND_BLOCK_TIME: integer string(7 days or 168 hours or more.)Settings value to create or change
    unitYesStringSEND_BLOCK_TIME : DAY, HOURUnits for set values

    Response

    HTTP status codeDescription
    200Create and Change Complete
    400Authentication failed, invalid request.
    500Server error

    Example

    Request Example

    POST https://mail.apigw.ntruss.com/api/v1/config
    
    {
      "type": "SEND_BLOCK_TIME",
      "value": "180",
      "unit" : "HOUR"
    }
    
    

    Response Example

    {
      "type": "SEND_BLOCK_TIME",
      "subType": null,
      "value": "180"
    }
    

    Properties

    PropertyRequiredTypeLimitationDescription
    typeYesStringSEND_BLOCK_TIMEType of settings created or changed
    subTypeNoStringSEND_BLOCK_TIME: nullSubtype for config Type
    valueYesStringSEND_BLOCK_TIME: send block hold timeValue for Settings

    Error Codes

    HTTP status codeReturn codeResponse message
    40077101Error in login information
    40077102BAD_REQUEST
    40077103Resource not found
    40377201No permissions
    40377202No subscription
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301Default project not found
    50077302Error in working with external system API
    50077303Other INTERNAL_SERVER_ERROR

    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.