ExternalIntegrationSectoRestService

External integration for GTM.

POST /secto/external/batchInjectConfiguration

Description

Set a configuration.

Example :

{
"configuration":{
"heatMapMode":false,
"nbSectorsForAutomaticSectorization":0,
"sectorColorForSingleSector":"#3399cc",
"displaySectorIds":false,
"displayMeshIds":false,
"displayCustomPointIds":false,
"customPointsStyle":{
"strokeColor":"#FFFFFF",
"pointRadius":16,
"strokeWidth":3,
"fill":true,
"graphicName":"star",
"fillColor":"#0779BF",
"fillOpacity":66
},
"onlineGuideUrl":"https://cdn.walkme.com/users/681fb1035b334767b6e5db4ae8b68ef9/test/walkme_681fb1035b334767b6e5db4ae8b68ef9_https.js"
}
}
Parameters
Type Name Description Schema Default

Body

body
optional

the configuration to set.

json_BatchImportConfiguration

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "configuration" : {
    "nbSectorsForAutomaticSectorization" : 12345,
    "sectorColorForSingleSector" : "...",
    "heatMapMode" : true,
    "displaySectorIds" : true,
    "displayMeshIds" : true,
    "displayMeshCountries" : true,
    "displaySectorNames" : true,
    "displayMeshNames" : true,
    "displayCustomPointIds" : true,
    "customPointsStyle" : {
      "property1" : { },
      "property2" : { }
    },
    "skins" : [ {
      "url" : "..."
    }, {
      "url" : "..."
    } ],
    "baseLayerId" : "...",
    "defaultCountry" : "...",
    "editionMode" : true,
    "defaultSelectMode" : "...",
    "onlineGuideUrl" : "...",
    "displayResultButton" : true,
    "resultButtonLabel" : "...",
    "resultButtonTooltip" : "...",
    "resultButtonIcon" : "..."
  },
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  },
  "userSettings" : {
    "lang" : "...",
    "customizedSiteLabelId" : "...",
    "customizedActivityLabelId" : "...",
    "includeSiteInSectorsEnvelopes" : true,
    "automationWizard" : true,
    "measureUnit" : "...",
    "progressiveMode" : true,
    "customizedSectorLabelId" : "...",
    "customizedPointLabelId" : "...",
    "pointStyleCompactMode" : true
  }
}

POST /secto/external/batchInjectCustomPointsItems

Parameters
Type Name Description Schema Default

Body

body
optional

json_BatchImportSectoItems

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  },
  "rows" : [ {
    "emptyLine" : true,
    "typedValues" : [ {
      "type" : "DURATION_SECONDS",
      "text" : "...",
      "value" : { }
    }, {
      "type" : "BOOLEAN",
      "text" : "...",
      "value" : { }
    } ],
    "values" : [ { }, { } ]
  }, {
    "emptyLine" : true,
    "typedValues" : [ {
      "type" : "STRING",
      "text" : "...",
      "value" : { }
    }, {
      "type" : "DATE",
      "text" : "...",
      "value" : { }
    } ],
    "values" : [ { }, { } ]
  } ]
}

POST /secto/external/batchInjectCustomPointsStart

Parameters
Type Name Description Schema Default

Body

body
optional

json_BatchImportCustomPoints

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "indicators" : [ {
    "visible" : true,
    "indicator" : "...",
    "valueType" : "STRING"
  }, {
    "visible" : true,
    "indicator" : "...",
    "valueType" : "DATE"
  } ],
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  },
  "columns" : [ {
    "name" : "...",
    "id" : "...",
    "aggregateOperator" : "NONE",
    "type" : "..."
  }, {
    "name" : "...",
    "id" : "...",
    "aggregateOperator" : "MAX",
    "type" : "..."
  } ]
}

POST /secto/external/batchInjectPointSectoEnd

Parameters
Type Name Description Schema Default

Body

body
optional

json_BatchImportedSecto

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "batchImportId" : "...",
  "clientId" : "..."
}

POST /secto/external/batchInjectPointSectoItems

Description

Import items to a sectorization batch import.

Example:

