URL: http://services3.arcgis.com/AG2sQrT8baMAzrY7/ArcGIS/rest/services/demomap/FeatureServer/0/[addFeatures|updateFeatures|deleteFeatures] QUERY: http://services3.arcgis.com/AG2sQrT8baMAzrY7/ArcGIS/rest/services/demomap/FeatureServer/0/query? where=objectid>0& objectIds=& time=& geometry=& geometryType=esriGeometryEnvelope& inSR=& spatialRel=esriSpatialRelIntersects& resultType=none& distance=& units=esriSRUnit_Meter& outFields=*& returnGeometry=true& multipatchOption=& maxAllowableOffset=& geometryPrecision=& outSR=& returnIdsOnly=false& returnCountOnly=false& returnExtentOnly=false& returnDistinctValues=false& orderByFields=& groupByFieldsForStatistics=& outStatistics=& resultOffset=& resultRecordCount=& returnZ=false& returnM=false& quantizationParameters=& f=pjson& token= http://services3.arcgis.com/AG2sQrT8baMAzrY7/ArcGIS/rest/services/demomap/FeatureServer/0/query?where=objectid>0&f=pjson&outFields=* RESULTS: { "objectIdFieldName" : "OBJECTID", "globalIdFieldName" : "", "geometryType" : "esriGeometryPoint", "spatialReference" : { "wkid" : 4326, "latestWkid" : 4326 }, "fields" : [ { "name" : "OBJECTID", "type" : "esriFieldTypeOID", "alias" : "OBJECTID", "sqlType" : "sqlTypeOther", "domain" : null, "defaultValue" : null }, { "name" : "attachment1", "type" : "esriFieldTypeString", "alias" : "attachment1", "sqlType" : "sqlTypeOther", "length" : 200, "domain" : null, "defaultValue" : null }, { "name" : "attachment2", "type" : "esriFieldTypeString", "alias" : "attachment2", "sqlType" : "sqlTypeOther", "length" : 200, "domain" : null, "defaultValue" : null }, { "name" : "attachment3", "type" : "esriFieldTypeString", "alias" : "attachment3", "sqlType" : "sqlTypeOther", "length" : 50, "domain" : null, "defaultValue" : null }, { "name" : "description", "type" : "esriFieldTypeString", "alias" : "description", "sqlType" : "sqlTypeOther", "length" : 200, "domain" : null, "defaultValue" : null }, { "name" : "contactphone", "type" : "esriFieldTypeString", "alias" : "contactphone", "sqlType" : "sqlTypeOther", "length" : 50, "domain" : null, "defaultValue" : null }, { "name" : "contactemail", "type" : "esriFieldTypeString", "alias" : "contactemail", "sqlType" : "sqlTypeOther", "length" : 100, "domain" : null, "defaultValue" : null }, { "name" : "x", "type" : "esriFieldTypeDouble", "alias" : "x", "sqlType" : "sqlTypeOther", "domain" : null, "defaultValue" : null }, { "name" : "y", "type" : "esriFieldTypeDouble", "alias" : "y", "sqlType" : "sqlTypeOther", "domain" : null, "defaultValue" : null }, { "name" : "address", "type" : "esriFieldTypeString", "alias" : "address", "sqlType" : "sqlTypeOther", "length" : 200, "domain" : null, "defaultValue" : null } ], "features" : [ { "attributes" : { "OBJECTID" : 2, "attachment1" : "http://www.chinadaily.com.cn/m/tianjin2012/images/attachement/jpg/site1/20120201/002564baf2bf109344b118.jpg", "attachment2" : "http://www.chinadaily.com.cn/m/tianjin2012/images/attachement/jpg/site1/20120201/002564baf2bf1093450320.jpg", "attachment3" : "iVBORw0KGgoAAAANSUhEUgAAACQAAAAmCAYAAACsyDmTAAAAAX", "description" : "sample data", "contactphone" : null, "contactemail" : "tangsabrina08@gmail.com", "x" : 43.6581103, "y" : -79.3777791, "address" : "222 Jarvis St, Toronto, ON" }, "geometry" : { "x" : -78.831321024999966, "y" : 43.658110278000038 } }, { "attributes" : { "OBJECTID" : 3, "attachment1" : "1.jpg", "attachment2" : "2.jpg", "attachment3" : "3.jpg", "description" : "sample data 3", "contactphone" : null, "contactemail" : "test@test.com", "x" : 11, "y" : 12, "address" : "222 Jarvis St, Toronto, ON" }, "geometry" : { "x" : -78.831321024999966, "y" : 44.658110278000038 } }, { "attributes" : { "OBJECTID" : 4, "attachment1" : "1.jpg", "attachment2" : "2.jpg", "attachment3" : "3.jpg", "description" : "sample data 3", "contactphone" : null, "contactemail" : "tangsabrina08@gmail.com", "x" : 11, "y" : 12, "address" : "222 Jarvis St, Toronto, ON" } } ] } ADD FEATURES: http://services3.arcgis.com/AG2sQrT8baMAzrY7/ArcGIS/rest/services/demomap/FeatureServer/0/addFeatures [ { "attributes" : { "attachment1" : "1.jpg", "attachment2" : "2.jpg", "attachment3" : "3.jpg", "description" : "sample data 3", "contactphone" : null, "contactemail" : "tangsabrina08@gmail.com", "x" : 11, "y" : 12, "address" : "222 Jarvis St, Toronto, ON" } }, { "attributes" : { "attachment1" : "1.jpg", "attachment2" : "2.jpg", "attachment3" : "3.jpg", "description" : "sample data 3", "contactphone" : null, "contactemail" : "tangsabrina08@gmail.com", "x" : 11, "y" : 12, "address" : "222 Jarvis St, Toronto, ON" } } ] { "addResults" : [ { "objectId" : 8, "globalId" : null, "success" : true } ] } { "error" : { "code" : 400, "message" : "Cannot perform operation. Invalid operation parameters.", "details" : [ "'features' parameter is invalid", "Invalid JSON primitive: http." ] } }