创建个人模板印章
接口地址 /v1/accounts/{accountId}/seals/personaltemplate
请求方式 POST
接口描述 通过模版参数,创建个人印章
请求参数
参数名称 | 说明 | 请求类型 | 必填 | 类型 |
---|---|---|---|---|
accountId | 用户id | path | true | string |
alias | 印章别名 | body | false | string |
color | 印章颜色,RED-红色, BLUE-蓝色,BLACK-黑色 | body | true | string |
height | 印章高度, 默认95px | body | false | int32 |
width | 印章宽度, 默认95px | body | false | int32 |
type | 模板类型, 详见个人印章样式说明 SQUARE, BORDERLESS, FZKC, HWLS, HWXK, HWXKBORDER, HYLSF, RECTANGLE, YGYJFCS, YGYMBXS, YYGXSF; | body | true | string |
请求示例
POST https://openapi.esign.cn/v1/accounts/cb340012ea6b46a0b6a29b982df80389/seals/personaltemplate
{
"alias": "红色四方形印章",
"color": "RED",
"height": 100,
"type": "SQUARE",
"width": 100
}
响应参数
参数名称 | 说明 | 类型 |
---|---|---|
fileKey | 印章fileKey | string |
sealId | 印章id | string |
url | 印章下载地址, 有效时间1小时 | string |
响应示例
{
"code": 0,
"message": "成功",
"data": {
"sealId": "bcd7ffd9-5caf-4342-bd1c-02257229ccd5",
"fileKey": "$fbd1d433-9f8f-4439-b184-7eb75861b31f$1759125409",
"url": "https://esignoss.oss-cn-hangzhou.aliyuncs.com/seal-service/18bcc4c7-911a-44c1-9703-75c10aee39ab/aa790124-7c51-4a7a-9068-11c2e0166bd9-openseal.png?Expires=1561454572&OSSAccessKeyId=LTAIdvHfiVrzDKbE&Signature=FlX9OyXYsT/cbDct9nEYO14kxBc%3D",
"width": 100,
"height": 100
}
}