Send Data to Create a Doctype with attachment

Please help me to share some workable api link to send data to crate a new doctype with an attachment uploaded to newly created document. There are various discussion here but I could not get worked. Any hint or link for server side api and postman type example link.

Do you want to create a new DocType via API ?

Yes @TurkerTunali with file attachment like patient sent xray