We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cb79ef + dbd588c commit a5dcf9bCopy full SHA for a5dcf9b
lib/intercom/api_operations/save.rb
@@ -21,7 +21,7 @@ def create(params = PARAMS_NOT_PROVIDED)
21
def save(object)
22
collection_name = Utils.resource_class_to_collection_name(collection_class)
23
if id_present?(object) && !posted_updates?(object)
24
- response = @client.put("/#{collection_name}/#{id}", object.to_submittable_hash)
+ response = @client.put("/#{collection_name}/#{object.id}", object.to_submittable_hash)
25
else
26
response = @client.post("/#{collection_name}", object.to_submittable_hash.merge(identity_hash(object)))
27
end
0 commit comments