API / Minn\Rest / ExistingPost

ExistingPost final class

Minn\Rest\ExistingPost · public/minn/src/Minn/Rest/ExistingPost.php · 10 lines · implements Minn\Http\Refusal

A post created with an id names one that exists: refused with rest_post_exists before the caller is judged, even signed out (probe patch-security). An id of 0 passes here and is refused later, as an invalid post id.

Public

staticrefuse(Minn\Http\Request $request): void#

Throws rest_post_exists for a non-empty id in the body or the query.