1. Submit job

POST https://{{analysis-service}}/arcgis/rest/services/tasks/GPServer/FindCentroids/submitJob

Request Body

[{"name"=>"f", "value"=>"json", "datatype"=>"string"}, {"name"=>"token", "value"=>"{{access_token}}", "datatype"=>"string"}, {"name"=>"inputLayer", "value"=>"{\"url\":\"https://services3.arcgis.com/GVgbJbqm8hXASVYi/ArcGIS/rest/services/Intersect_of_U_S__Census_Blocks_and_SF_Neighborhoods/FeatureServer/0\"}", "datatype"=>"string"}, {"name"=>"pointLocation", "value"=>"false", "datatype"=>"boolean"}, {"name"=>"outputName", "value"=>"{\"serviceProperties\":{\"name\":\"Find centroids results\"}}", "datatype"=>"string"}]