A
A
algrandeth2021-12-20 10:17:52
API
algrandeth, 2021-12-20 10:17:52

What type of data should be passed to the custom date field ( amocrm API)?

Unable to transfer data.
I tried to send Timestamp (time interval from 1970-01-01, in Sharp it is DateTime.UtcNow) - I get 400 (Bad request). I tried to pass a string date, as in our api - i.e. A string with a date of the format YYYY-MM-DDThh:mm:ss - 400. I probably tried all the formats that came to mind, it's still 400.

What I send,
timestamp (DateTime. UtcNow):
61c02d932ccae259571365.png

timestamp (string):
61c02da23d382850709611.png

field where I pass:
61c02e0fa7001154563114.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
algrandeth, 2021-12-20
@algrandeth

As a result, took long.

long unixSeconds = DateTimeOffset.Now.ToUnixTimeSeconds();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question