访问路径:/api/app/transToTemplate
应用权限:作品——>作品信息
接口说明:作品转换为模板作品,可以在模版市场的企业专区查看到

类型: POST

Author: Shang Pan,flame

Content-Type: application/json; charset=utf-8

接口描述 作品转换为模板

Request-headers:

Header类型是否必填字段描述

X-Token

string

true

token

接口入参:

参数类型是否必填字段描述

appid

string

true

兔展作品id

uid

string

true

第三方平台用户的用户id

companyId

string

false

第三方平台企业id

接口出参:

Field类型字段描述

code

string

状态码

errorCode

string

错误状态码

msg

string

状态描述

data

object

数据

└─orgtplId

string

企业模板id

请求示例

curl -X POST -k -H 'Content-Type: application/json; charset=utf-8' -H 'X-Token' -i https://integrate.rabbitpre.com/api/open/api/app/transToTemplate --data '{
  "appid": "91",
  "uid": "91",
  "companyId": "91"
}'

返回示例

{
    "code": "200",
    "errorCode": "SUCCESS",
    "msg": "ok",
    "data": {
        "orgtplId": "3aad4a5a-4d3f-4c2f-9bfc-96c0a7f7596e"
    }
}