{
"rows":[{"values":["70","INFOMA","Sector0","PERPIGNAN","2.217761539167103","43.053657468042346","8","4568"]},
{"values":["694","BSM","Sector0","PERPIGNAN","2.622657102449725","42.67228687522445","8","9043"]},
{"values":["743","CERN","Sector0","PERPIGNAN","1.9781492901639994","42.4177907105206","12","3328"]}
]
}
Parameters
Type Name Description Schema Default

Body

body
optional

the sectorization items.

json_BatchImportSectoItems

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  },
  "rows" : [ {
    "emptyLine" : true,
    "typedValues" : [ {
      "type" : "DURATION_SECONDS",
      "text" : "...",
      "value" : { }
    }, {
      "type" : "BOOLEAN",
      "text" : "...",
      "value" : { }
    } ],
    "values" : [ { }, { } ]
  }, {
    "emptyLine" : true,
    "typedValues" : [ {
      "type" : "STRING",
      "text" : "...",
      "value" : { }
    }, {
      "type" : "DATE",
      "text" : "...",
      "value" : { }
    } ],
    "values" : [ { }, { } ]
  } ]
}

POST /secto/external/batchInjectPointSectoStart/v2

Description

Start a sectorization batch injection.

Example:

{
"columns":[{"name":"ID"},
{"name":"NAME"},
{"name":"SECTOR_CODE"},
{"name":"SECTOR_NAME"},
{"name":"LON"},
{"name":"LAT"},
{"name":"NB_CONTRATS"},
{"name":"CA"}
],
"indicators":[{"indicator":"CA","valueType":"NUMBER"},
{"indicator":"NB CONTRATS","valueType":"NUMBER"},
{"indicator":"LON","valueType":"STRING","visible":true}
]
}
Parameters
Type Name Description Schema Default

Body

body
optional

the batch injection parameters.

json_BatchImportSectoV2

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "indicators" : [ {
    "visible" : true,
    "indicator" : "...",
    "valueType" : "DURATION"
  }, {
    "visible" : true,
    "indicator" : "...",
    "valueType" : "DURATION"
  } ],
  "columns" : [ {
    "name" : "...",
    "id" : "...",
    "aggregateOperator" : "MIN",
    "type" : "..."
  }, {
    "name" : "...",
    "id" : "...",
    "aggregateOperator" : "COUNT",
    "type" : "..."
  } ]
}

POST /secto/external/batchInjectSectoEnd

Parameters
Type Name Description Schema Default

Body

body
optional

json_BatchImportedSecto

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "batchImportId" : "...",
  "clientId" : "..."
}

POST /secto/external/batchInjectSectoItems

Description

Import items to a sectorization batch import.

Parameters
Type Name Description Schema Default

Body

body
optional

the sectorization items.

json_BatchImportSectoItems

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  },
  "rows" : [ {
    "emptyLine" : true,
    "typedValues" : [ {
      "type" : "DURATION_SECONDS",
      "text" : "...",
      "value" : { }
    }, {
      "type" : "BOOLEAN",
      "text" : "...",
      "value" : { }
    } ],
    "values" : [ { }, { } ]
  }, {
    "emptyLine" : true,
    "typedValues" : [ {
      "type" : "STRING",
      "text" : "...",
      "value" : { }
    }, {
      "type" : "DATE",
      "text" : "...",
      "value" : { }
    } ],
    "values" : [ { }, { } ]
  } ]
}

POST /secto/external/batchInjectSectoStart

Description

Start a sectorization batch injection.

Parameters
Type Name Description Schema Default

Body

body
optional

the batch injection parameters.

json_BatchImportSectoV2

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "indicators" : [ {
    "visible" : true,
    "indicator" : "...",
    "valueType" : "DURATION"
  }, {
    "visible" : true,
    "indicator" : "...",
    "valueType" : "DURATION"
  } ],
  "columns" : [ {
    "name" : "...",
    "id" : "...",
    "aggregateOperator" : "MIN",
    "type" : "..."
  }, {
    "name" : "...",
    "id" : "...",
    "aggregateOperator" : "COUNT",
    "type" : "..."
  } ]
}

POST /secto/external/batchInjectSectors

Description

Import sectors to a sectorization batch import. Example:

