Content Import

Update validation hook version

POST
/knowledge/contentmgr/v4/import/config/hooks/{hookID}/version

Upload a new version of the JavaScript logic for an existing hook.

Authorization

accessToken
AuthorizationBearer <token>

JWT Bearer Token authentication for API access

In: header

Path Parameters

hookID*integer

Integer ID of the Hook resource.

Range1 <= value <= 9999999999

Request Body

application/json

fileID?string

ID of Hook File

Formatuuid
createdDate?createdDate

The date on which the resource was last modified.

Match^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$
FormatDateAndTime
Length20 <= length <= 25
createdBy?
modifiedDate?modifiedDate

The date on which the resource was last modified.

Match^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$
Length20 <= length <= 25
modifiedBy?
version?
file?

Response Body

application/json

curl -X POST "https://example.com/knowledge/contentmgr/v4/import/config/hooks/1/version" \  -H "Content-Type: application/json" \  -d '{}'
Empty