Replace a custom map layer
put
/rest/ofscMetadata/v1/mapLayers/{label}
This operation updates the attributes of the specified custom map layer.
Request
Path Parameters
-
label(required): string
The label of the custom map layer.
The custom map layer object that needs to be updated.
Root Schema : MapLayers
Type:
objectTitle:
Show Source
MapLayers-
label(required):
string
Title:
LabelMinimum Length:1Maximum Length:24Pattern:^[A-Za-z0-9_]+$The unique identifier of the custom map layer. -
shapeHintButton:
object Plugin or form map layer hint button
Title:
Plugin or form map layer hint buttonThe object representing selected Custom Form or Plugin will be displayed as a button on layer hint. Parameters specified in Plugin/Form Field will be sent to the selected Custom Form or Plugin. -
shapeHintColumns:
array List of Shape Hint Columns
Title:
List of Shape Hint Columns -
shapeTitleColumn:
string
Title:
Shape Title ColumnThe name of the column that is selected as the title. This field is returned only if the property is set for the custom map layer. -
sourceName:
string
Title:
Source NameMinimum Length:1Maximum Length:255The name of the external source of the custom map layers. This field is not applicable for the internal custom map layers. -
status:
string
Title:
StatusAllowed Values:[ "active", "inactive" ]The status of the custom map layers. The status can be set to either 'active' or 'inactive'. -
tableColumns:
array List of Table Columns
Title:
List of Table Columns -
text:
string
Title:
TextThe name of the custom map layer in the user's language. This field is returned only by using the GET operation and it is ignored in a PUT or POST operation. -
theme:
string
Title:
ThemeMinimum Length:1Maximum Length:255The theme name of the external custom map layers. This field is not applicable for the internal custom map layers. -
translations:
array Translations
Title:
TranslationsThe translations of all the custom map layers. This field is required in a PUT or POST operation. The translation of the 'text' parameter is required for the default language. -
type(required):
string
Title:
TypeAllowed Values:[ "internal", "external" ]The type of the custom map layer. The value can be set to either 'external' or 'internal'.
- If the value is set to 'external', then the geo data is imported from external source.
- If the value is set to 'internal', then the geo data is in the Oracle Field Service MapViewer, and it need not be imported.
-
url:
string
Title:
URLMinimum Length:1Maximum Length:1024The URL for the external custom map layers. This field is not applicable for the internal custom map layers.
Nested Schema : Plugin or form map layer hint button
Type:
objectTitle:
Plugin or form map layer hint buttonThe object representing selected Custom Form or Plugin will be displayed as a button on layer hint. Parameters specified in Plugin/Form Field will be sent to the selected Custom Form or Plugin.
Show Source
-
actionType(required):
string
Title:
PluginForm TypeAllowed Values:[ "plugin", "form" ]The type of plugin or form the activity hint button on map layer. -
label(required):
string
Title:
Label for plugin or formMinimum Length:1Maximum Length:64The label plugin or form for map layer hint.
Nested Schema : List of Shape Hint Columns
Type:
arrayTitle:
Show Source
List of Shape Hint Columns-
Array of:
object Shape Hint Column
Title:
Shape Hint Column
Nested Schema : Translations
Type:
arrayTitle:
TranslationsThe translations of all the custom map layers. This field is required in a PUT or POST operation. The translation of the 'text' parameter is required for the default language.
Show Source
Nested Schema : Shape Hint Column
Type:
objectTitle:
Show Source
Shape Hint Column-
defaultName(required):
string
Title:
Default Name -
pluginFormField(required):
string
Title:
Plugin or Form Column NameMaximum Length:255 -
sourceColumn(required):
string
Title:
Source Column Name
Nested Schema : Translation
Type:
Show Source
object-
language(required):
string
This field contains language code of a text translation, it conatains two characters length code in responses (e.g. 'en', 'es') but can be used in requests as extended ISO code (e.g. 'en-US') as well as old two character format.
-
languageISO:
string
This field is used only in responses and returns ISO language code (e.g. 'en-US'). This field is ignored in the requests (use 'language' instead)
-
name(required):
string
Response
Supported Media Types
- application/schema+json
- application/json
200 Response
This section describes the 200 status response for this operation.
Root Schema : MapLayers
Type:
objectTitle:
Show Source
MapLayers-
label(required):
string
Title:
LabelMinimum Length:1Maximum Length:24Pattern:^[A-Za-z0-9_]+$The unique identifier of the custom map layer. -
shapeHintButton:
object Plugin or form map layer hint button
Title:
Plugin or form map layer hint buttonThe object representing selected Custom Form or Plugin will be displayed as a button on layer hint. Parameters specified in Plugin/Form Field will be sent to the selected Custom Form or Plugin. -
shapeHintColumns:
array List of Shape Hint Columns
Title:
List of Shape Hint Columns -
shapeTitleColumn:
string
Title:
Shape Title ColumnThe name of the column that is selected as the title. This field is returned only if the property is set for the custom map layer. -
sourceName:
string
Title:
Source NameMinimum Length:1Maximum Length:255The name of the external source of the custom map layers. This field is not applicable for the internal custom map layers. -
status:
string
Title:
StatusAllowed Values:[ "active", "inactive" ]The status of the custom map layers. The status can be set to either 'active' or 'inactive'. -
tableColumns:
array List of Table Columns
Title:
List of Table Columns -
text:
string
Title:
TextThe name of the custom map layer in the user's language. This field is returned only by using the GET operation and it is ignored in a PUT or POST operation. -
theme:
string
Title:
ThemeMinimum Length:1Maximum Length:255The theme name of the external custom map layers. This field is not applicable for the internal custom map layers. -
translations:
array Translations
Title:
TranslationsThe translations of all the custom map layers. This field is required in a PUT or POST operation. The translation of the 'text' parameter is required for the default language. -
type(required):
string
Title:
TypeAllowed Values:[ "internal", "external" ]The type of the custom map layer. The value can be set to either 'external' or 'internal'.
- If the value is set to 'external', then the geo data is imported from external source.
- If the value is set to 'internal', then the geo data is in the Oracle Field Service MapViewer, and it need not be imported.
-
url:
string
Title:
URLMinimum Length:1Maximum Length:1024The URL for the external custom map layers. This field is not applicable for the internal custom map layers.
Nested Schema : Plugin or form map layer hint button
Type:
objectTitle:
Plugin or form map layer hint buttonThe object representing selected Custom Form or Plugin will be displayed as a button on layer hint. Parameters specified in Plugin/Form Field will be sent to the selected Custom Form or Plugin.
Show Source
-
actionType(required):
string
Title:
PluginForm TypeAllowed Values:[ "plugin", "form" ]The type of plugin or form the activity hint button on map layer. -
label(required):
string
Title:
Label for plugin or formMinimum Length:1Maximum Length:64The label plugin or form for map layer hint.
Nested Schema : List of Shape Hint Columns
Type:
arrayTitle:
Show Source
List of Shape Hint Columns-
Array of:
object Shape Hint Column
Title:
Shape Hint Column
Nested Schema : Translations
Type:
arrayTitle:
TranslationsThe translations of all the custom map layers. This field is required in a PUT or POST operation. The translation of the 'text' parameter is required for the default language.
Show Source
Nested Schema : Shape Hint Column
Type:
objectTitle:
Show Source
Shape Hint Column-
defaultName(required):
string
Title:
Default Name -
pluginFormField(required):
string
Title:
Plugin or Form Column NameMaximum Length:255 -
sourceColumn(required):
string
Title:
Source Column Name
Nested Schema : Translation
Type:
Show Source
object-
language(required):
string
This field contains language code of a text translation, it conatains two characters length code in responses (e.g. 'en', 'es') but can be used in requests as extended ISO code (e.g. 'en-US') as well as old two character format.
-
languageISO:
string
This field is used only in responses and returns ISO language code (e.g. 'en-US'). This field is ignored in the requests (use 'language' instead)
-
name(required):
string
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to update or replace custom map layer attributes by submitting a PUT request on the REST resource.
Example of Request Header
The following shows an example of the request header.
PUT /rest/ofscMetadata/v1/mapLayers/somelb1 HTTP/1.0
Example of Request Body
The following example shows the contents of the request body in JSON format.
{
"type": "external",
"status": "active",
"sourceName": "someSourceName",
"theme": "someTheme",
"url": "http://hello.com",
"translations": [
{
"language": "en",
"name": "Some Name"
},
{
"language": "ru",
"name": "¿¿¿¿¿-¿¿ ¿¿¿"
}
]
}
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 Ok
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"label": "somelb1",
"type": "external",
"status": "active",
"sourceName": "someSourceName",
"theme": "someTheme",
"url": "http://hello.com",
"text": "Some Name",
"links": [
{
"rel": "canonical",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscMetadata/v1/mapLayers/somelb1"
},
{
"rel": "describedby",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscMetadata/v1/metadata-catalog/mapLayers"
}
]
}