DiscoveryUpdateDocumentUsingConfigID Method |
Updates a specified document using ConfigID.
Namespace:
IBM.Watson.DeveloperCloud.Services.Discovery.v1
Assembly:
unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool UpdateDocumentUsingConfigID(
DiscoverySuccessCallback<DocumentAccepted> successCallback,
DiscoveryFailCallback failCallback,
string environmentID,
string collectionID,
string documentID,
byte[] contentData,
string contentMimeType,
string configurationID,
string metadata = null,
Dictionary<string, Object> customData = null
)
Parameters
- successCallback
- Type: IBM.Watson.DeveloperCloud.Services.Discovery.v1DiscoverySuccessCallbackDocumentAccepted
The success callback. - failCallback
- Type: IBM.Watson.DeveloperCloud.Services.Discovery.v1DiscoveryFailCallback
The fail callback. - environmentID
- Type: SystemString
The environment identifier. - collectionID
- Type: SystemString
The collection identifier. - documentID
- Type: SystemString
The document identifier. - contentData
- Type: SystemByte
A byte array of content to be ingested. - contentMimeType
- Type: SystemString
The mimeType of the content data to be ingested. - configurationID
- Type: SystemString
The identifier of the configuration to use to process the document. - metadata (Optional)
- Type: SystemString
If you're using the Data Crawler to upload your documents, you can test a document against the type
of metadata that the Data Crawler might send. The maximum supported metadata file size is 1 MB. Metadata parts larger than
1 MB are rejected. Example: { "Creator": "Johnny Appleseed", "Subject": "Apples" } - customData (Optional)
- Type: System.Collections.GenericDictionaryString, Object
Optional custom data.
Return Value
Type:
BooleanTrue if the call succeeds, false if the call is unsuccessful.
See Also