{"method":"POST","path":"https://api.revcent.com/v2/sites/{site_id}/add_tracking_domain","summary":"Add Tracking Domain to Site","description":"Add a tracking domain to a specific site using the Site ID and a tracking domain ID. Adding a tracking domain to a site will allow the domain to access the main/live deployment via the a_record_ip in the routing object. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/AddTrackingDomainToSite.md for an in-depth overview of this operation.","operationId":"AddTrackingDomainToSite","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":{"tracking_domain":{"type":"string","description":"A 20 character tracking domain ID. The tracking domain must have SSL and DNS successfully configured before it can be added to a site. The tracking domain cannot be in use by another site. The tracking domain ID can be retrieved from the GetTrackingDomains operation.","minLength":20,"maxLength":20}},"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."}}}