# ksqlDB REST API - Error: Statement type not supported for this resource

**URL:** https://forum.confluent.io/t/ksqldb-rest-api-error-statement-type-not-supported-for-this-resource/944
**Category:** ksqlDB
**Created:** [18 February 2021 13:54 UTC](https://forum.confluent.io/t/ksqldb-rest-api-error-statement-type-not-supported-for-this-resource/944 "2021-02-18T13:54:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gianlucanatali](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/gianlucanatali/32/302_2.png) [@gianlucanatali](https://forum.confluent.io/u/gianlucanatali)
#### Post date: [18 February 2021 13:54 UTC](https://forum.confluent.io/t/ksqldb-rest-api-error-statement-type-not-supported-for-this-resource/944/1 "2021-02-18T13:54:55Z")

</div>

If you are getting an error when sending an Insert into statement via REST API like the one below

`{"@type":"generic_error","error_code":40000,"message":"Statement type `io.confluent.ksql.parser.KsqlParser$PreparedStatement' not supported for this resource"}`

The query example

`INSERT INTO USER_GAME (USER, GAME) VALUES ('Test', STRUCT(SCORE:=80,LIVES:=0,LEVEL:=1));`

make sure you are poinnting to the **/ksql** endpoint , and not the **/query** endpoint.

You can find more documentation [ksqlDB Documentation - REST API](https://docs.ksqldb.io/en/latest/developer-guide/api/)

---

<div class="post-metadata">

### Author: ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)
#### Post date: [17 March 2021 16:02 UTC](https://forum.confluent.io/t/ksqldb-rest-api-error-statement-type-not-supported-for-this-resource/944/2 "2021-03-17T16:02:42Z")

</div>


