I have been using the Method API for a couple years now and even when things are not clearly documented I have been able to figure them out from the examples in the API docs. However I have not been able to successfully create an Item through the API.
For example, I tried posting this item with this API call:
curl --location --request POST 'https://rest.method.me/api/v1/tables/item' \
--header 'Authorization: APIKey ***' \
--header 'Content-Type: application/json' \
--data-raw '{
"ItemType": "Inventory",
"FullName": "dB Technologies USA Inc",
"IsActive": true,
"Name": "dB Technologies USA Inc",
"PurchaseCost":"0",
"SalesDesc": "",
"QuantityOnHand": "1",
"IncomeAccount": "Integration:Sales",
"COGSAccount": "Cost of Goods Sold",
"AssetAccount": "Inventory Asset-1",
"PrefVendor_RecordID": 4377
}
'
It sucessfully creates a new record, but there is no Name or Description. The other fields do show up.
What do I need to change to be able to create a new Item so the name and description shows up?
Does someone have an example API post?