Need help using date calculator API

Hi all,
I need some help using an API with a POST call to subtract a certain number of days from a date.

This is the API I’m trying to use.

I have tried a few methods of calling the API but all are returning a status of 415.


Thanks!

1 Like

415 means the supplied data is not in the correct format.

1 Like

Ahhh. Here is the link the website of the API I’m using: DateCalculatorUi
This is my first time using a pOST call so I’m unsure of the correct format.

1 Like

Aha! I figured out the issue: I needed to add the header with content-type and accept fields.
Here’s a screenshot for anyone else who faces the same problem:

I’ve read a lot of posts from people who want to calculate dates by adding/ subtracting days, I finally found this API which works really well.

1 Like

image

You only need to add the content type

image

1 Like