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 Classic and VPC
Overview
You can edit integrations.
Requests
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/integration/update
Method: POST
Request headers
The request headers specified in common settings are required.
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Request bodies
| Parameter name | Requirement status | Type | Restrictions | Description |
|---|---|---|---|---|
| id | Y | String | Integration Id | |
| name | Y | String | Integration name | |
| type | Y | String | Currently, only OUT_GOING is supported. |
Integration type |
| url | Y | String | URL to be called | |
| headers | N | Map<String, String> | Header to be used for the call | |
| payload | Y | String | Payload to be used for the call |
Examples
Request examples
The following is an example of editing an integration with the ID 999.
POST /cw_fea/real/cw/api/integration/update
Host: cw.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload:
{
"id": "999",
"name": "update",
"payload": "{\n\t\"text\": \"#{DOMAIN_CODE} => #{RULE_NAME} 's event is #{EVENT_STATUS}. The condition is #{RESOURCE_NAME} 's #{DIMENSIONS} #{METRIC} #{OPERATOR} #{CRITERIA}. The current value is #{VALUE}\"\n}",
"type": "OUT_GOING",
"url": "https://url"
}
Response examples
If editing is completed without errors, an HTTP code 200 is returned without a response body.