Creates a service credential.
Service credential resource.
SMTP credential.
Service credential created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
host required | string SMTP host name. | ||||||||
type required | string Type of credential. | ||||||||
id | string <= 36 characters ID of the credential. | ||||||||
hash | string <= 36 characters Deprecated ID of the credential. Use | ||||||||
status | string Status of the credential.
| ||||||||
deactivationTime | string or null <date-time> Date and time when the credential is deactivated. | ||||||||
port | integer [ 1 .. 65535 ] Default: 25 SMTP port value. | ||||||||
encryption | string Default: "none" Encryption value. | ||||||||
object (SmtpAuthorization) Authentication type and details. | |||||||||
Array of objects (SelfLink) Related links. | |||||||||
Existing service credential retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "status": "active",
- "host": "string",
- "port": 25,
- "encryption": "none",
- "auth": {
- "type": "none"
}
}
{- "id": "crd_0YV9Y706QGCB39FQD380G1ZHZH",
- "hash": "crd_0YV9Y706QGCB39FQD380G1ZHZH",
- "status": "active",
- "deactivationTime": "2019-08-24T14:15:22Z",
- "type": "smtp",
- "host": "string",
- "port": 25,
- "encryption": "none",
- "auth": {
- "type": "none"
}, - "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}