httpdomain
httpdomain copied to clipboard
Curl example does not allow --form
The request should look as follows:
curl -i -X POST https://api.compile.com/v21/encrypted_flies -H 'Accept: application/vnd.api+json' -H 'Api-Key: [API token]' -H 'Content-Type: multipart/form-data' --form 'Encrypted_flies[encryption_fingerprint]: c24c8711fed0fb9df377d4dad6090038063eec27:::d8919eb961da809e4d597f5c072e04383055e219' --form 'Encrypted_flies[items][][description]: my file
the best I can achieve is "Raw data" for both encrypted flies items for e.g.
--data-raw ':form body: encrypted_files[items][][description]:my file