Hey,
I’m trying to learn how to use the data api.
I created a new Object called “tempbyedi” with one entry inside
Get request works fine.
I’m using the following python script to make a post request:
url = ‘https://maibook.es/version-test/api/1.1/obj/tempbyedi’
headers = {‘Authorization’: ‘Bearer myAPIKey’, ‘Content-Type’: ‘application/json’}
data={“mytext”: “test text”}
response = requests.post(url, headers=headers, json=data)
I get 200 with the following json:
{‘response’: {‘cursor’: 0,
‘results’: [{‘Modified Date’: ‘2023-05-20T10:45:26.706Z’,
‘Created Date’: ‘2023-05-20T10:45:26.698Z’,
‘Created By’: ‘admin_user_maibook_test’,
‘mytext’: ‘trial1’,
‘_id’: ‘1684579526698x474768646771548160’}],
‘count’: 1,
‘remaining’: 0}}
It does not contain the new entry! Just the old one.
Please help!