UpdatePage - 更新自定义响应页面

更新用户已创建的自定义响应页面,可以通过此接口修改页面名称、描述、内容类型及内容本身。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Idlong

自定义响应页面的 ID,可通过调用 ListPages 接口获取。

50000001
Namestring

自定义响应页面的名称。

example
Descriptionstring

自定义响应页面的描述。

a custom deny page
ContentTypestring

HTTP Header 中的 Content-Type 字段,例如:

  • text/html
  • application/json
text/html
Contentstring

BASE64 编码后的 Content-Type 对应的响应页面内容。

PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

36af3fcc-43d0-441c-86b1-428951dc8225

示例

正常返回示例

JSON格式

{
  "RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameterThe specified parameter is invalid.输入参数规范校验失败。
400InternalExceptionFailed to call the service. Try again later or contact technical support.调用服务失败,请稍后重试或联系客服咨询详情。
403%s.NotSupportThe specified resource type %s is not supported.不支持指定的资源类型。如需使用该类型资源,请与我们联系。
403%s.OverQuotaThe quantity of %s exceeds the quota.该资源的数量超出了配额所规定的范围,如需申请更多的额度,请与我们联系。
403%s.WrongValueMatchedThe value of specified parameter %s can not pass the matching check.指定的参数对应的值不能通过匹配校验。如果您确定需要使用该参数值,请与我们联系。
403Page.NotExistThe specified custom error page does not exist or is not recognized by the system.Check whether the error page identifier is correct and matches an error page that has been created and registered in the system's error handling framework.If you want to create a new error page, make sure that the creation process is complete.指定的自定义错误页面不存在,或者未被系统识别。请确保错误页面的标识符是正确的,并且该页面已经被妥善地在系统的错误处理框架中创建和注册。如果打算新增一个错误页面,请验证创建过程是否已成功完成。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2024-12-26OpenAPI 错误码发生变更查看变更详情
2024-09-25OpenAPI 错误码发生变更查看变更详情
2024-09-18OpenAPI 错误码发生变更查看变更详情