{"type":"api","title":"Update 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":"updateSite","tags":["Sites"],"summary":"Update Site","description":"Update site area/building/floor with specified hierarchy and new values","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","description":"request","required":true,"schema":{"type":"object","properties":{"type":{"type":"string","enum":["area","building","floor"]},"site":{"type":"object","properties":{"area":{"type":"object","properties":{"name":{"type":"string"},"parentName":{"type":"string"}}},"building":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"parentName":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"}}},"floor":{"type":"object","properties":{"name":{"type":"string"},"rfModel":{"type":"string","enum":["Cubes And Walled Offices","Drywall Office Only","Indoor High Ceiling","Outdoor Open Space"]},"width":{"type":"number"},"length":{"type":"number"},"height":{"type":"number"}}}}}},"$$ref":"#/definitions/UpdateSiteRequest"},"in":"body"},{"name":"__runsync","description":"Enable this parameter to execute the API and return a response synchronously","default":false,"required":false,"type":"boolean","in":"header"},{"name":"__timeout","description":"During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated","default":10,"required":false,"type":"number","in":"header"},{"name":"__persistbapioutput","description":"Persist bapi sync response","default":true,"required":true,"type":"boolean","in":"header"},{"name":"siteId","description":"Site id to which site details to be updated.","default":"","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":{"result":{"type":"string"},"response":{"type":"object","properties":{"endTime":{"type":"string"},"version":{"type":"string"},"startTime":{"type":"string"},"progress":{"type":"string"},"data":{"type":"string"},"serviceType":{"type":"string"},"operationIdList":{"type":"array","items":{"type":"string"}},"isError":{"type":"string"},"rootId":{"type":"string"},"instanceTenantId":{"type":"string"},"id":{"type":"string"}}},"status":{"type":"string"}},"$$ref":"#/definitions/UpdateSiteResponse"}},"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":"updateSite","method":"put","path":"/dna/intent/api/v1/site/{siteId}"}}