1
{
  "data": [
{
  "ID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "name": "Testing Project API",
  "objCode": "PROJ",
  "parameterValues": {
    "DE:Complete Sales Package": [
      "Parcel Register",
      "Signed Lease / Contract"
    ],
    "DE:Temp ID": 1234d5.0,
    "DE:Estimated Yearly Revenue": 0.0,
    "DE:Monitoring Required": "Yes",
    "DE:Lease Rate Annually": xxx,
    "DE:Project DC Size in W": 0.0,
    "DE:Sales Person": "xxC",
    "DE:Project": "xxxx - xxxxxxxx",
    "DE:IESO status name": "OPA",
    "DE:MicroFIT Rate": 333
  },
  "category": {
    "ID": "xxxxxxxxxxxxxxxxxx",
    "name": "xxxxxxxxxxxxxxxxxxx",
    "objCode": "CTGY"
  }
}

] }

当我通过模板手动创建项目时收到的响应是名为“DE:Complete Sales Package”的参数值,它本身是一个带有多个复选框的自定义字段,因此它具有多个值。如何创建也通过 api 更新 ..

我的请求就像使用单个值一样: https://mycompany.attask-ondemand.com/attask/api-unsupported/proj?method=post&apiKey=apiKey&templateID=templateID&companyID=companyID&name=Testing Project API-12345&DE:Temp ID=12345

When Multiple check boxes selected what is the request ? 我正在使用此错误.... https://mycompany.attask-ondemand.com/attask/api-unsupported/proj?method=post&apiKey=apiKey&templateID=templateID&companyID=companyID&name=Testing Project API-12345&DE:Complete Sales Package=[签订租约/合同,包裹登记]

?? 任何帮助如何发布这种具有多个值的参数值,例如:

“DE:完整的销售包”:[“A”、“B”、“C”]、

4

1 回答 1

0

您需要通过更新调用来执行此操作,以下应该可以工作。

https://mycompany.attask-ondemand.com/attask/api-unsupported/proj?method=post&apiKey=apiKey&updates={"templateID":"templateID","companyID":"companyID","name":"Testing Project API-12345","DE:Complete Sales Packag":["SSigned Lease / Contract","Parcel Register"]}
于 2015-09-21T16:58:04.453 回答