{
"sectors":[{"sectorId":"Sector0","sectorName":"Sector #0"},
{"sectorId":"Sector1","sectorName":"Sector #1"},
{"sectorId":"Sector2","sectorName":"Sector #2"},
{"sectorId":"Sector3","sectorName":"Sector #3"},
{"sectorId":"Sector4","sectorName":"Sector #4"},
{"sectorId":"Sector5","sectorName":"Sector #5"},
{"sectorId":"Sector6","sectorName":"Sector #6"}
]
}
Parameters
Type Name Description Schema Default

Body

body
optional

the sectors.

json_BatchImportSectors

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "sectors" : [ {
    "sectorUpId" : "...",
    "sectorId" : "...",
    "color" : "...",
    "sectorName" : "..."
  }, {
    "sectorUpId" : "...",
    "sectorId" : "...",
    "color" : "...",
    "sectorName" : "..."
  } ],
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  }
}

POST /secto/external/batchInjectSites

Description

Import sites to a sectorization batch import.

Parameters
Type Name Description Schema Default

Body

body
optional

the sites.

json_BatchImportSites

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "sites" : [ {
    "lon" : 12345.0,
    "lat" : 12345.0,
    "sectorId" : "...",
    "sectorName" : "..."
  }, {
    "lon" : 12345.0,
    "lat" : 12345.0,
    "sectorId" : "...",
    "sectorName" : "..."
  } ],
  "batchImportedSecto" : {
    "batchImportId" : "...",
    "clientId" : "..."
  }
}

POST /secto/external/batchUseExistingSecto

Parameters
Type Name Description Schema Default

Body

body
optional

json_BatchExistingSecto

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "sectoId" : "..."
}

POST /secto/external/exportSectoFile

Parameters
Type Name Description Schema Default

Body

body
optional

json_ExportSectoFileRequest

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "sectoId" : "...",
  "fileName" : "...",
  "unassignedTabName" : "...",
  "image" : "...",
  "format" : "...",
  "locale" : "...",
  "localIndicators" : {
    "indicatorLabels" : {
      "property1" : "...",
      "property2" : "..."
    },
    "meshesIndicators" : [ {
      "indicators" : [ { }, { } ],
      "id" : "..."
    }, {
      "indicators" : [ { }, { } ],
      "id" : "..."
    } ],
    "sectorsIndicators" : [ {
      "indicators" : [ { }, { } ],
      "id" : "..."
    }, {
      "indicators" : [ { }, { } ],
      "id" : "..."
    } ]
  }
}

POST /secto/external/exportSectoInfo

Parameters
Type Name Description Schema Default

Body

body
optional

json_SectoInfoRequest

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "sectoId" : "..."
}

POST /secto/external/exportSectorDetail

Parameters
Type Name Description Schema Default

Body

body
optional

json_SectorDetailRequest

Responses
HTTP Code Description Schema

200

Success

string

Consumes
  • application/json
Produces
  • text/plain;charset=UTF-8
Example HTTP request

Request body 

{
  "sectorId" : "...",
  "sectoId" : "...",
  "allSectors" : true
}

GET /secto/external/getCapabilities

Responses
HTTP Code Description Schema

200

Success

file

Produces
  • application/json;charset=UTF-8

GET /secto/external/getExportedSectoFile

Parameters
Type Name Description Schema Default

Query

fileId
optional

string

Responses
HTTP Code Description Schema

200

Success

file

Produces
  • application/octet-stream

POST /secto/external/getGeometriesFromLayer

Parameters
Type Name Description Schema Default

Body

body
optional

json_SectoGeometriesRequest

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "sectoId" : "...",
  "keepLayer" : true,
  "withGeometries" : true
}

POST /secto/external/getSectorUnderPoint

Parameters
Type Name Description Schema Default

Body

body
optional

json_SectorUnderPointRequest

Responses
HTTP Code Description Schema

200

Success

file

Consumes
  • application/json
Produces
  • application/json;charset=UTF-8
Example HTTP request

Request body 

{
  "layerId" : "...",
  "srs" : "...",
  "coord2" : 12345.0,
  "coord1" : 12345.0,
  "withGeometry" : true
}

POST /secto/external/getTmSolverConfiguration

Description

Usage for OT solver

Responses
HTTP Code Description Schema

200

Success

file

Produces
  • application/json;charset=UTF-8