A few things to try… Confirm you are using POST
and not GET
when hitting the endpoint. Postman could be helpful here.
It appears you are testing your endpoint using Pretty Permalinks. Confirm you have Post Name permalink structure setup.
This might be the solution to your problem.
If that works however you are wanting to use Plain Permalinks format add the rest_route
query parameter.
Example:
/wp-json/lic-api/v1/deletecustomrow/3
becomes
/?rest_route=/lic-api/v1/deletecustomrow/3
Related Posts:
- Why is my custom API endpoint not working?
- WordPress 4.7 REST API endpoints
- Can I define multiple callback methods depending on the call method?
- Query the REST API for a Tag by slug
- Rest API Custom Endpoint with space character
- Is there anyway to format my EndPoint URL in WordPress?
- Custom Rest API POST endpoint with conditionally required parameters
- How to force JWT auth for default GET endpoints of WordPress rest api?
- WordPress Rest API custom endpoint for RSS feed
- Custom endpoint to get all custom taxonomy terms
- What’s the right way to validate JSON data coming from an AJAX POST request?
- How can I secure my custom rest api endpoint or add under a already existing rest group
- Securing REST API wp-json/wp/v2/users endpoint
- Custom rest api endpoint response json problem
- Does something like is_rest() exist
- REST API purpose?
- Get post count in wp rest API v2 and get all categories
- WP REST API — How to change HTTP Response status code?
- Search WP API using the post title
- Understanding SHORTINIT with WordPress 5
- Does pre_get_posts affect REST API responses?
- Filter post_content before loading in Gutenberg editor
- How to send multipart form data to WordPress endpoint
- Trying to get an api request getting error 404
- rest_post_query on multiple post types?
- Wp Rest Api Custom Endpoint for page subpages
- Request object for validate_callback
- Continue execution after WP REST API response
- WP REST API returns incorrect data?
- Exclude posts w/ specific post_meta on Rest API endpoint
- Is it posible to use wp.data.select(‘core’) outside a block?
- Can you Use the Rest API to query a custom database table
- Return WP_Error as WP_REST_Response
- What is the meta field in the response of the user REST API?
- Is there any way to clear cache when making REST API request?
- Custom API endpoint to create gallery for post
- Register REST route with a multi-value parameter
- How do I add meta when creating a post with rest api?
- rest_api_init is run on every rest call to endpoint
- WordPress + REST API v2 and private pages Load by slug
- Change permissions on REST api?
- WP-REST create user with custom meta
- receive a custom parameter with rest api
- PHP: authenticate for a REST request?
- Is it Ok to restrict Access-Control-Allow-Origin for /wp-json requests?
- Validate rest-api call on create
- Authenticate current user to REST API
- rest api endpoint – accept diacritic characters
- Can’t retrieve body params from PUT endpoint using formdata
- WordPress REST API rest_comment_invalid_author Sorry, you are not allowed to edit ‘author’ for comments
- How to delete user using rest api without reassigning
- Accessing private posts through REST API, same code that works in remote doesn’t in local
- Rest API: trouble receiving response through script (browser and Postman display correctly)
- Advanced Access Manager: RESTful endpoint to refresh token
- `WP_REST_Controller::get_endpoint_args_for_item_schema` Does Not Set `required` Property from Schema
- Extending REST API responses
- How to add an endpoint for my custom post type? /wp-json/wp/v2/posts is working but it didn’t in the custom post
- How would I know if my system using REST api or not?
- Error message: Response is not a valid JSON response
- How to use query parameters, as “_fields”, to filter data inside an array in the REST API?
- WordPress server banning IP
- How to add Relations of a CCT from JetEngine via WordPress Rest API
- WP Rest_API- Post request for images returns empty
- DELETE request using WP REST API
- Pass multiple tags slug to rest API
- Return a WP_REST_Response from an inner function (and not from the root callback)
- register_rest_route with method POST but in wp-json/ is showing GET
- wp_nonce vs jwt
- Rest Api fetching only one random post
- How to add field to custom post type endpoint
- Accessing Custom REST endpoint with rest_do_request()
- How to add taxonomy to a post using WP REST API?
- WP CLI in WP 5.3 with PHP 7.4
- Get wordpress post with featured image, category and tag from WordPress API
- WP API file_get_contents return TTP request failed! HTTP/1.1 401 Unauthorized
- Extract XML/JSON element from Zillow API response and populate into Gravity Forms field
- REST API and Loopback error
- Rest API: Register and Login errors aren’t specific
- WordPress single page website redirect to index.html
- How to get the most recently updated orders via the REST API?
- Fetching all users that didn’t post with rest api (current version 2)
- Calling a python script from custom wordpress rest api returns null
- WordPress RESTAPI – Restrict unknown
- WordPress Rest API Error 502
- Fix Characters WordPress Ionic App
- Can we use website data which is having wp rest api plugin?
- WP Rest API V2 OR Operator in URL
- how can I add an URL parameter to a rest route using register_rest_route()?
- Is it possible to bulk update a table using WP Rest API?
- Call to undefined function upload_is_user_over_quota()
- Fetch post by author slug
- Cant POST with REST API on WordPress
- How can I set the default ‘orderby’ and ‘order’ parameters for a REST API call?
- Custom WP rest api endpoint only working on non https?
- get the current logged in user using WooCommerce API in React App [closed]
- Problem with custom WordPress Rest API search route with query parameters
- What filtering is available for backbone.js?
- How to limit what fields are returned through the WP API Backbone JS client
- Woocommerce API for calling products by Category ID
- wordpress rest api authentication failed