Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl example does not allow --form #67

Open
vladasj0729 opened this issue Mar 1, 2023 · 0 comments
Open

Curl example does not allow --form #67

vladasj0729 opened this issue Mar 1, 2023 · 0 comments

Comments

@vladasj0729
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant