Stop a running build
POST/wp-json/wp2lms/static-builder/v1/builds/:id/stop
Requests stop of a running generation. If the build is not in a stoppable state, returns 409 cannot_stop. No request body.
Request
Responses
- 200
- 401
- 403
- 409
OK
Not authenticated. WordPress REST: rest_not_logged_in / rest_forbidden. Use cookie + X-WP-Nonce or Application Password.
Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.
wp2lms_static_builder_cannot_stop