MindTouch Developer Center > MindTouch Deki > API Reference > POST:files/{fileid}/index

Overview

internal. re-index an attachment

Uri Parameters
NameTypeDescription
fileidintidentifies a file by ID
Query Parameters

None

Return Codes
NameValueDescription
Forbidden403Deki Wiki API key or Administrator access is required.
Ok200Request completed successfully

Message Format

None

Implementation Notes

Use GET:site/search to search the index.

Allow several minutes for search index changes to take effect. 

Code Samples

The following code example re-indexes the file with ID 456:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("files", "456", "index").Post();
Tag page
You must login to post a comment.