All Products
Search
Document Center

Direct Mail:ModifyPWByDomain

Last Updated:Oct 28, 2022

Sets the SMTP password for a domain name.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

DomainName

String

Yes

example.com

The domain name. It must be 1 to 50 characters in length and can contain digits, letters, periods (.), hyphens (-).

Password

String

Yes

pwd

The password.

Action

String

No

ModifyPWByDomain

The operation that you want to perform. Set the value to ModifyPWByDomain.

Response parameters

Parameter

Type

Example

Description

Code

String

OK

The status code.

Message

String

The request is successful.

The description of the status code.

RequestId

String

02B2A890-CBD8-4806-9BCA-C93190CE7EF6

The ID of the request.

Success

Boolean

true

Indicates whether the operation is successful.

Examples

Sample requests

http(s)://dm.aliyuncs.com/? Action=ModifyPWByDomain
&DomainName=example.com
&Password=pwd
&<Common request parameters>

Sample success responses

XML format

<ModifyPWByDomainResponse>
      <RequestId>02B2A890-CBD8-4806-9BCA-C93190CE7EF6</RequestId>
      <Code>OK</Code>
      <Message>xxx</Message>
      <Success>true</Success>
</ModifyPWByDomainResponse>

JSON format

{
	"Message":"xxx",
	"RequestId":"02B2A890-CBD8-4806-9BCA-C93190CE7EF6",
	"Success":"true",
	"Code":"OK"
}

Error codes

For a list of error codes, visit the API Error Center.