Skip to content

Latest commit

 

History

History
86 lines (48 loc) · 3.37 KB

File metadata and controls

86 lines (48 loc) · 3.37 KB

TimeRuleApi

Method HTTP request Description
getByPath GET /timerules Retrieve a Time Rule by path.
get GET /timerules/{webId} Retrieve a Time Rule.
update PATCH /timerules/{webId} Update a Time Rule by replacing items in its definition.
delete DELETE /timerules/{webId} Delete a Time Rule.

getByPath

getByPath(String path, String selectedFields, String webIdType)

Retrieve a Time Rule by path.

Parameters

Name Type Description Notes
path String The path to the Time Rule.. [required]
selectedFields String List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

get

get(String webId, String selectedFields, String webIdType)

Retrieve a Time Rule.

Parameters

Name Type Description Notes
webId String The ID of the Time Rule.. [required]
selectedFields String List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

update

update(String webId, PITimeRule timeRule)

Update a Time Rule by replacing items in its definition.

Parameters

Name Type Description Notes
webId String The ID of the Time Rule.. [required]
timeRule PITimeRule A partial Time Rule containing the desired changes.. [required]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

delete

delete(String webId)

Delete a Time Rule.

Parameters

Name Type Description Notes
webId String The ID of the Time Rule.. [required]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]