删除服务时间
Description 说明
object service.deletetimes(string/array **serviceIds**)
This method allows to delete all service times from services. 此方法允许从服务中删除所有服务时间。
Parameters 参数
(string/array)
IDs of the services to delete all service times from. (string/array)
删除所有服务时间的服务ID。
Return values 返回值
(object)
Returns an object containing the IDs of the affected services under the serviceids
property. (object)
返回一个对象,该对象包含在serviceids
属性中受影响服务的ID。
Examples 范例
Deleting service times from an service 从服务中删除服务时间
Delete all service times from service “2”. 从服务“2”中删除所有服务时间。
Request 请求:
{
"jsonrpc": "2.0",
"method": "service.deletetimes",
"params": [
"2"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
Response 响应:
{
"jsonrpc": "2.0",
"result": {
"serviceids": [
"2"
]
},
"id": 1
}
See also 参考
Source 源码
CService::delete() in frontends/php/include/classes/api/services/CService.php. CService::delete()方法可在frontends/php/include/classes/api/services/CService.php中参考。