From a9c6681a2110f3edd9a6493b7c48924bb76b4183 Mon Sep 17 00:00:00 2001
From: Pascal Osterwinter <pascal.osterwinter@spotgroup.de>
Date: Wed, 18 May 2022 13:54:55 +0000
Subject: [PATCH] Updated curl code snippet to submit a submission

---
 docs/sending/submit.mdx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/sending/submit.mdx b/docs/sending/submit.mdx
index ce15b347e..72f0e420a 100644
--- a/docs/sending/submit.mdx
+++ b/docs/sending/submit.mdx
@@ -34,11 +34,11 @@ Ein Beispiel für die Nutzung des Endpunkt ist im Folgenden Ausschnitt dargestel
 $ export SUBMISSION_API=https://submission-api-testing.fit-connect.fitko.dev
 $ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
 $ export SUBMISSION_ID=63f0c991-0635-4e18-8a4b-fb0c01de9f5c
-$ curl \
-    -H "Authorization: Bearer $JWT_TOKEN" \
-    -H "Content-Type: application/json" \
-    --data '{ "encryptedMetadata": "6r4H2H_WIzCv8Pd-uetmcbK...iVBKF3ylHRUahmZ" }' \
-    -X PUT "$SUBMISSION_API/v1/submissions/$SUBMISSION_ID"
+$ export ENC_META_DATA=6r4H2H_WIzCv8Pd-uetmcbK...iVBKF3ylHRUahmZ
+$ curl -L -X PUT "$SUBMISSION_API/v1/submissions/$SUBMISSION_ID" \
+  -H "Authorization: Bearer $JWT_TOKEN" \
+  -H "Content-Type: application/json" \
+  --data-raw "{ \"encryptedMetadata\": \"$ENC_META_DATA\" }"
 ```
 
 </TabItem>
-- 
GitLab