Search code examples
tapkey

Why are Title and Comment field for a contact always null?


When I try to use Put or Patch for a contact object, the comment and title field always remain 'null'.

For instance, this is the json I use to perform a PUT:

{ "IpId" : "tapkey", "Identifier" : "emailaddress here", "Title" : "Test title", "Comment" : "Test comment" }

This executes with 200 OK. The contact that I immediately get return has the comment and title field set to 'null'. The contact is successfully created though.

For a PATCH the same thing happens.

Regards,

Stan


Solution

  • Never mind. I used a POST method to execute the PUT. Because the contact was created and a HTTP 200 was returned, I never saw this error.

    So the behavior for sending a PUT body to the contacts URL using the POST method will result in:

    • HTTP 200
    • Creation of the contact, but without title and comment
    • Result is an array with 1 contact, the new one

    Using the PUT method of course solved all my problems

    Thanks anyway

    Stan