Skip to content

修改宠物档案说明文档


开发者需要按照如下步骤完成:

当用户在商户程序中修改宠物档案时,需要部分宠物信息会被存储在我们的数据库中。这样,我们才能够获取与该宠物ID相关的信息。

调用接口:

请求方式: PUT(HTTPS)
请求地址: https://ms-ai.chongzhiling.com/api/v1.0/ai-b/pet-profile?pet_profile_id=[PET_PROFILE_ID]&token=[ACCESS_TOKEN]

请求参数:

json
{
  "allergy_history": "无",
  "avatar": "https://angular00001.oss-cn-beijing.aliyuncs.com/applet.png",
  "birthday": "2024-09-09 12:00:00",
  "disease_history": "无",
  "family_history": "无",
  "gender": 0,
  "is_neutered": 0,
  "is_vaccination": 0,
  "name": "啊文",
  "pet_type": 2,
  "pet_variety": "德文",
  "vaccination_date": "2024-09-13 12:00:00",
  "weight": "2"
}

参数列表:

名称类型必填说明
avatarstring宠物图片
birthdaystring出生日期
gendernumber性别: 1-公, 2-母
namestring宠物名称
pet_typenumber宠物类型:1-猫, 2-狗
pet_varietystring宠物品种: 如: 中华田园犬
weightstring体重(kg)

返回结果:

json
{
  "data": {
    "pet_profile_id": 35872
  },
  "message": "Post successfully.",
  "success": true
}

返回参数说明:

名称类型说明
data.pet_profile_idnumber宠物编号

接口调试