Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-1463

ACS Messages create.json API doesn't support 'custom_data_fields' as per documentation

    Details

      Description

      Calling messages/create.json and passing in a custom_data_fields param doesn't actually add the field to the new message object.

      See curl call and response below:

      CALL:
      curl -b cookies.txt -c cookies.txt -F "to_ids=521447fed3bde00b03015c16" -F "subject=Sunday Afternoon" -F "body=Howabout going to the Academy of Sciences?" -F "custom_data_fields={'payload': 'test data'" "api.cloud.appcelerator.com/v1/messages/create.json?key=VtBOemkWS2i8oF8ky5Zw72RlLnRaRRov"

      RESPONSE:

      {
        "meta": {
          "status": "ok",
          "code": 200,
          "method_name": "createMessage"
        },
        "response": {
          "messages": [
            {
              "id": "5222235bc6b5460b1300a560",
              "thread_id": "5222235bc6b5460b1300a560",
              "status": "sent",
              "subject": "Sunday Afternoon",
              "body": "Howabout going to the Academy of Sciences?",
              "created_at": "2013-08-31T17:09:47+0000",
              "updated_at": "2013-08-31T17:09:47+0000",
              "from": {
                "id": "51eef5ff271b550b1603daec",
                "first_name": "Monique",
                "last_name": "Barbanson",
                "created_at": "2013-07-23T21:30:39+0000",
                "updated_at": "2013-08-31T02:44:45+0000",
                "external_accounts": [
                  {
                    "external_id": "1646556920",
                    "external_type": "facebook"
                  }
                ],
                "username": "monique",
                "email": "mbarbanson@gmail.com",
                "custom_fields": {
                  "bio": "Late night hacker"
                }
              },
              "to": [
                {
                  "id": "521447fed3bde00b03015c16",
                  "first_name": "Fanfan",
                  "last_name": "Latulipe",
                  "created_at": "2013-08-21T04:54:22+0000",
                  "updated_at": "2013-08-29T19:20:10+0000",
                  "external_accounts": [
                    {
                      "external_id": "100004765751063",
                      "external_type": "facebook"
                    }
                  ],
                  "username": "mhb",
                  "email": "mhbpub@gmail.com"
                }
              ]
            }
          ]
        }
      }
      

      The cloud doc says:
      custom_data_fields : String
      User-defined data. See Custom Data Fields.
      Though this should be custom_fields instead custom_data_fields.
      http://docs.appcelerator.com/cloud/latest/#!/api/Messages-method-create

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tstatler Tim Statler
                Reporter:
                mpmiranda Mauro Parra-Miranda
                Reviewer:
                Peter Lee
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  Not Specified

                    Backbone Issue Sync

                    • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                      Git Integration