put
https://app.fracttal.com/api/items_document_management/
Update the document management of an asset
Through this API you can update the document validity dates for an asset.
Input Parameters
The following information must be sent in the request body.
Parameter | Type | Required | Description |
|---|---|---|---|
id_attached | Text | Optional | Attachment code. (field id_attached ) |
valid_from | Text | Yes | Initial validity date. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'. |
valid_through | Text | Yes | Final validity date. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'. |
Output Parameters
| Parameter | Type | Description |
|---|---|---|
groups_attached_description | Text | Group |
description | Text | Description |
name | Text | Name |
version | Text | Version |
valid_from | Text | Valid from |
valid_through | Text | Valid until |
author | Text | Author |
code_iso | Text | ISO Code |
is_warranty | Boolean | Under warranty. |
status | Boolean | Validity |
Example:
Request: (PUT)https://develop.fracttal.com/api/items_document_management/4
{
"valid_from": "2020-12-14T05:00:00+00:00",
"valid_through": "2020-12-16T05:00:00+00:00"
}
{
"success": true,
"message": "200",
"data": [
{
"id": 4,
"id_company": 1190,
"id_group_attached": 1,
"groups_attached_description": "IDs",
"description": "SPARE PART|ENGINE|BEARINGS|CATHODE TUBE|BLOCK|CYLINDER HEAD|VALVE",
"name": "CLIENT CONTRACT 1",
"version": "1",
"valid_from": "2020-12-14T00:00:00+00:00",
"valid_through": "2020-12-16T00:00:00+00:00",
"author": "JCDIAZ",
"code_iso": "",
"is_warranty": false,
"status": false
}
],
"total": 1
}
