Update connector
editUpdate connector
editUpdates a ServiceNow connector.
Request URL
editPUT <kibana host>:<port>/api/action/<connector ID>
URL parts
editThe URL must include the connector ID of the connector you are updating.
Call Find connectors to retrieve connector IDs.
Request body
editA JSON object with the fields you want to update:
| Name | Type | Description | Required |
|---|---|---|---|
|
Object containing the action’s configuration. |
Yes |
|
|
Object |
Object containing the ServiceNow account credentials used to create and update incidents:
|
Yes |
|
String |
The registered ServiceNow connector. |
Yes |
| Name | Type | Description | Required |
|---|---|---|---|
|
Object |
Contains a
|
Yes |
|
String |
URL of the ServiceNow instance. |
Yes |
Example request
editUpdates the description field mapping of connector ID
61787f53-4eee-4741-8df6-8fe84fa616f7:
PUT api/action/61787f53-4eee-4741-8df6-8fe84fa616f7
{
"name": "ServiceNow",
"config": {
"apiUrl": "https://dev78437.service-now.com",
"casesConfiguration": {
"mapping": [
{
"source": "title",
"target": "short_description",
"actionType": "overwrite"
},
{
"source": "description",
"target": "description",
"actionType": "append"
},
{
"source": "comments",
"target": "comments",
"actionType": "append"
}
]
}
},
"secrets": {
"username": "admin",
"password": "securePassword123!"
}
}
Response code
edit-
200 - Indicates a successful call.
Response payload
editThe updated JSON connector object.
Example response
edit{
"id": "61787f53-4eee-4741-8df6-8fe84fa616f7",
"actionTypeId": ".servicenow",
"name": "ServiceNow",
"config": {
"apiUrl": "https://dev78437.service-now.com",
"casesConfiguration": {
"mapping": [
{
"source": "title",
"target": "short_description",
"actionType": "overwrite"
},
{
"source": "description",
"target": "description",
"actionType": "append"
},
{
"source": "comments",
"target": "comments",
"actionType": "append"
}
]
}
}
}