diff --git a/core/server/api/canary/utils/serializers/output/utils/mapper.js b/core/server/api/canary/utils/serializers/output/utils/mapper.js index e07eee0256..36332a175b 100644 --- a/core/server/api/canary/utils/serializers/output/utils/mapper.js +++ b/core/server/api/canary/utils/serializers/output/utils/mapper.js @@ -35,6 +35,8 @@ const mapPost = (model, frame) => { url.forPost(model.id, jsonModel, frame); + extraAttrs.forPost(frame, model, jsonModel); + if (utils.isContentAPI(frame)) { // Content api v2 still expects page prop if (jsonModel.type === 'page') { @@ -44,7 +46,6 @@ const mapPost = (model, frame) => { members.forPost(jsonModel, frame); } - extraAttrs.forPost(frame, model, jsonModel); clean.post(jsonModel, frame); if (frame.options && frame.options.withRelated) {