Have a look at this cURL PATCH request - and see if you can PATCH a record simply for testing purposes:
Update todo with id = 1 -----> be sure to append the 1 to cURL
curl -k -3 -X PATCH https://dsp-yourdsp.cloud.dreamfactory.com/rest/db/todo/1 \
-H "X-DreamFactory-Application-Name: app_name here" \
-H "X-DreamFactory-Session-Token: session token here" \
-d '{ "name" : "success"}'
If you notice the rest/db(service)/todo(table)/1(record)
So, this will clearly update record one’s complete name field to: success
note: change the values to match what’s in your todo DB, but only try to update one value.
POSTing a record doesn’t require any id params, as it should update the id (most likely the primary key) by one.
curl -k -3 -X POST https://dsp-yourdsp.cloud.dreamfactory.com/rest/db/todo
-H “X-DreamFactory-Application-Name: app name here”
-H “X-DreamFactory-Session-Token: token here”
-d ‘{ “name” : “curl todo”, “complete” : false }’
As far as your question about updating the db without having an actual app_name in the request. You can preview how to do this with your Live API - simple go to the db service, and create records using valid JSON and it’ll become clear very quick how it’s done.
You’ve probably seen this but if not, have a look:
https://github.com/dreamfactorysoftware/dsp-core/wiki/Common-Headers-Parameters
https://github.com/dreamfactorysoftware/dsp-core/wiki/cURL-Examples
Let me know if you’ve got anymore questions.
Thanks,