Migrated from Redmine #1411 | Author: Claus Schaufler
Status: Feedback | Priority: Normal | Created: 2025-05-09
Hello,
I’m having problems changing / specifying a Provider for a Service.
As an example, I’m receiving the following Object from the API:
{
“id”: 49,
“name”: “Test”,
“description”: “Test”,
“price”: null,
“currency”: “EUR”,
“deposit_price”: null,
“tax_id”: null,
“tax”: null,
“duration”: 60,
“buffer_time_after”: 0,
“recurring_settings”: null,
“picture”: null,
“picture_preview”: null,
“memberships”: ,
“providers”: [
2
],
“is_active”: true,
“is_visible”: true,
“duration_type”: null,
“limit_booking”: 0,
“min_group_booking”: null
}
I then change the fields I want to change and send the following (changed) Object to “https://user-api-v2.simplybook.me/admin/services/49”
{
“id”: 49,
“name”: “Test”,
“description”: “Test 2”,
“price”: null,
“currency”: “EUR”,
“deposit_price”: null,
“tax_id”: null,
“tax”: null,
“duration”: 120,
“buffer_time_after”: 0,
“recurring_settings”: null,
“picture”: null,
“picture_preview”: null,
“memberships”: ,
“providers”: [
4
],
“is_active”: true,
“is_visible”: true,
“duration_type”: null,
“limit_booking”: 0,
“min_group_booking”: null
}
The API then returns the following Object in response:
{
“id”: 49,
“name”: “Test”,
“description”: “Test 2”,
“price”: null,
“currency”: “EUR”,
“deposit_price”: null,
“tax_id”: null,
“tax”: null,
“duration”: 120,
“buffer_time_after”: 0,
“recurring_settings”: null,
“picture”: null,
“picture_preview”: null,
“memberships”: ,
“providers”: [
2
],
“is_active”: true,
“is_visible”: true,
“duration_type”: null,
“limit_booking”: 0,
“min_group_booking”: null
}
description and duration changed as specified, just the change to providers was ignored. (Available provider ids are 2, 3 and 4. All three of them are set by default when creating a new Service)
What am I missing/doing wrong?
Sincerely,
Claus Schaufler