You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After consumed the endpoint, i got the below error message:
HTTP: 500 Internal Server Error
Response { "error": { "code": null, "message": "Argument 3 passed to Directus\\Services\\AbstractService::validatePayload() must be of the type array, null given, called in /Users/fayezabuhilow/Projects/www/tajrobtk/src/core/Directus/Services/ItemsService.php on line 238", "class": "TypeError", "file": "/Users/fayezabuhilow/Projects/www/tajrobtk/src/core/Directus/Services/AbstractService.php", "line": 380 } }
So, could you please let me know how i can pass the category parameters in my request?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
I was trying to add a new item "Collection name post" that have the following fields:
Below is my curl request:
`
curl --location --request POST 'http://directus.local/tajrobtak/items/post?access_token=2P50KvwMIdZrSSzwgtU*****'
--header 'Content-Type: application/json'
--data-raw '{
`
After consumed the endpoint, i got the below error message:
{ "error": { "code": null, "message": "Argument 3 passed to Directus\\Services\\AbstractService::validatePayload() must be of the type array, null given, called in /Users/fayezabuhilow/Projects/www/tajrobtk/src/core/Directus/Services/ItemsService.php on line 238", "class": "TypeError", "file": "/Users/fayezabuhilow/Projects/www/tajrobtk/src/core/Directus/Services/AbstractService.php", "line": 380 } }
So, could you please let me know how i can pass the category parameters in my request?
Beta Was this translation helpful? Give feedback.
All reactions