From 6d7ee404f8bfe4914cfa30f485283817db9540c1 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 20 Mar 2025 02:03:34 +0000 Subject: [PATCH] Update Certificate.php Added the option to force the request, bypassing the validation from Ploi --- src/Ploi/Resources/Certificate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ploi/Resources/Certificate.php b/src/Ploi/Resources/Certificate.php index bb01f34..d9bca78 100644 --- a/src/Ploi/Resources/Certificate.php +++ b/src/Ploi/Resources/Certificate.php @@ -47,7 +47,7 @@ public function get(int $id = null): Response : $this->getPloi()->makeAPICall($this->getEndpoint()); } - public function create(string $certificate, string $type = 'letsencrypt'): Response + public function create(string $certificate, string $type = 'letsencrypt', boolean $force = false): Response { // Remove the id $this->setId(null); @@ -57,6 +57,7 @@ public function create(string $certificate, string $type = 'letsencrypt'): Respo 'body' => json_encode([ 'certificate' => $certificate, 'type' => $type, + 'force' => $force, ]), ];