Rest API Question - replication.update

Hi, I’m trying to use Rest API and PowerShell to script the creation of several dozen new replication tasks. I have most of it working except for two properties: source_datasets and periodic_snapshot_tasks. The script has an error when using a single value, but works when using two or more.

“replication_create.source_datasets”: [

  • {*
  •  "message": "Not a list",*
    
  •  "errno": 22*
    
  • }*
  • ]*

The exact code is: “source_datasets” = “tankname/dataset1” and “periodic_snapshot_tasks” = “8”

Since it’s in PowerShell it differs a little from regular Rest where the colon is replaced with an equals sign and the trailing comma is not needed.

I think maybe I’m just missing the correct formatting or encapsulation but I can’t seem to figure it out.

Thanks for any help.