updated endpoint for update automation

This commit is contained in:
hannathkadher
2025-03-14 12:58:12 +04:00
parent 88aac86b10
commit 0d50aa68fa
3 changed files with 11 additions and 10 deletions

View File

@ -202,12 +202,13 @@ class SceneApi {
}
//update automation
static updateAutomation(
CreateAutomationModel createAutomationModel, String automationId) async {
static updateAutomation(CreateAutomationModel createAutomationModel,
String automationId, String projectId) async {
try {
final response = await _httpService.put(
path: ApiEndpoints.updateAutomation
.replaceAll('{automationId}', automationId),
.replaceAll('{automationId}', automationId)
.replaceAll('{projectId}', projectId),
body: createAutomationModel
.toJson(automationId.isNotEmpty == true ? automationId : null),
expectedResponseModel: (json) {