I'm working on the services/edit endpoint, in an attempt to add a configurable option to a clients' existing service. I am defining all of the following parameters as follows:
I am using the services/get endpoint to retrieve the service by ID and then plugging those values directly into the edit endpoint, except for adding a single configurable option (which is my intended change).
When sending the request, I get the following error:
{
"message": "An unexpected error occured.",
"response": "DateTime::__construct(): Failed to parse time string (null) at position 0 (n): The timezone could not be found in the database"
}
I've taken the following steps to troubleshoot this:
ensured the timezone is set in Blesta
tried URL encoding the DateTime string that comes out of the get endpoint
Question
codym
Hello,
I'm working on the services/edit endpoint, in an attempt to add a configurable option to a clients' existing service. I am defining all of the following parameters as follows:
parent_service_id = PSID package_group_id = PGID pricing_id = PricingID client_id = ClientID module_row_id = 1 coupon_id = null qty = 1 status = pending date_added = "2019-11-02 17:14:08" date_renews = "2019-12-02 18:14:08" date_last_renewed = null date_suspended = null date_canceled = null use_module = true configoptions = [currentConfigOptions, newConfigOption]
I am using the services/get endpoint to retrieve the service by ID and then plugging those values directly into the edit endpoint, except for adding a single configurable option (which is my intended change).
When sending the request, I get the following error:
{ "message": "An unexpected error occured.", "response": "DateTime::__construct(): Failed to parse time string (null) at position 0 (n): The timezone could not be found in the database" }
I've taken the following steps to troubleshoot this:
Any suggestions?
Thanks!
Edited by codymadded examples of date value
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.