Skip to content

Instantly share code, notes, and snippets.

@steingrd
Created March 23, 2020 12:48
Show Gist options
  • Save steingrd/9570feece0741dcddc11cbc72eb85b93 to your computer and use it in GitHub Desktop.
Save steingrd/9570feece0741dcddc11cbc72eb85b93 to your computer and use it in GitHub Desktop.
% curl -v \
-F comment='kommentar' \
-F filename=filnavn.pdf \
-F attachToPayment=false \
-F attachToSale=true \
-F file=@vedlegg.pdf \
-H "Authorization: Bearer <token>" \
https://api.fiken.no/api/v2/companies/<companyname>/sales/<salesid>/attachments
> POST /api/v2/companies/fiken-demo-god-og-tydelig-musikk-as/sales/1029625303/attachments HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.64.1
> Accept: */*
> Authorization: Bearer <token>
> Content-Length: 23990
> Content-Type: multipart/form-data; boundary=------------------------f6bb4a75f5ca919f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment