Update Definition

URL:
https://<knowledgegraphserviceadmin-url>/updateDefinition
Methods:
GET

Description

A knowledge graph service's updateDefinition operation allows an administrative client to change properties of the knowledge graph service. If you change the capabilities that are supported by the service, each capability must be identified as illustrated in the example in which each capability starts with a capital letter.

Request parameters

ParameterDetails

input

The new service definition.

f

The response format. The default response format is html .

Values: html | pjson | json

Example usage

The following is an sample request URL for a knowledge graph service named SupplyChain :

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/admin/services/Hosted/SupplyChain/KnowledgeGraphServer/updateDefinition?f=json

JSON Response syntax

When a JSON request is sent to the knowledge graph service, a JSON response is returned outlining the capabilities of the service. The following example represents the syntax for describing the capabilities of a knowledge graph service:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
{
  "capabilities": "<comma-separated list of capabilities>",
  "allowGeometryUpdates": <boolean>,
  "searchMaxRecordCount": <integer>,
  "maxRecordCount": <integer>,
  "description": "<string>",
  "copyrightText": "<string>",
  "preferredTimeReference": {
    "timeZone": "<time zone name>",
    "respectsDaylightSaving": <boolean>
  }
}

JSON Response example

The following is an example response to the example query shown above:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
{
  "capabilities": "Query,Editing,Create,Update,Delete",
  "allowGeometryUpdates": true,
  "searchMaxRecordCount": 10,
  "maxRecordCount": 10,
  "description": "Updated service description",
  "copyrightText": "Updated copyright information",
  "preferredTimeReference": {
    "timeZone": "Pacific Standard Time",
    "respectsDaylightSaving": true
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.