Skip to content

Instantly share code, notes, and snippets.

@marcellkiss
Created February 19, 2016 11:00
Show Gist options
  • Save marcellkiss/aff12c44dbd95231b535 to your computer and use it in GitHub Desktop.
Save marcellkiss/aff12c44dbd95231b535 to your computer and use it in GitHub Desktop.

TypeError: create() got an unexpected keyword argument 'datacheck'

We're sending the following:

{
  "datacheck": {
    "vehicle": {},
    "person": {
      "nachname": "Nutzer",
      "vorname": "Nadine",
      "strasse": "Südstr. 25",
      "plz": "50997",
      "ort": "Köln",
      "tel1": "02232/993585",
      "tel2": "0173/5252977",
      "email": "nadine.nutzer@made.de"
    }
  },
  "instructions": {
    "documents": []
  },
  "participants": {
    "insured": {},
    "witness": {},
    "witnesses": []
  },
  "date": {
    "today": 1455879377549,
    "date": "2016-02-19T10:56:17.549Z"
  },
  "location": {
    "address": "",
    "location": "",
    "use_phone_location": true,
    "notes": ""
  },
  "damage_picker": {
    "damage_location": [
      {
        "damaged": false,
        "id": "topLeft",
        "class": "top top--left"
      },
      {
        "damaged": false,
        "id": "topCenter",
        "class": "top top--center"
      },
      {
        "damaged": false,
        "id": "topRight",
        "class": "top top--right"
      },
      {
        "damaged": false,
        "id": "bottomLeft",
        "class": "bottom bottom--left"
      },
      {
        "damaged": false,
        "id": "bottomCenter",
        "class": "bottom bottom--center"
      },
      {
        "damaged": false,
        "id": "bottomRight",
        "class": "bottom bottom--right"
      },
      {
        "damaged": false,
        "id": "leftTop",
        "class": "left left--top"
      },
      {
        "damaged": false,
        "id": "leftTop2",
        "class": "left left--top2"
      },
      {
        "damaged": false,
        "id": "leftMiddle",
        "class": "left left--middle"
      },
      {
        "damaged": false,
        "id": "leftBottom2",
        "class": "left left--bottom2"
      },
      {
        "damaged": false,
        "id": "leftBottom",
        "class": "left left--bottom"
      },
      {
        "damaged": false,
        "id": "rightTop",
        "class": "right right--top"
      },
      {
        "damaged": false,
        "id": "rightTop2",
        "class": "right right--top2"
      },
      {
        "damaged": false,
        "id": "rightMiddle",
        "class": "right right--middle"
      },
      {
        "damaged": false,
        "id": "rightBottom2",
        "class": "right right--bottom2"
      },
      {
        "damaged": false,
        "id": "rightBottom",
        "class": "right right--bottom"
      }
    ]
  },
  "additionals": {
    "injured": false,
    "police_called": false,
    "damage_type": 0,
    "damage_location": 0,
    "photos": []
  },
  "summary": {
    "description": "",
    "hohe": "0 €"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment