docstr: Annotation Api: Test create incorrect annotation
docstr_tok: ["Annotation","Api",":","Test","create","incorrect","annotation"]
code: def test_create_incorrect_annotation(self):
      """
      Annotation Api: Test create incorrect annotation
      """
      layer = self.get_layer_with_annotation()
  
      self.login(username="admin")
      annotation_data = {
          "long_descr": "description",
      }
      uri = f"api/v1/annotation_layer/{layer.id}/annotation/"
      rv = self.client.post(uri, json=annotation_data)
      data = json.loads(rv.data.decode("utf-8"))
      assert rv.status_code == 400
      assert data == {
          "message": {
              "end_dttm": ["Missing data for required field."],
              "short_descr": ["Missing data for required field."],
              "start_dttm": ["Missing data for required field."],
          }
      }
  
imports: import json
  import pytest
  import prison
  from sqlalchemy.sql import func
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.annotations import Annotation, AnnotationLayer
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.annotation_layers.fixtures import create_annotation_layers, get_end_dttm, get_start_dttm
  from tests.unit_tests.annotation_layers.fixtures import START_STR, END_STR
label_desc: Use image node_id 26 for calling the TestAnnotationLayerApi obj's underlying member method code with example usage: obj.test_create_incorrect_annotation() without return types