API documentation for LegalOn services
LegalOn API (1.3.1)
Languages
Servers
サーバーのURLは `{api_base_url}/rest/v1` です。
アクセストークン取得時のレスポンスに含まれる `api_base_url` の値を用いてサーバーの URL を構成してください。
https://{api_base_url_without_scheme}/rest/v1
Bodymultipart/form-datarequired
その他ファイルアップロードリクエスト
その他ファイル名。
対応拡張子は
- .pdf,
- .doc,
- .docx,
- .xls,
- .xlsx,
- .csv,
- .ppt,
- .pptx,
- .eml,
- .msg,
- .png,
- .gif,
- .jpg,
- .jpeg。
その他ファイルの MIME タイプ。
対応 MIME タイプは
- application/pdf,
- application/msword,
- application/vnd.openxmlformats-officedocument.wordprocessingml.document,
- application/vnd.ms-excel,
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
- text/csv,
- application/vnd.ms-powerpoint,
- application/vnd.openxmlformats-officedocument.presentationml.presentation,
- message/rfc822,
- application/vnd.ms-outlook,
- image/png,
- image/gif,
- image/jpeg。
- サーバーのURLは `{api_base_url}/rest/v1` です。
アクセストークン取得時のレスポンスに含まれる `api_base_url` の値を用いてサーバーの URL を構成してください。
https://{api_base_url_without_scheme}/rest/v1/contracts/other-files
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X POST \
'https://{api_base_url_without_scheme}/rest/v1/contracts/other-files' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F workspace_id=00000023-0000-0000-0001-000000000020 \
-F file_name=appendix.xlsx \
-F mime_type=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet \
-F 'file=<binary file content>'Response
application/json
{ "workspace_id": "00000023-0000-0000-0001-000000000020", "other_file_id": "00000016-0000-0000-0001-100000000201", "file_name": "appendix.xlsx", "mime_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }