Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Create CRM relationship definition

POST/v1/crm/relationship-definitions
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
cardinalitystringrequired
Allowed:one_to_oneone_to_manymany_to_onemany_to_many
from_object_kindstringrequired
inverse_labelstring
keystringrequired
labelstringrequired
to_object_kindstringrequired
Responses
200OK
cardinalitystringrequired
created_atstringrequired
from_object_kindstringrequired
idstringrequired
inverse_labelstringrequired
is_activebooleanrequired
is_systembooleanrequired
keystringrequired
labelstringrequired
to_object_kindstringrequired
updated_atstringrequired
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
409Conflict
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/crm/relationship-definitions" \
  -H "Content-Type: application/json" \
  -d '{
  "cardinality": "one_to_one",
  "from_object_kind": "string",
  "inverse_label": "string",
  "key": "string",
  "label": "string",
  "to_object_kind": "string"
}'
Response
{
  "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"
}