How to create job cluster using rest api

vijaykumar99535
New Contributor III

I am creating cluster using rest api call but every-time it is creating all purpose cluster. Is there a way to create job cluster and run notebook using python code?