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
curl -X POST https://example.com/wp-json/wp/v2/abilities/my-plugin/create-draft/run
180
+
181
+
# With input
165
182
curl -X POST \
166
183
-H "Content-Type: application/json" \
167
184
-d '{"input":{"option_name":"blogname","option_value":"New Site Name"}}' \
@@ -214,5 +231,5 @@ The API returns standard WordPress REST API error responses with these common co
214
231
-`ability_invalid_output` - output validation failed according to the ability's schema.
215
232
-`ability_invalid_execute_callback` - the ability's execute callback is not callable.
216
233
-`rest_ability_not_found` - the requested ability is not registered.
217
-
-`rest_ability_invalid_method` - the requested HTTP method is not allowed for executing the selected ability.
234
+
-`rest_ability_invalid_method` - the requested HTTP method is not allowed for executing the selected ability (e.g., using POST on a read-only ability or GET on a regular ability).
218
235
-`rest_ability_cannot_execute` - the ability cannot be executed due to insufficient permissions.
0 commit comments