/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import t from"../../../request.js";import{parseUrl as o,encode as r,asValidOptions as s}from"../../utils.js";import i from"./support/EditCircuitsResult.js";async function e(e,p,u){const m=o(e),a={...p.toJSON(),f:"json"},c=r({...m.query,...a}),n=s(c,{...u,method:"post",authMode:"no-prompt"}),f=`${m.path}/circuits/create`,{data:d}=await t(f,n);return i.fromJSON(d)}export{e as createCircuit};
