{"type":"api","title":"Update Site","meta":{"id":"/apps/pubhub/media/legacy-umbrella-api/bf58de618cbb72dda8f39b0414ce94c0a15cd467/8e02e061-a337-3c9a-a76f-a51a8c21291c","swagger":"2.0","info":{"title":"Networks","version":"1.0.0","description":"Networks, Internal Networks, Roaming Computers,\nSites, Virtual Appliances, and Internal Domains","contact":{"name":"Cloud Security Developer Community"}},"host":"management.api.umbrella.com","basePath":"/v1","schemes":["https"],"securityDefinitions":{"http":{"type":"basic"}},"security":[{"http":[]}],"x-parser-conf":{"httpBasic":{"username":"","password":""},"overview":{"markdownPath":"legacy/management/networks-overview.md"},"meta":{"useProxy":true}}},"spec":{"tags":["Sites"],"description":"Update a site","summary":"Update Site","operationId":"updateSite","parameters":[{"name":"organizationId","type":"integer","description":"The organization ID","in":"path","required":true,"$$ref":"#/parameters/orgIdParam"},{"type":"integer","description":"The site ID","name":"siteId","in":"path","required":true},{"schema":{"properties":{"name":{"type":"string","description":"site name","minLength":1,"maxLength":255}},"type":"object","required":["name"],"example":{"name":"The name of the site"}},"description":"The site that you want to update","name":"payload","in":"body"}],"responses":{"200":{"description":"Update a site","schema":{"properties":{"originId":{"type":"integer","description":"origin id"},"name":{"type":"string","description":"site name"},"siteId":{"type":"integer","description":"site id"},"isDefault":{"type":"boolean","description":"indicates whether the site is default or not"},"type":{"type":"string","description":"site type"},"internalNetworkCount":{"type":"integer","description":"number of internal networks attached to this site"},"vaCount":{"type":"integer","description":"number of virtual appliances attached to this site"},"modifiedAt":{"type":"string","format":"date-time","description":"modified at"},"createdAt":{"type":"string","format":"date-time","description":"created at"}},"type":"object","required":["originId","name","siteId","isDefault","modifiedAt","createdAt"],"example":{"originId":1234,"name":"The name of the site","siteId":14,"isDefault":false,"type":"Type of site","internalNetworkCount":10,"vaCount":2,"createdAt":"2022-03-09T22:18:26.625Z","modifiedAt":"2022-03-09T22:18:26.625Z"},"$$ref":"#/definitions/Site"}},"400":{"description":"Validation Error","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":400,"description":"the http error code returned."},"error":{"type":"string","example":"Validation Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"},"validationErrors":{"type":"object","properties":{"someProperty":{"type":"string","example":"must not be empty","description":"the name of the property failing validation."}}}}},"$$ref":"#/responses/BadRequest"},"401":{"description":"Unauthorized- The authorization header is missing or the token is unauthorized","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":401,"description":"the http error code returned"},"error":{"type":"string","example":"Unauthorized","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Unauthorized"},"403":{"description":"Forbidden- The token is invalid","schema":{"type":"object","minProperties":1,"required":["message"],"properties":{"statusCode":{"type":"integer","example":403,"description":"the http error code returned"},"error":{"type":"string","example":"Forbidden, Invalid authentication credentials","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Forbidden"},"404":{"description":"Not Found- A resource specified in the URL was not found","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":404,"description":"the http error code returned"},"error":{"type":"string","example":"Not Found","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/NotFound"},"500":{"description":"Error- This request could not be processed by the server","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":500,"description":"the http error code returned."},"error":{"type":"string","example":"Internal Server Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/ServerError"}},"__originalOperationId":"updateSite","security":[{"http":[]}],"consumes":["application/json"],"produces":["application/json"],"method":"put","path":"/organizations/{organizationId}/sites/{siteId}"}}