Set article status

post

/km/api/v1/articleStatus/control/{action}

This method defines whether the KM_ARTICLE_STATUS_ENABLED configuration value is either enabled or disabled. The supported values for the action parameter are 'enable' and 'disable'.

Request

Path Parameters
  • action parameter which accepts value either 'enable' or 'disable'.
Back to Top

Response

204 Response

No Content.
Back to Top

Examples

The following example shows how to enable or disable the configuration value, KM_ARTICLE_STATUS_ENABLED.

curl -X POST  "https://<IM_REST_API_HOST>/km/api/latest/articleStatus/control/{action}" -u "<username:password>" -H "Accept: application/json" -H "Content-Type: application/json" -d "@<FilePath/RequestBody.json>"

Example of Request Body

The following example shows the contents of the request body in JSON format:

This request does not have any request body.

Example of Response Body

The following example shows the contents of the response body in JSON format:

This request does not return any response body.
Back to Top