This API is used to create a document management document (Guarantee or Document) and associate it to an asset.
Input parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| code | Text | Required | Código ítem | 
| id_type_item | number | Optional | Type of asset. This data applies when there are different types of assets with the same code. | 
| name | Text | Required | Name of warranty | 
| description | Text | Optional | Warranty description | 
| group_description | Text | Optional | Warranty group. If an existing group is to be associated, the name must be sent as created in Fracttal. If no group with the description sent is found, a new one will be created. | 
|  version  | Text | Optional | Document version | 
| valid_from | Date | Optional | Valid from date | 
| valid_until | Date | Optional | Validity end date | 
| warranty | Boolean | Optional | If it is a guarantee, send true, otherwise false | 
| iso_code | Text | Optional | ISO document code | 
| author | Text | Optional | Author | 
Send the required fields and the parameters with the additional values you wish to insert .
Output parameters
| Parameter | Type | Description | 
|---|---|---|
| success | Boolean | True if the insert was successful or false otherwise | 
| message | Text | 200 if successful | 
| data | Text | JSON with inserted item | 
| total | number | Number of records inserted (Always 1)200 if successful | 
Example:
Petición: (POST)https://app.fracttal.com/api/items_document_management
{
	"code":"AD-189",
	"id_type_item":2,
	"name":"Garantía de Buses Interurbanos",
	"description":"Descripción Garantía",
	"group_description":"Garantía Buses",
	"version":"0.001",
	"valid_from":"2015-10-27",
	"valid_until":"2020-10-27",
	"warranty":true,
	"iso_code":"ISO 39001",
	"author":"ISO"
}Test IT
