{"method":"POST","path":"https://api.revcent.com/v2/sites","summary":"Create A Site","description":"Create a site, which will issue a unique site ID. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/CreateSite.md for an in-depth overview of this operation.","operationId":"CreateSite","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 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. At least one collaborator is required when creating a site.","items":{"type":"string","description":"An individual GitHub username that should be included as a collaborator."},"minItems":1}},"required":["name","payment_profile","product_group","collaborators"],"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."}}}