{"method":"POST","path":"https://api.revcent.com/v2/sites/{site_id}","summary":"Edit A Site","description":"Edit a previously created site using the site ID. Only include the properties you wish to modify. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/EditSite.md for an in-depth overview of this operation.","operationId":"EditSite","parameters":[{"in":"path","name":"site_id","description":"The Site ID","required":true,"schema":{"type":"string","description":"A 20 character site ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"type":"string","description":"The Site name. Must be unique from other Site names."},"description":{"type":"string","description":"The Site description."},"paypal_account":{"type":"string","description":"A 20 character PayPal account ID. The PayPal account will be used to process PayPal sales for the site. Only necessary if the site accepts PayPal payments.","minLength":20,"maxLength":20},"payment_profile":{"type":"string","description":"A 20 character payment profile ID. The payment profile will be used to process credit card sales for the site.","minLength":20,"maxLength":20},"product_group":{"type":"string","description":"A 20 character product group ID. The product group will be used as the catalog source for products which will be sold on the site.","minLength":20,"maxLength":20},"collaborators":{"type":"array","description":"A list of all valid GitHub usernames that are allowed as collaborators to the site repository on GitHub. Provide all collaborators that should have access to the site repository, as this will replace the existing collaborators allowed for sites' GitHub repository. If a collaborator is not included in the list, but was previously, they will no longer have access to the site repository. At least one collaborator is required.","items":{"type":"string","description":"An individual GitHub username that should be included as a collaborator."},"minItems":1}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"site_id":{"type":"string","description":"A 20 character site ID.","minLength":20,"maxLength":20},"result":{"type":"string"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error. Will always be 0.","type":"integer","enum":[0]},"error_code":{"description":"The specific error code.","type":"string"},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIStandardErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}