Skip to content
Snippets Groups Projects
Commit 1c073bf7 authored by Pascal Osterwinter's avatar Pascal Osterwinter
Browse files

Updated curl code snippet to upload a attachment

parent 2be7c574
No related branches found
No related tags found
1 merge request!169Updated curl code snippet to upload a attachment
......@@ -32,11 +32,10 @@ Unvollständige Einreichungen, die durch das sendende System (Onlinedienst) nich
$ export SUBMISSION_ID=63f0c991-0635-4e18-8a4b-fb0c01de9f5c
$ export ATTACHMENT_ID=90ae8309-2102-4e81-a325-ceda480d0e9d
$ export ENC_FILE_CONTENT=6r4H2H_WIzCv8Pd-uetmcbK...iVBKF3ylHRUahmZ
$ curl \
-H "Authorization: Bearer $JWT_TOKEN" \
-H "Content-Type: application/jose" \
--data "$ENC_FILE_CONTENT" \
-X PUT "$SUBMISSION_API/v1/submissions/$SUBMISSION_ID/attachments/$ATTACHMENT_ID"
$ curl -L -X PUT "$SUBMISSION_API/v1/submissions/$SUBMISSION_ID/attachments/$ATTACHMENT_ID" \
-H "Authorization: Bearer $JWT_TOKEN" \
-H "Content-Type: application/jose" \
--data-raw "$ENC_FILE_CONTENT"
```
</TabItem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment