# Inconsistent fields in Kibana 8 Connector / Rule APIs -- connector\_type\_id

**URL:** https://discuss.elastic.co/t/inconsistent-fields-in-kibana-8-connector-rule-apis-connector-type-id/348590
**Category:** Kibana
**Tags:** docker
**Created:** [December 4, 2023, 6:10pm UTC](https://discuss.elastic.co/t/inconsistent-fields-in-kibana-8-connector-rule-apis-connector-type-id/348590 "2023-12-04T18:10:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jwhitby](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jwhitby](https://discuss.elastic.co/u/jwhitby)
#### Post date: [December 4, 2023, 6:10pm UTC](https://discuss.elastic.co/t/inconsistent-fields-in-kibana-8-connector-rule-apis-connector-type-id/348590/1 "2023-12-04T18:10:24Z")

</div>

Tested using Elastic / Kibana Version 8.11.1 docker containers.

The Kibana 8 connector / rule APIs documentation notes that the field `actionTypeId` has been updated to `connector_type_id`.

This field is accepted when you create an action via API but the response payload still uses `actionTypeId`:

Request:  
`{"connector_type_id":".index","name":"<site name> Alert Index","config":{"index":"alerts-<site id>","refresh":false,"executionTimeField":"@timestamp"}}`

Response:  
`[{"id":"35fd9e50-92ba-11ee-b15e-af8b4f215882","actionTypeId":".index","name":"Test Name Alert Index","isMissingSecrets":false,"config":{"index":"alerts-test","refresh":false,"executionTimeField":"@timestamp"},"isPreconfigured":false,"isDeprecated":false,"isSystemAction":false,"referencedByCount":0}]`

If you then try and create a rule using this connector it fails to recognize the field at all with the response:  
`{"statusCode":400,"error":"Bad Request","message":"[request body.actions.0.connector_type_id]: definition for this key is missing"}`

Using actionTypeId in the `connector` creation request works.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 1, 2024, 6:10pm UTC](https://discuss.elastic.co/t/inconsistent-fields-in-kibana-8-connector-rule-apis-connector-type-id/348590/2 "2024-01-01T18:10:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
