CRM
Create CRM record comment
POST
/
orgs
/
{orgSlug}
/
crm
/
object-types
/
{objectKind}
/
records
/
{objectID}
/
comments
Create CRM record comment
curl --request POST \
--url https://api.wazapin.com/orgs/{orgSlug}/crm/object-types/{objectKind}/records/{objectID}/comments \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"mention_user_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('<string>'), mention_user_ids: ['<string>']})
};
fetch('https://api.wazapin.com/orgs/{orgSlug}/crm/object-types/{objectKind}/records/{objectID}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/orgs/{orgSlug}/crm/object-types/{objectKind}/records/{objectID}/comments"
payload = {
"body": "<string>",
"mention_user_ids": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"body": "<string>",
"created_at": "<string>",
"id": "<string>",
"mention_user_ids": [
"<string>"
],
"object_id": "<string>",
"object_kind": "<string>",
"updated_at": "<string>",
"created_by": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Create CRM record comment
curl --request POST \
--url https://api.wazapin.com/orgs/{orgSlug}/crm/object-types/{objectKind}/records/{objectID}/comments \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"mention_user_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('<string>'), mention_user_ids: ['<string>']})
};
fetch('https://api.wazapin.com/orgs/{orgSlug}/crm/object-types/{objectKind}/records/{objectID}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/orgs/{orgSlug}/crm/object-types/{objectKind}/records/{objectID}/comments"
payload = {
"body": "<string>",
"mention_user_ids": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"body": "<string>",
"created_at": "<string>",
"id": "<string>",
"mention_user_ids": [
"<string>"
],
"object_id": "<string>",
"object_kind": "<string>",
"updated_at": "<string>",
"created_by": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}