I was able to create a new Case using the REST API but i need some help regarding these.
I was able to create case with attachments. we need to use two different APIs
/services/data/v55.0/sobjects/Case
After Creating case it will return Case Id
/services/data/v55.0/sobjects/ContentVersion
Convert File to Base64
payload = json.dumps({
'Title': 'file.csv',
'PathOnClient': 'Simple',
'ContentLocation': 'S',
'FirstPublishLocationId': caseid,
'VersionData': Base64
})