Skip to content
URL:
https://<knowledgegraphserviceadmin-url>/updateFeature
Methods:
POST
Version Introduced:
11.1

Description

A knowledge graph service's updateFeature operation allows an administrative client to enable and disable features of the knowledge graph service. The updateFeature operation cannot update the capabilities of the knowledge graph service, such as Query or Editing. Only a single feature can be updated per request. The service definition is updated as a result of the updateFeature operation.

The updateFeature operation can update features for search, provenance, and editor tracking. The search feature is enabled by default when the service definition parameter schemaEditingNotSupported is false and can only be updated when schemaEditingNotSupported is true. Both provenance and editor tracking features can only be updated when schemaEditingNotSupported is false. When enabling provenance or editor tracking features, provenance entity type information and editor tracking information can be provided during their respective updateFeature requests.

Request parameters

ParameterDetails

updateFeature

The new service feature.

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://organization.example.com/<context>/rest/admin/services/Hosted/SupplyChain/KnowledgeGraphServer/updateFeature?f=json

Example 1

The following input example demonstrates how to enable search for a knowledge graph service:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/rest/admin/services/Hosted/SupplyChain/KnowledgeGraphServer/updateFeature
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

updateFeature={"supportsSearch": true}&f=pjson

Example 2

The following input example demonstrates how to enable provenance and optionally creating custom values for ProvenanceEntityInfo of a knowledge graph service, formatted for readability:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
POST /<context>/rest/admin/services/Hosted/SupplyChain/KnowledgeGraphServer/updateFeature
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

updateFeature={
  "supportsProvenance": true,
  "provenanceEntityTypeInfo": {
    "provenanceEntityTypeName": "Custom Provenance",
    "provenanceSchema": {
      "instanceIDPropertyName": "CustomID",
      "sourceTypePropertyName": "CustomsourceTypePropertyName",
      "sourceNamePropertyName": "CustomsourceNamePropertyName",
      "sourcePropertyName": "CustomsourcePropertyName",
      "commentPropertyName": "CusomcommentPropertyName",
      "typeNamePropertyName": "CustomtypeNamePropertyName",
      "propertyNamePropertyName": "CustompropertyNamePropertyName"
    }
  }
  "provenanceSourceTypeValues": [
    {
      "value": "Str",
      "behavior": "String"
    },
    {
      "value": "website",
      "behavior": "URL"
    },
    {
      "value": "Doc",
      "behavior": "Document"
    }
  ]
}&f=pjson

Example 3

The following input example demonstrates how to enable editor tracking and optionally creating custom values for editorTrackingInfo of a knowledge graph service, formatted for readability:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
POST /<context>/rest/admin/services/Hosted/SupplyChain/KnowledgeGraphServer/updateFeature
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

updateFeature={
  "supportsEditorTracking": true,
  "editorTrackingInfo": {
    "editorTrackingSchema": {
      "creatorField": "custom_create_user",
      "createDateField": "custom_create_date",
      "editorField": "custom_last_edit_user",
      "editDateField": "custom_last_edit_date",
      "creatorFieldAlias": "custom_create_user_alias",
      "createDateFieldAlias": "custom_create_date_alias",
      "editorFieldAlias": "custom_last_edit_user_alias",
      "editDateFieldAlias": "custom_last_edit_date_alias"
    }
  }
}&f=pjson

Example 4

The following input example demonstrated how to disable the provenance feature for a knowledge graph service.

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/rest/admin/services/Hosted/SupplyChain/KnowledgeGraphServer/updateFeature
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

updateFeature={"supportsProvenance": false}&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
 "success": <true | false>
}

JSON Response example

The following is an example response for all examples shown above:

Use dark colors for code blocksCopy
1
2
3
{
 "success": true
}

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