CreateSmtpCredential
POST {{baseUrl}}/users/:userId/smtpCredentials/
Creates a new SMTP credential for the specified user. An SMTP credential has an SMTP user name and an SMTP password. You must specify a description for the SMTP credential (although it can be an empty string). It does not have to be unique, and you can change it anytime with UpdateSmtpCredential.
Request Body
{"description"=>"dolor Lorem"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations (e.g., if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
may be rejected). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"description":"aliqua labore","id":"aliqua cillum","inactiveStatus":92672348,"lifecycleState":"ACTIVE","password":"sit ut non veniam","timeCreated":"2016-04-07T17:49:04.280Z","timeExpires":"1984-07-18T20:35:45.532Z","userId":"sit aliqua","username":"esse"}