Put
/api/3/ProductView/InActivateViews?websiteId={websiteId}&webApiClientKey={webApiClientKey}&sku={sku}&viewCodes={viewCodes}&userEmailId={userEmailId}
The Inactivate Views API is used to disable specific views in the system, making them inaccessible for customization, display, or interaction. This functionality is helpful when certain views should be temporarily hidden or restricted based on business logic, user permissions, or specific conditions.
Request Information
Parameters
Response Information
Response body formats
On Success
On success, this method will call back the JavaScript method in the website which is specified in "successCallback" parameter with success Message.
Success Message:
{
"Response": "Success",
"Message": "View Code Front is inactivated successfully;",
"Data": null,
"ErrorCode": ""
}
On Error
On error, this method will call back the JavaScript method in the website which is specified in the "errorCallback" parameter with errorMessage.
Invalid Website id and User email
{
"Response": "Error",
"Message": "Invalid website id. Invalid user email.",
"Data": null,
"ErrorCode": "221,234,273"
}
Invalid view code
{
"Response": "Error",
"Message": "Invalid view code.",
"Data": null,
"ErrorCode": ""
}