Whitebrim
Whitebrim

Reputation: 394

How can I change strapi entries with HTTP requests?

I want to make a leaderboard, so I need to change or delete entries from my game. In strapi admin panel in "roles & permissions" is written, that Update is "PUT" and Destroy is "DELETE" Http request.

Strapi admin panel screenshot

When I send PUT/DELETE requests, strapi returns 404 error. Only POST and GET request works. I use Postman. Сan you explain how to change strapi database entries?

Upvotes: 0

Views: 403

Answers (1)

Derrick Mehaffy
Derrick Mehaffy

Reputation: 845

you have to send the ID in the PUT/Delete request:

PUT http://localhost:1337/snlbs/1234

Upvotes: 1

Related Questions