[#388] I need some Help with method: addService

Migrated from Redmine #388 | Author: Davi Queiroz
Status: New | Priority: Immediate, there is BUG! | Created: 2019-05-24


Hello, i’m trying to use method addService from your API, my params JSON is that:

{
        "name": "Consultoria: Economia M.M.",
        "duration": "60",
        "buffertime_before": "0",
        "buffertime_after": "0",
        "hide_duration": "0",
        "description": "teste",
        "is_public": "1",
        "is_active": "1",
        "position": "3",
        "file_id": null,
        "seo_url": null,
        "is_recurring": "1",
        "picture": null,
        "picture_sub_path": null,
        "is_visible": "1",
        "picture_path": null,
        "price": "0.0000",
        "plugin_invoice_tax_id": null,
        "currency": "BRL",
        "tax": null,
        "recurring_settings":{
			"days":7,
			"repeat_count":1,
			"type":"fixed",
			"mode":"skip",
			"is_default_settings":true,
			"days_names":[
				"Friday",
				"Saturday",
				"Sunday"
				]
		},
        "classes_plugin_info": {
            "unit_group_binded_in_class": null,
            "unit_groups_binded_in_classes": []
        }
    }

but i’m getting the follow response:

“result”: false,
“errors”: [
{
“field”: “recurring_settings”,
“errors”: [
“Errors occurred on recurring drives. Try again”
]
}
]

and with your documentaion example i’m getting the same response, i’m work on a project and this is highly impactant, please HELP!

Redmine Admin wrote:

Hi, do you need to create recurring service by API or just common one. If not recurring then you need to skip recurring_settings and classes_plugin_info