[#155] Help in Edit Service\Service Provider

Migrated from Redmine #155 | Author: Rohit Bhattad
Status: Closed | Priority: Normal | Created: 2018-05-02


What should the payload be for editing Service\Service Providers. I am trying below payload but it doesnt seem to work

{“jsonrpc”:“2.0”,
“method”:“editService”,
“params”:[{
“id”:27,
“name”:“Rohit Bradsol Edit”}],
“id”:27
}

Vitaliy Kordiak wrote:

Hi Rohit Bhattad,

First of all, make sure you are connected to “Company administration service” API (Ex. API documentation | SimplyBook.me Online Scheduling )

Example:

{
	"jsonrpc":"2.0",
	"method":"editService",
	"params":[15, {
		"name":"Service name",
		"duration":"60",
		"hide_duration":"0",
		"description":"Service description",
		"is_public":"1",
		"is_active":"1",
		"position":"1",
		"file_id":null,
		"seo_url":null,
		"is_recurring":"0",
		"picture":null,
		"picture_sub_path":null,
		"picture_path":null,
		"recurring_settings":null
		}
	],
	"id":88
}

where 15 - service id

Pay attention! There is no way to delete service via API, in this case set is_active = 0.
To call our API, we recommend that you use the JSON-RPC library. ( Ex. implementations – JSON-RPC )

Thank you for your appeal.
Sincerely yours, Simplybook team.