♻️ use put and return 200 OK

This commit is contained in:
Fred KISSIE
2026-03-03 03:31:43 +01:00
parent 0a69131c38
commit 89e7107a47
5 changed files with 12 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ const setResourcePolicyPasswordBodySchema = z.strictObject({
});
registry.registerPath({
method: "post",
method: "put",
path: "/resource-policy/{resourcePolicyId}/password",
description:
"Set the password for a resource policy. Setting the password to null will remove it.",
@@ -95,7 +95,7 @@ export async function setResourcePolicyPassword(
success: true,
error: false,
message: "Resource policy password set successfully",
status: HttpCode.CREATED
status: HttpCode.OK
});
} catch (error) {
logger.error(error);