createConfig
- Print
- PDF
createConfig
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Creating and changing project settings
POST https://{endpoint}/config
Request
Request Parameters
Parameter | Required | Type | Limitation | Description |
---|---|---|---|---|
type | Yes | String | SEND_BLOCK_TIME | Type of setup to create or change |
subType | No | String | SEND_BLOCK_TIME : null | Subtype of setup type to create or change |
value | Yes | String | The 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 |
unit | Yes | String | SEND_BLOCK_TIME : DAY, HOUR | Units for set values |
Response
HTTP status code | Description |
---|---|
200 | Create and Change Complete |
400 | Authentication failed, invalid request. |
500 | Server 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
Property | Required | Type | Limitation | Description |
---|---|---|---|---|
type | Yes | String | SEND_BLOCK_TIME | Type of settings created or changed |
subType | No | String | SEND_BLOCK_TIME: null | Subtype for config Type |
value | Yes | String | SEND_BLOCK_TIME: send block hold time | Value for Settings |
Error Codes
HTTP status code | Return code | Response message |
---|---|---|
400 | 77101 | Error in login information |
400 | 77102 | BAD_REQUEST |
400 | 77103 | Resource not found |
403 | 77201 | No permissions |
403 | 77202 | No subscription |
405 | 77001 | METHOD_NOT_ALLOWED |
415 | 77002 | UNSUPPORTED_MEDIA_TYPE |
500 | 77301 | Default project not found |
500 | 77302 | Error in working with external system API |
500 | 77303 | Other INTERNAL_SERVER_ERROR |
Was this article helpful?