Create documents and associate them to an asset

Through this API a document management document (Guarantee or Document) is created and associated to a human resource.

Input parameters

Parameter

Type

Required

Description

code

Text

Required

Human Resources 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":"7845123",
	"name":"Certificación trabajo en alturas",
	"description":"Certificación trabajo en alturas realizada por la empresa ABC",
	"group_description":"Certificación",
	"version":"0.001",
	"valid_from":"2019-10-27",
	"valid_until":"2021-10-27",
	"warranty":true,
	"iso_code":"ISO 39001",
	"author":"ISO"
}

Test IT

Language