[#221] Can't use setWorkDayInfo api endpoint

Migrated from Redmine #221 | Author: Alejandro Mataloni
Status: Closed | Priority: Normal | Created: 2018-08-17


I am trying to use the setWorkDayInfo api to modify a day’s hours but I keep receiving “Service performer can’t work when company does not work.”
I checked the “Company working hours” and they are fully selected.
I am using {:start_time=>“10:00”, :end_time=>“11:00”, :name=>“Monday”, :unit_group_id=>4} as the parameter.

My account credentials are:
simply_book_company_login: testjovio
simply_book_user: api
simply_book_password: agZb77oUQhMPFHWhx
simply_book_api_key: d8f63cbea6638e71dbde3544381100127f1bed512e70fa18f57e718bec31eeee
simply_book_api_secret: 18c3afb46395b06b92a77886023c12d79f40915c07fbccdbb209b463ed1c63c2

Redmine Admin wrote:

Please provide us raw http request

Alejandro Mataloni wrote:

Hello I am not being able to get the raw http perhaps this log helps. I will keep try getting the raw reauest though

Alejandro Mataloni wrote:

I made it work, it seems that it requieres all the attributes to work. It would be nice if you mention that in the doc

Redmine Admin wrote:

Ok, thank you!

(Short original content)