Skip to main content
Version: 2.2.0

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 parametersTypeRequiredDescription
cdprodNumericYesProduct code
Constant value: 149
classnameStringYesClass name used in WADL
Constant value: supply_insert_interface
classpathStringYesPath to the class used in WADL
Constant value: sp_import

Example request:

Supported attributes:

Request body parameterTypeRequiredDescription
idobjectStringYesSupply ID #
nmobjectStringYesSupply name
idobjecttypeStringYesSupply type ID #
idteamStringYesResponsible team ID #
idmeasunityStringYesMeasurement unit ID #
dtrevisionStringNoRevision date
idcolorStringNoColor ID #
idodorStringNoOdor ID #
idonucodeStringNoONU code
idabntcodeStringNoABNT code
iddangerousnessStringNoHazard ID #
idclassificationStringNoClassification ID #
fgcontrolStringNoLot and series control [1 - Lot, 2 - Series]
fgphysicalstateStringNoPhysical state [1 - Solid, 2 - Liquid, 3 - Gas, 4 - Sludge]
vlcostStringNoHourly cost
iduserStringYes¹User ID
attributesStringNoAsset 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.
dsobservationStringNoComments
dsconstituentsStringNoGeneral 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
}
]
}