cURL
curl --request POST \ --url https://api.example.com/api/documents/ \ --header 'Content-Type: application/json' \ --cookie sessionid= \ --data ' { "file": "<string>", "original_name": "<string>", "case_id": 123, "check_id": 123, "customer_id": 123, "delete_after": 123 } '
{ "id": 123, "check": 123, "file": "<string>", "original_name": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "case": 123, "customer": 123, "delete_after": -1 }
Upload a document and attach it to a case, check, or customer
Write serializer for Document upload.
Base64 encoded file content.
255
ID of the case
ID of the check
ID of the customer
Number of days until deletion. Max 365. For immediate deletion, use 0.
Read-only serializer for Document.
Days until deletion.
-2147483648 <= x <= 2147483647
Was this page helpful?