Skip to content

Commit 955084f

Browse files
committed
Update contacts by posting to the collection resource
1 parent ebe3dda commit 955084f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intercom-java/src/main/java/io/intercom/api/Contact.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static Contact create(Contact c)
5656

5757
public static Contact update(Contact c)
5858
throws AuthorizationException, ClientException, ServerException, InvalidException, RateLimitException {
59-
return DataResource.updatePut(ContactUpdate.buildFrom(c), contactURI(c.getID()), Contact.class);
59+
return DataResource.update(ContactUpdate.buildFrom(c), "contacts", Contact.class);
6060
}
6161

6262
public static Contact delete(Contact c)

0 commit comments

Comments
 (0)