CRM
Create CRM relationship definition
POST
/
v1
/
crm
/
relationship-definitions
Create CRM relationship definition
curl --request POST \
--url https://api.wazapin.com/v1/crm/relationship-definitions \
--header 'Content-Type: application/json' \
--data '
{
"from_object_kind": "<string>",
"key": "<string>",
"label": "<string>",
"to_object_kind": "<string>",
"inverse_label": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
from_object_kind: '<string>',
key: '<string>',
label: '<string>',
to_object_kind: '<string>',
inverse_label: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/relationship-definitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/relationship-definitions"
payload = {
"from_object_kind": "<string>",
"key": "<string>",
"label": "<string>",
"to_object_kind": "<string>",
"inverse_label": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"cardinality": "<string>",
"created_at": "<string>",
"from_object_kind": "<string>",
"id": "<string>",
"inverse_label": "<string>",
"is_active": true,
"is_system": true,
"key": "<string>",
"label": "<string>",
"to_object_kind": "<string>",
"updated_at": "<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>"
}
}Body
application/json
⌘I
Create CRM relationship definition
curl --request POST \
--url https://api.wazapin.com/v1/crm/relationship-definitions \
--header 'Content-Type: application/json' \
--data '
{
"from_object_kind": "<string>",
"key": "<string>",
"label": "<string>",
"to_object_kind": "<string>",
"inverse_label": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
from_object_kind: '<string>',
key: '<string>',
label: '<string>',
to_object_kind: '<string>',
inverse_label: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/relationship-definitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/relationship-definitions"
payload = {
"from_object_kind": "<string>",
"key": "<string>",
"label": "<string>",
"to_object_kind": "<string>",
"inverse_label": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"cardinality": "<string>",
"created_at": "<string>",
"from_object_kind": "<string>",
"id": "<string>",
"inverse_label": "<string>",
"is_active": true,
"is_system": true,
"key": "<string>",
"label": "<string>",
"to_object_kind": "<string>",
"updated_at": "<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>"
}
}