| POST | /document/create |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Title | body | string | Yes | |
| DocumentCode | body | string | Yes | |
| Description | body | string | Yes | |
| DocumentPolicyId | body | int? | No | |
| MainId | body | int? | No | |
| ScopeType | body | int | No | |
| DocumentTypeId | body | int? | No | |
| RequireLegalApproval | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| Code | form | int | No | |
| Message | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /document/create HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
title: String,
documentCode: String,
description: String,
documentPolicyId: 0,
mainId: 0,
scopeType: 0,
documentTypeId: 0,
requireLegalApproval: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
code: 0,
message: String
}