How to create draft entry with strapi v4?

You can follow this approach to create custom api in Strapi. Use the linked example and append it with your custom logic.