{"method":"POST","path":"https://api.revcent.com/v2/tracking_domains/{tracking_domain_id}","summary":"Edit A Tracking Domain","description":"Edit a previously created Tracking Domain using the Tracking Domain ID. Only include the properties you wish to modify. For example, if you only want to modify the name of the Tracking Domain, then only include the name property in the request body. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/EditTrackingDomain.md for an in-depth overview of this operation.","operationId":"EditTrackingDomain","parameters":[{"in":"path","name":"tracking_domain_id","description":"The Tracking Domain ID","required":true,"schema":{"type":"string","description":"A 20 character tracking domain ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"type":"string","description":"The Tracking Domain name. Must be unique from other Tracking Domain names."},"description":{"type":"string","description":"The Tracking Domain description."},"url_parameter_sets":{"type":"array","description":"An array of URL parameter set IDs. Must be valid URL parameter set(s) created in RevCent. Get a list of all URL parameter sets via the GetUrlParameterSets operation. If not provided, the existing URL parameter sets will remain unchanged. To remove all URL parameter sets, provide an empty array.","items":{"type":"string","minLength":20,"maxLength":20}},"url_parameters":{"type":"array","description":"A list of URL parameters to save specific to the domain. This is a legacy approach and it is recommended to instead use URL parameter sets instead of saving URL parameters specific to a domain. Using URL parameter sets provides a more organized and reusable approach.","items":{"type":"object","additionalProperties":false,"properties":{"url_parameter":{"description":"The URL parameter to save. For example, if the URL parameter is 'utm_source', then RevCent will save the value of the utm_source parameter for all visitors and purchases to your stores via RevCent's in house DNS tracking.","type":"string"},"metadata_name":{"description":"The name to save the URL parameter as in RevCent's metadata. It is common practice to set the metadata_name as the same as the url_parameter. If left empty, RevCent will save the URL parameter value to metadata using the URL parameter as the metadata name. For example, if the URL parameter is 'utm_source', and the metadata_name is left empty, then RevCent will save the value of the utm_source URL parameter to metadata with the metadata name of 'utm_source'. If the URL parameter is 'utm_source', and the metadata_name is set to 'source', then RevCent will save the value of the utm_source URL parameter to the visitors' metadata with the metadata name of 'source'. Recommended to leave empty or set the same as url_parameter.","type":"string"},"default_value":{"description":"The default value to save for the URL parameter if the URL parameter is present in the URL but you wish to save a default value intead of the value in the URL. This is optional. If not provided, RevCent will save the value in the URL. For example, if the URL parameter is 'utm_source', but you want to save the value as 'organic' regardless of the actual utm_source value in the URL, then you would set the default_value to 'organic'. Recommended to leave empty.","type":"string"},"days":{"description":"The number of days to save the URL parameter name/value to a specific visitor, i.e. the cookie age for the visitor for the URL parameter. This is optional. If not provided, RevCent will use the default value of 30 days. Recommended value is 30.","type":"integer"}}}}},"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]},"tracking_domain_id":{"type":"string","description":"A 20 character tracking domain 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."}}}