This documentation is for ArcGIS REST JS 3.x which is no longer maintained. For the latest 4.x documentation see ArcGIS REST JS on the ArcGIS Developer website.

serializeItem

Function

Serialize an item and its data into a json format accepted by the Portal API for create and update operations

Parameters

Parameter Type Default Notes
item Required IItemAdd | IItemUpdate | IItem

Item to be serialized

Returns

a formatted json object to be sent to Portal

any

Function defined in packages/arcgis-rest-portal/src/items/helpers.ts:255