How can I set document's property

How can I set document’s property

   const result = await batchPlay(
      [
         {
            "_obj": "set",
            "_target": [
               {
                  "_ref": "document",
                  "_id": _id
               }
            ],
            "to":option
         }
      ],{
         "synchronousExecution": false,
         "modalBehavior": "fail"
      });
        

my code is not working