Skip to content

Rest API

Force a content library import

POST
/api/v1/wiki/force-import
curl --request POST \
--url https://api.unless.com/api/v1/wiki/force-import \
--header 'Content-Type: application/json' \
--header 'x-account-id: example' \
--header 'x-api-key: example' \
--header 'x-user-email: example' \
--header 'x-website-id: example' \
--data '{ "sourceUrl": "https://www.example.com/help/refunds" }'

Re-import a source URL into the content library, ignoring whatever the importer already thinks it knows about that page.

Notes

  • Answers 202 as soon as the import is handed off; it runs asynchronously. Watch the change log for the result
  • A 500 here means the import could not be started, and the failure is recorded against the source
x-api-key
required
string

Your API key from account settings.

x-user-email
required
string

The email address of your user.

x-account-id
required
string

The ID of your account. You can find this in the account settings.

x-website-id
required
string

The ID of the workspace you want to use.

Media typeapplication/json
object
sourceUrl
required

The URL to re-import.

string

Example

{
"sourceUrl": "https://www.example.com/help/refunds"
}

The import was started.

Media typeapplication/json
object
status
string

Example

{
"status": "importing"
}

Bad request - missing websiteId or sourceUrl.

Unauthorized - invalid API key.

The import could not be started.