API Endpoints
Fracttal →

Create documents and associate them to an asset

This API is used to create a document management document (Guarantee or Document) and associate it to an asset.

Input parameters

ParameterTypeRequiredDescription
codeTextRequiredCódigo ítem
id_type_itemnumberOptionalType of asset. This data applies when there are different types of assets with the same code.
It can be:
1: for Locations
2:for Equipment
3:for Tools
4:for Spare parts and supplies 5:for Digital
nameTextRequiredName of warranty
descriptionTextOptionalWarranty description
group_descriptionTextOptionalWarranty 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 TextOptionalDocument version
valid_fromDateOptionalValid from date
valid_untilDateOptionalValidity end date
warrantyBooleanOptionalIf it is a guarantee, send true, otherwise false
iso_codeTextOptionalISO document code
authorTextOptionalAuthor

Send the required fields and the parameters with the additional values you wish to insert .

Output parameters

ParameterTypeDescription
successBooleanTrue if the insert was successful or false otherwise
messageText200 if successful
dataTextJSON with inserted item
totalnumberNumber 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

Language