diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index c9fa410c1..42a7748fd 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -581,6 +581,7 @@ App::post('/v1/functions/:functionId/deployments') '$read' => ['role:all'], '$write' => ['role:all'], 'resourceId' => $function->getId(), + 'resourceType' => 'functions', 'dateCreated' => time(), 'entrypoint' => $entrypoint, 'path' => $path, @@ -610,6 +611,7 @@ App::post('/v1/functions/:functionId/deployments') '$read' => ['role:all'], '$write' => ['role:all'], 'resourceId' => $function->getId(), + 'resourceType' => 'functions', 'dateCreated' => time(), 'entrypoint' => $entrypoint, 'path' => $path,