curl --request PATCH \
--url https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"comments": "<string>",
"date_end": "2023-11-07T05:31:56Z",
"date_of_event": "2023-11-07T05:31:56Z",
"only_super_admin": true,
"tags": [
{
"color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 1,
"name": "<string>"
}
],
"title": "<string>"
}
'import requests
url = "https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}"
payload = {
"address": "<string>",
"comments": "<string>",
"date_end": "2023-11-07T05:31:56Z",
"date_of_event": "2023-11-07T05:31:56Z",
"only_super_admin": True,
"tags": [
{
"color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 1,
"name": "<string>"
}
],
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
comments: '<string>',
date_end: '2023-11-07T05:31:56Z',
date_of_event: '2023-11-07T05:31:56Z',
only_super_admin: true,
tags: [
{color: '<string>', created_at: '2023-11-07T05:31:56Z', id: 1, name: '<string>'}
],
title: '<string>'
})
};
fetch('https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'comments' => '<string>',
'date_end' => '2023-11-07T05:31:56Z',
'date_of_event' => '2023-11-07T05:31:56Z',
'only_super_admin' => true,
'tags' => [
[
'color' => '<string>',
'created_at' => '2023-11-07T05:31:56Z',
'id' => 1,
'name' => '<string>'
]
],
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"comments\": \"<string>\",\n \"date_end\": \"2023-11-07T05:31:56Z\",\n \"date_of_event\": \"2023-11-07T05:31:56Z\",\n \"only_super_admin\": true,\n \"tags\": [\n {\n \"color\": \"<string>\",\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"id\": 1,\n \"name\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"comments\": \"<string>\",\n \"date_end\": \"2023-11-07T05:31:56Z\",\n \"date_of_event\": \"2023-11-07T05:31:56Z\",\n \"only_super_admin\": true,\n \"tags\": [\n {\n \"color\": \"<string>\",\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"id\": 1,\n \"name\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"comments\": \"<string>\",\n \"date_end\": \"2023-11-07T05:31:56Z\",\n \"date_of_event\": \"2023-11-07T05:31:56Z\",\n \"only_super_admin\": true,\n \"tags\": [\n {\n \"color\": \"<string>\",\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"id\": 1,\n \"name\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"address": "<string>",
"comments": "<string>",
"contact_id": 1,
"created_at": "2023-11-07T05:31:56Z",
"date_end": "2023-11-07T05:31:56Z",
"date_of_event": "2023-11-07T05:31:56Z",
"files": [
{
"created_at": "2023-11-07T05:31:56Z",
"folder": "<string>",
"group_id": 1,
"id": 1,
"mime": "<string>",
"name": "<string>",
"owner_id": 123,
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
],
"group_id": 1,
"id": 1,
"only_super_admin": true,
"tags": [
{
"color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 1,
"name": "<string>"
}
],
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"user": {
"CreatedAt": "2023-11-07T05:31:56Z",
"UpdatedAt": "2023-11-07T05:31:56Z",
"address": "<string>",
"avatar": "<string>",
"birthdate": "2023-11-07T05:31:56Z",
"city": "<string>",
"created": "2023-11-07T05:31:56Z",
"firstname": "<string>",
"group_id": [
123
],
"id": 123,
"locale": "<string>",
"location": "<string>",
"mail": "jsmith@example.com",
"phone": "<string>",
"postal": "<string>",
"status": "<string>",
"surname": "<string>",
"two_factor_enable": true
},
"user_id": 1
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Update an interaction
Fully replaces an existing interaction (behaves like PUT).
curl --request PATCH \
--url https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"comments": "<string>",
"date_end": "2023-11-07T05:31:56Z",
"date_of_event": "2023-11-07T05:31:56Z",
"only_super_admin": true,
"tags": [
{
"color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 1,
"name": "<string>"
}
],
"title": "<string>"
}
'import requests
url = "https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}"
payload = {
"address": "<string>",
"comments": "<string>",
"date_end": "2023-11-07T05:31:56Z",
"date_of_event": "2023-11-07T05:31:56Z",
"only_super_admin": True,
"tags": [
{
"color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 1,
"name": "<string>"
}
],
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
comments: '<string>',
date_end: '2023-11-07T05:31:56Z',
date_of_event: '2023-11-07T05:31:56Z',
only_super_admin: true,
tags: [
{color: '<string>', created_at: '2023-11-07T05:31:56Z', id: 1, name: '<string>'}
],
title: '<string>'
})
};
fetch('https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'comments' => '<string>',
'date_end' => '2023-11-07T05:31:56Z',
'date_of_event' => '2023-11-07T05:31:56Z',
'only_super_admin' => true,
'tags' => [
[
'color' => '<string>',
'created_at' => '2023-11-07T05:31:56Z',
'id' => 1,
'name' => '<string>'
]
],
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"comments\": \"<string>\",\n \"date_end\": \"2023-11-07T05:31:56Z\",\n \"date_of_event\": \"2023-11-07T05:31:56Z\",\n \"only_super_admin\": true,\n \"tags\": [\n {\n \"color\": \"<string>\",\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"id\": 1,\n \"name\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"comments\": \"<string>\",\n \"date_end\": \"2023-11-07T05:31:56Z\",\n \"date_of_event\": \"2023-11-07T05:31:56Z\",\n \"only_super_admin\": true,\n \"tags\": [\n {\n \"color\": \"<string>\",\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"id\": 1,\n \"name\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://incoming.qomon.app/v1/contacts/{contactId}/interactions/{interactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"comments\": \"<string>\",\n \"date_end\": \"2023-11-07T05:31:56Z\",\n \"date_of_event\": \"2023-11-07T05:31:56Z\",\n \"only_super_admin\": true,\n \"tags\": [\n {\n \"color\": \"<string>\",\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"id\": 1,\n \"name\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"address": "<string>",
"comments": "<string>",
"contact_id": 1,
"created_at": "2023-11-07T05:31:56Z",
"date_end": "2023-11-07T05:31:56Z",
"date_of_event": "2023-11-07T05:31:56Z",
"files": [
{
"created_at": "2023-11-07T05:31:56Z",
"folder": "<string>",
"group_id": 1,
"id": 1,
"mime": "<string>",
"name": "<string>",
"owner_id": 123,
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
],
"group_id": 1,
"id": 1,
"only_super_admin": true,
"tags": [
{
"color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": 1,
"name": "<string>"
}
],
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"user": {
"CreatedAt": "2023-11-07T05:31:56Z",
"UpdatedAt": "2023-11-07T05:31:56Z",
"address": "<string>",
"avatar": "<string>",
"birthdate": "2023-11-07T05:31:56Z",
"city": "<string>",
"created": "2023-11-07T05:31:56Z",
"firstname": "<string>",
"group_id": [
123
],
"id": 123,
"locale": "<string>",
"location": "<string>",
"mail": "jsmith@example.com",
"phone": "<string>",
"postal": "<string>",
"status": "<string>",
"surname": "<string>",
"two_factor_enable": true
},
"user_id": 1
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}tags. Always send the full interaction object if you don’t want to lose existing data.Authorizations
OAuth2 access token. Pass the token in the Authorization header as Bearer <token>. The token is looked up in Redis to resolve the caller identity.
Path Parameters
Contact ID.
x >= 042
Interaction ID.
x >= 0501
Body
Physical address related to the interaction, if applicable (e.g., meeting location).
When the interaction actually took place, if different from when it was logged.
If true, only users with the private-interactions permission can see this interaction.
incoming, outgoing Tags to attach to the interaction. Provide an existing tag's id to reuse it, or omit id (with a name) to create a new tag. This list fully replaces the interaction's tags on update.
Show child attributes
Show child attributes
email, letter, call, meeting, sms, donation Response
OK
Physical address related to the interaction, if applicable. (e.g., meeting location)
ID of the contact associated with this interaction.
x >= 0List of files attached to the interaction.
Show child attributes
Show child attributes
x >= 0x >= 0If true, only user with specific permissions can see this interaction.
incoming, outgoing Tags attached to the interaction.
Show child attributes
Show child attributes
email, letter, call, meeting, sms, donation User who logged the interaction.
Show child attributes
Show child attributes
ID of the user who logged the interaction.
x >= 0Was this page helpful?

