Hi!

I’m trying to set rate limits on mailboxes using the API. I can use the Get Mailbox Ratelimits API, it works as it should but not the Edit Mailbox Ratelimits. In the API documentation there are two visible errors for the API call: method should be POST but it’s listed as GET and rl_vlaue is misspelled and should be rl_value. The API call goes through with a 200 and the output says: {“type”:“success”,“msg”:“Task completed”} but the actual rate limit for the mailbox is not affected. I know the API is not production ready but maybe someone can tell me if I’m doing something wrong? I use the cURL example but with POST and rl_value and a real domain and mailbox of course.

  • I managed to solve it, the problem was with the request body, it should be:

    --data-binary "{
    \"items\":[
    \"info@domain.tld\"
    ],
    \"attr\":
    {
    \"rl_value\": \"100\",
    \"rl_frame\": \"d\"
    }
    }" \

    I’ll open a ticket to correct the API documentation.

I managed to solve it, the problem was with the request body, it should be:

--data-binary "{
\"items\":[
\"info@domain.tld\"
],
\"attr\":
{
\"rl_value\": \"100\",
\"rl_frame\": \"d\"
}
}" \

I’ll open a ticket to correct the API documentation.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

  • diekuh

    • Community Hero
    • volunteer
    Moolevel 110

You can also open an issue if you don’t find time for a PR. 🙂

No one is typing