Open
Description
Hello.
I found a problem when using the 'timeman.close' method.
Please help. If you use this method with 1 parameter like this:
from bitrix24 import Bitrix24
bx24 = Bitrix24('https://******/rest/17/******/')
bx24.callMethod('timeman.close', {'USER_ID': 18})
There is a result. Everything works.
But, if you use several parameters:
bx24.callMethod('timeman.close', {'USER_ID': 18, 'TIME': '2024-12-19T14:00:00+03:00', 'REPORT': 'test'})
Then it ends with the error 'bitrix24.exceptions.BitrixError: HTTP error: 400'
(I can assume that the 'TIME' parameter is passed in the wrong format. There you can get the error 'Wrong datetime format'. But this is just my guess.)
From my observations, I will also say that if you use 'requests', when passing all the same parameters, there are no errors.
import requests
url = 'https://******/rest/17/******/timeman.close'
requests.post(url, {'USER_ID': 18, 'TIME': '2024-12-19T14:00:00+03:00', 'REPORT': 'test'})
It works.
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels