[#1008] setWorkDayInfo always returns access denied

Migrated from Redmine #1008 | Author: Simply Bookme Prikkl
Status: New | Priority: High, I’m very impatient | Created: 2023-02-07


Hi I received an token by calling getUserToken, then with this token I call setWorkDayInfo on endpoint https://user-api.simplybook.me/admin with payload:
{
“jsonrpc”: “2.0”,
“method”: “setWorkDayInfo”,
“params”: [
{
“start_time”: “12:00”,
“end_time”: “18:00”,
“is_day_off”: 0,
“breaktime”: [
{
“start_time”: “14:00”,
“end_time”: “15:00”
}
],
“index”: “”,
“name”: “”,
“date”: “2023-02-23”,
“unit_group_id”: “61”,
“event_id”: “”
}
],
“id”: 1
}

but the repsonse is always:
{
“error”: {
“code”: -32600,
“message”: “Access denied”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Can you please help?

Simply Bookme Prikkl wrote:

and in the header of course the X-Comppany_login and X-Token from getUserToken

Simply Bookme Prikkl wrote:

Simply Bookme Prikkl wrote:

and in the header of course the X-Comppany-Login and X-Token from getUserToken