updated endpoint for creating automations

This commit is contained in:
hannathkadher
2025-03-14 11:54:47 +04:00
parent 2a0f6a4596
commit 7ae3e4a933
3 changed files with 7 additions and 5 deletions

View File

@ -33,10 +33,10 @@ class SceneApi {
//
// create automation
static Future<Map<String, dynamic>> createAutomation(
CreateAutomationModel createAutomationModel) async {
CreateAutomationModel createAutomationModel, String projectId) async {
try {
final response = await _httpService.post(
path: ApiEndpoints.createAutomation,
path: ApiEndpoints.createAutomation.replaceAll('{projectId}', projectId),
body: createAutomationModel.toMap(),
showServerMessage: false,
expectedResponseModel: (json) {