How do I reset Usage date?

Hi,

I am trying to use this API to reset the nextReset

The moment to which you want to schedule the reset of the organization’s consumption.

Currently, the Usage reset is set to 1 Jun 2024, 23:26:51. I want to change it to 31.05.2024, 23:59:59, which is basically the last day of the month.

When I run the API I receive the following error. Is there any other way to do it or can anyone suggest what the issue is?

[400] Bad Request: Validation failed for 1 parameter(s). ◉ Error: Unexpected parameter ‘nextReset’ found.

URL: Make API Documentation

Thanks,
Fabio

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

2 Likes

Hi @FabSe10,

Welcome! In the API documentation there are two examples, both have a different payload:

What does your request look like? And did you double-check the approved scopes for the API key you are using?

Henk
Certified Make Expert and Partner
Book a consult with me

1 Like

Hi @Henk-Operative and @samliew,

Thanks for your reply.

I am trying to set the organization’s consumption to 31.05.2024 23:59:59 without immediately reset it and then set any other reset on the last minute of each month.

Screenshot (I’ve changed my orgid but there is the orgid number):

Error: [400] Bad Request: Validation failed for 1 parameter(s). ◉ Error: Unexpected parameter ‘nextReset’ found.

Is it maybe I need to pass this as well? “performReset”:true

Thanks,
Fabio

Yes, it looks like you need to send that too, according the the API documentation.

2 Likes

Thanks @samliew ,

do you know if the operations will reset and if a payment will be taken as we are on the monthly roll-out?

Thanks,
Fabio

Have you tried to pass nextReset as query parameter? Or maybe add the performReset boolean to mimic the example request, indeed?

{
"performReset": true,
"nextReset": "2024-05-31T23:59:59.000Z"
 }

This will reset it immediately, I expect. But I haven’t used this endpoint to be comfortable in telling what will happen.

Cheers,
Henk

1 Like

Thank both,

unfortunately it reports the same error:

The operation failed with an error. [400] Bad Request: Validation failed for 2 parameter(s). ◉ Error: Unexpected parameter ‘performReset’ found. ◉ Error: Unexpected parameter ‘nextReset’ found

Thanks,
Fabio

@FabSe10

Aside from the three of us misinterpreting the API documentation, this is unexpected behaviour.

I’d advise you to contact support at https://www.make.com/en/ticket (and please let us know the outcome)

Cheers,
Henk

2 Likes

Is it possible that you cannot set the nextReset to a time earlier than your current nextReset value? You could try a nextReset value to a date after your current nextReset value rather than before to see if that works.

The error seems like the PATCH request doesn’t accept these parameters but it may be a red herring and something else is going on behind the scenes. Anyways I think this is worth a Make support ticket to find out how this is supposed to work (if at all).

3 Likes

Hi @alex.newpath,

Thank you, I’ve tried this but no joy. I’ve raised a ticket request.

Will keep you posted.

Thank you,
Fabio

3 Likes

Hello all,

Thank you for your help. The problem is that this end point is only available to Make White Label product.

Also, I’ve asked how to reset usage and below is the reply:

"The only way to change your reset date for the same subscription is to cancel your subscription first, and then you have to wait until that specific time to resubscribe which may not be too efficient because you would be without a subscription between your current ‘Next reset’ date and the desired date.

The only other alternative is to upgrade your subscription on the desired date/time."

Thanks,
Fabio

2 Likes

Since that is an official response from the Make support team, providing the only known workaround, we can consider this closed.

2 Likes