ctx(Context) variable. The following fields can be used.
ctx.oldStatusas an alias.
ctx.dataobject and that this change should be applied to the content.
403 (Forbidden)status code should be returned. The user will see an alert in the Management UI.
400 (BadRequest)status code should be returned. The user will see an alert in the Management UI.
getJSONfunction to enrich the content with data from external services. This example is a little bit more complicated that the other examples above, but let's jump into the code first.
replace(), even if we do not make a change to the content data.