Documents
هذه الصفحة غير متوفرة باللغة العربية. يتم عرض النسخة الإنجليزية.
Create a new Document
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Header Parameters
accept-language?string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v2/documents" \ -H "accept-language: ja" \ -H "Content-Type: application/json" \ -d '{ "clientId": 0, "file": "string", "status": "new", "typeId": 0 }'{ "id": 0, "type": { "id": 0, "description": "Types of documents by corporate clients", "enabled": true, "example": "example", "group": { "id": 0, "description": "Documents by corporate clients", "enabled": true, "name": "corporate", "priority": 1, "type": "one" }, "maxFiles": 10, "name": "corporate", "priority": 1 }, "status": "approved", "applicationId": 1, "files": [ { "id": 8, "file": "y/1662913861_photo_2022-09-08_11-23-06.jpg" } ], "createTime": "2022-01-01T00:00:00+00:00"}{ "error": { "message": "Bad Request", "code": 0, "details": [ { "issue": "The selected value is invalid.", "field": "parameter" } ] }}{ "error": { "message": "Unauthorized" }}{ "error": { "message": "Forbidden" }}{ "error": { "message": "Too Many Requests" }}{ "error": { "message": "Service Unavailable" }}