{"type":"api","title":"Create Site","meta":{"id":"/apps/pubhub/media/cisco-dna-center-api-2-3-7/4993d3480c2d42550ddc9fc7abe12d87a8485cae/3f2660a3-5586-3ef5-a257-2e69a95dd4c9","info":{"title":"Intent API","description":"Cisco Catalyst Center Platform v. 2.3.7","version":"2.3.7"},"tags":[{"name":"Authentication","description":"Access Token Request"},{"name":"Sites","description":"Create sites, assign devices to them and get site health"},{"name":"Topology","description":"Get topology details and overall network health"},{"name":"Devices","description":"Manage network devices"},{"name":"Clients","description":"Get client (by MAC Address) health, status, and information"},{"name":"Users","description":"Obtain information about *Users* and associated connections and devices"},{"name":"Issues","description":"Obtain issue details, impacted hosts, and suggested actions for remediation"},{"name":"Site Design","description":"Design/provision NFV device to site/area/building/floor"},{"name":"Network Settings","description":"Manage Network Settings"},{"name":"Software Image Management (SWIM)","description":"Manage activation and distribution of software images"},{"name":"Device Onboarding (PnP)","description":"Zero-touch deployment of network devices"},{"name":"Configuration Templates","description":"Configure and manage CLI templates"},{"name":"Configuration Archive","description":"Export device configurations to an encrypted zip file"},{"name":"SDA","description":"(BETA) Configure and manage SDA wired fabric border devices"},{"name":"Sensors","description":"Manage sensor test templates"},{"name":"Wireless","description":"Configure and manage SSIDs, Wireless, and RF profiles in non-fabric wireless network"},{"name":"Command Runner","description":"Retrieve real-time device configuration and CLI keywords"},{"name":"Discovery","description":"Discover network devices and manage discovery jobs"},{"name":"Path Trace","description":"Network route and flow analysis"},{"name":"File","description":"Get configuration files by namespace and ID"},{"name":"Task","description":"Get information about asynchronous tasks"},{"name":"Tag","description":"Assign administrator-defined tags to network devices"},{"name":"Application Policy","description":"Create and manage applications, application sets, and application policies"},{"name":"Applications","description":"Intent API to get a list of applications for a specific site, a device, or a client device's MAC address"},{"name":"ITSM","description":"Provide the details of the various third party integrations that are supported"},{"name":"Event Management","description":"Event based notification to external handlers"},{"name":"Security Advisories","description":"Provides the details of advisories on the network and devices"},{"name":"Compliance","description":"Provides compliance status data on the devices"}],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}},"openapi":"3.0.1","servers":[{"url":"/"}]},"spec":{"operationId":"createSite","tags":["Sites"],"summary":"Create Site","description":"Creates site with area/building/floor with specified hierarchy.","parameters":[{"name":"__runsync","description":"Enable this parameter to execute the API and return a response synchronously","required":true,"schema":{"type":"boolean","default":"application/json"},"in":"header"},{"name":"__timeout","description":"During synchronous execution, this defines the maximum time to wait for a response, before the API execution is terminated","required":false,"schema":{"type":"number","default":"application/json"},"in":"header"},{"name":"__persistbapioutput","description":"Persist bapi sync response","required":true,"schema":{"type":"boolean","default":"application/json"},"in":"header"}],"requestBody":{"description":"request","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["area","building","floor"],"description":"Type of site to create (eg: area, building, floor)"},"site":{"type":"object","properties":{"area":{"type":"object","properties":{"name":{"type":"string","description":"Name of the area (eg: Area1)"},"parentName":{"type":"string","description":"Parent name of the area to be created"}},"required":["name","parentName"],"description":"Area details"},"building":{"type":"object","properties":{"name":{"type":"string","description":"Name of the building (eg: building1)"},"address":{"type":"string","description":"Address of the building to be created"},"parentName":{"type":"string","description":"Parent name of building to be created"},"latitude":{"type":"number","description":"Latitude coordinate of the building (eg:37.338)"},"longitude":{"type":"number","description":"Longitude coordinate of the building (eg:-121.832)"},"country":{"type":"string","description":"Country (eg:United States)"}},"required":["name","parentName","latitude","longitude"],"description":"Building details"},"floor":{"type":"object","properties":{"name":{"type":"string","description":"Name of the floor (eg:floor-1)"},"parentName":{"type":"string","description":"Parent name of the floor to be created"},"rfModel":{"type":"string","enum":["Cubes And Walled Offices","Drywall Office Only","Indoor High Ceiling","Outdoor Open Space"],"description":"Type of floor (eg: Cubes And Walled Offices0. Valid values are 'Cubes And Walled Offices', 'Drywall Office Only', 'Indoor High Ceiling', 'Outdoor Open Space'"},"width":{"type":"number","description":"Width of the floor. Unit of measure is ft. (eg: 100)"},"length":{"type":"number","description":"Length of the floor. Unit of measure is ft. (eg: 100)"},"height":{"type":"number","description":"Height of the floor. Unit of measure is ft. (eg: 15)"},"floorNumber":{"type":"number","description":"Floor number. (eg: 5)"}},"required":["name","parentName","rfModel","width","length","height"],"description":""}},"description":"Site details"}},"required":["type","site"],"description":"","$$ref":"#/components/schemas/CreateSiteRequest"}}},"required":true},"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"executionId":{"type":"string","description":""},"executionStatusUrl":{"type":"string","description":""},"message":{"type":"string","description":""}},"description":"","$$ref":"#/components/schemas/CreateSiteResponse"}}}},"202":{"description":"The request has been accepted for execution.","content":{}},"400":{"description":"The client made a request that the server could not understand (for example, the request syntax is incorrect).","content":{}},"401":{"description":"The client's authentication credentials included with the request are missing or invalid.","content":{}},"404":{"description":"The client made a request for a resource that does not exist.","content":{}},"500":{"description":"The server could not fulfill the request.","content":{}}},"x-rapi-id":"50b5-89fd-4c7a-930a","x-rapi-overview":"Creates site with area/building/floor with specified hierarchy.","x-rapi-domain":"Know Your Network","x-rapi-subdomain":"Sites","x-rapi-version":"1.0.0","x-rapi-banner":["Intent"],"x-rapi-rateLimiting":"100~1","__originalOperationId":"createSite","method":"post","path":"/dna/intent/api/v1/site"}}