{"method":"POST","path":"https://api.revcent.com/v2/smtp_profiles/{smtp_profile_id}","summary":"Edit A SMTP Profile","description":"Edit a specific SMTP profile using the smtp_profile ID. Only provide the fields that you want to edit in the request body. For example, if you only want to edit the SMTP profile's name, only include the name field in the request body. This is a very consequential operation and should only be performed upon explicit confirmation from the user.","operationId":"EditSMTPProfile","parameters":[{"in":"path","name":"smtp_profile_id","description":"The SMTP profile ID.","required":true,"schema":{"type":"string","title":"SMTP Profile ID","description":"A 20 character SMTP Profile ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"description":"The SMTP profile name.","type":"string"},"description":{"description":"The SMTP profile description.","type":"string"},"enabled":{"description":"Whether the SMTP profile is currently enabled.","type":"boolean"},"host":{"description":"The SMTP profile host.","type":"string"},"port":{"description":"The SMTP profile port.","type":"integer"},"use_ssl":{"description":"Whether the SMTP profile uses SSL.","type":"boolean"},"require_tls":{"description":"Whether the SMTP profile requires TLS.","type":"boolean"},"auth":{"type":"object","additionalProperties":false,"description":"The SMTP profile auth settings.","properties":{"user":{"description":"The SMTP profile auth user.","type":"string"},"pass":{"description":"The SMTP profile auth password which is automatically encrypted when saved.","type":"string"}},"required":["user","pass"]}},"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]},"smtp_profile_id":{"type":"string","title":"SMTP Profile ID","description":"A 20 character SMTP Profile 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."}}}