# Issue with Updating customPostRanking via Network Settings API

**URL:** <https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825>\
**Category:** General\
**Created:** [October 24, 2025, 3:04am UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825 "2025-10-24T03:04:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [October 24, 2025, 3:04am UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825/1 "2025-10-24T03:04:23Z")

</div>

Hi Team,

I attempted to update the network settings using the following API call:

```auto
PUT https://api.sg.amity.co/api/v3/network-settings/social

```

Payload:

```auto
{
  "enabled": true,
  "membershipAcceptance": "automatic",
  "userPrivacySetting": "public",
  "isFollowWithRequestEnabled": false,
  "isAllowEditPostWhenReviewingEnabled": true,
  "disallowNonMemberInteractInCommunity": false,
  "globalFeed": {
    "showOnlyMyFeed": false,
    "showMyPost": true,
    "showEveryonePost": false,
    "showCommunityPost": true,
    "showFollowingPost": true,
    "maxGlobalPinnedPost": 1
  },
  "customPostRanking": {
    "enabled": true,
    "score": "(2 * commentsCount + reactionsCount + 1) * (10 * exp_decay(time_diff(createdAt), 0.5) + 1) * log_logistic_decay(time_diff(createdAt), 3, 2)",
    "skipCustomPostRankingRedirect": false
  },
  "story": {
    "allowAllUserToCreateStory": false,
    "expiryTimeMinutes": 1440
  },
  "allowJoinPrivateCommunity": true
}

```

My aim was to change the `customPostRanking.score` parameter. Although I received a success status (200), the change does **not** seem to take effect.

Could you please assist in identifying what I might be missing or what additional steps are required?

Thank you for your help.

Best regards,

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [October 24, 2025, 8:28am UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825/2 "2025-10-24T08:28:07Z")

</div>

Hello @duongnb, could you please share the previous formula you were using before switching to this one — was it the default formula?

To help us recommend the most suitable formula, could you also share your use case and how you’d like your feeds or posts to be sorted?

---

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [October 24, 2025, 8:40am UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825/3 "2025-10-24T08:40:36Z")

</div>

Yes, this is default formula. I just aim to increase priority for most recent post rather than old with high comment and interaction.

---

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [October 29, 2025, 3:34am UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825/4 "2025-10-29T03:34:08Z")

</div>

Hi team, do you have any solution for me?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [October 29, 2025, 2:26pm UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825/5 "2025-10-29T14:26:51Z")

</div>

Hello @duongnb, thank you for following up and for your patience. Please try again using the following cURL.

```auto
curl https://api.sg.amity.co/api/v3/network-settings/social \
  --request PUT \
  --header 'Content-Type: application/json' \
  --data '{
  "customPostRankingFormula": "(2 * commentsCount + reactionsCount + 1) * (10 * exp_decay(time_diff(createdAt), 0.5) + 1) * log_logistic_decay(time_diff(createdAt), 3, 2)"
}'

```

Our team suggests modifying the expression `2 * commentsCount + reactionsCount` as needed until it produces the desired result.

---

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [October 30, 2025, 5:39am UTC](https://forum.social.plus/t/issue-with-updating-custompostranking-via-network-settings-api/1825/6 "2025-10-30T05:39:22Z")

</div>

> [@SocialPlus\_Support](#):
>
> ```auto
> {
> "customPostRankingFormula": "(2 * commentsCount + reactionsCount + 1) * (10 * exp_decay(time_diff(createdAt), 0.5) + 1) * log_logistic_decay(time_diff(createdAt), 3, 2)"
> }
> 
> ```

I got it. Thank for your help.
