How to create record in 'draft' state[strapi v5]?

Hi,

I am using Strapi v5 and want to create a record using the REST API, but I need the record to be in ‘draft’ mode. I tried setting status: 'draft' and publishedAt: null, but I’m getting an error.

Does anyone have a solution for this?

Thank you!