mmayorga
Databricks Employee
Databricks Employee

Hi @Pat 

I hope you are doing well, and thank you for reaching out.

As you mentioned, the endpoint for AlertsV2 does not provide an explicit action for sharing. This is handled via the "ACL/Permissions" within Databricks SQL group via:

/api/2.0/preview/sql/permissions/{objectType}/{objectId}

Here is a sample code taken from the API documentation:

{
  "access_control_list": [
    {
      "group_name": "admins",
      "permission_level": "CAN_EDIT",
      "user_name": "user@example.com"
    }
  ],
  "object_id": "query/2cca1687-60ff-4886-a445-0230578c864d",
  "object_type": "alert"
}

Also, please notice that the documentation suggest to use a new version for setting workspace object permissions , check it out!

I hope this helps!