{"type":"api","title":"Assign Devices To Site","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"assignDevicesToSite","tags":["Sites"],"summary":"Assign Devices To Site","description":"Assigns unassigned devices to a site. This API does not move assigned devices to other sites.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","description":"request","required":true,"schema":{"type":"object","properties":{"device":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"}}}}},"$$ref":"#/definitions/AssignDevicesToSiteRequest"},"in":"body"},{"name":"__runsync","description":"Enable this parameter to execute the API and return a response synchronously","default":false,"required":true,"type":"boolean","in":"header"},{"name":"__persistbapioutput","description":"Persist bapi sync response","default":true,"required":true,"type":"boolean","in":"header"},{"name":"__runsynctimeout","description":"During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated","default":55,"required":false,"type":"number","in":"header"},{"name":"siteId","description":"Site id to which site the device to assign","required":true,"type":"string","in":"path"}],"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","schema":{"type":"object","properties":{"executionId":{"type":"string"},"executionStatusUrl":{"type":"string"},"message":{"type":"string"}},"$$ref":"#/definitions/AssignDevicesToSiteResponse"}},"400":{"description":"The client made a request that the server could not understand (for example, the request syntax is incorrect)."},"401":{"description":"The client's authentication credentials included with the request are missing or invalid."},"404":{"description":"The client made a request for a resource that does not exist."},"500":{"description":"The server could not fulfill the request."}},"__originalOperationId":"assignDevicesToSite","method":"post","path":"/dna/intent/api/v1/assign-device-to-site/{siteId}/device"}}