INSINS
This method allows adding/editing a supply by means of a REST web service.
POST /apigateway/se/generic/gn_webservice/gn_webservice_execute.php
Query parameters:
Query parameters | Type | Required | Description |
---|---|---|---|
cdprod | Numeric | Yes | Product codeConstant value: 149 |
classname | String | Yes | Class name used in WADLConstant value: supply_insert_interface |
classpath | String | Yes | Path to the class used in WADLConstant value: sp_import |
Example request:
Supported attributes:
Request body parameter | Type | Required | Description |
---|---|---|---|
idobject | String | Yes | Supply ID # |
nmobject | String | Yes | Supply name |
idobjecttype | String | Yes | Supply type ID # |
idteam | String | Yes | Responsible team ID # |
idmeasunity | String | Yes | Measurement unit ID # |
dtrevision | String | No | Revision date |
idcolor | String | No | Color ID # |
idodor | String | No | Odor ID # |
idonucode | String | No | ONU code |
idabntcode | String | No | ABNT code |
iddangerousness | String | No | Hazard ID # |
idclassification | String | No | Classification ID # |
fgcontrol | String | No | Lot and series control [1 - Lot, 2 - Series] |
fgphysicalstate | String | No | Physical state [1 - Solid, 2 - Liquid, 3 - Gas, 4 - Sludge] |
vlcost | String | No | Hourly cost |
iduser | String | Yes¹ | User ID |
attributes | String | No | Asset attributes. Example: Attribute*ID*#=value1_of_attribute , value2_of_attribute , value3_of_attribute .Note: ▪ For attributes with numeric value, the decimal place separator must be ‘.’ (point). ▪ For date fields, the value must have the "Y-M-D (Year-Month-Day)" format. |
dsobservation | String | No | Comments |
dsconstituents | String | No | General description of composition |
info
Yes¹ - Required only when the type of item used contains revision.
{
"idobject": "string",
"nmobject": "string",
"idobjecttype": "string",
"idteam": "string",
"vlcost": "string",
"idmeasunity": "string",
"dtrevision": "string",
"idcolor": "string",
"idodor": "string",
"idonucode": "string",
"idabntcode": "string",
"iddangerousness": "string",
"idclassification": "string",
"fgcontrol": "string",
"fgphysicalstate": "string",
"iduser": "string",
"attributes": "string",
"dsobservation": "string",
"dsconstituents": "string"
}
Example response:
200 OK
{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}