CRM
Update CRM custom object type
PATCH
/
v1
/
crm
/
custom-object-types
/
{objectKind}
Update CRM custom object type
curl --request PATCH \
--url https://api.wazapin.com/v1/crm/custom-object-types/{objectKind} \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"icon_key": "<string>",
"is_active": true,
"label": "<string>",
"metadata": "<unknown>",
"plural_label": "<string>",
"primary_display_field": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
icon_key: '<string>',
is_active: true,
label: '<string>',
metadata: '<unknown>',
plural_label: '<string>',
primary_display_field: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}"
payload = {
"description": "<string>",
"icon_key": "<string>",
"is_active": True,
"label": "<string>",
"metadata": "<unknown>",
"plural_label": "<string>",
"primary_display_field": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"backing_entity": "<string>",
"backing_table": "<string>",
"domain": "<string>",
"explicit": true,
"generalized": true,
"icon_key": "<string>",
"kind": "<string>",
"label": "<string>",
"plural_label": "<string>",
"primary_display_field": "<string>",
"supported_capabilities": [
"<string>"
],
"supports_custom_fields": true,
"supports_lists": true,
"supports_relationships": true
}{
"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>"
}
}Path Parameters
Body
application/json
Response
OK
⌘I
Update CRM custom object type
curl --request PATCH \
--url https://api.wazapin.com/v1/crm/custom-object-types/{objectKind} \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"icon_key": "<string>",
"is_active": true,
"label": "<string>",
"metadata": "<unknown>",
"plural_label": "<string>",
"primary_display_field": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
icon_key: '<string>',
is_active: true,
label: '<string>',
metadata: '<unknown>',
plural_label: '<string>',
primary_display_field: '<string>'
})
};
fetch('https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}"
payload = {
"description": "<string>",
"icon_key": "<string>",
"is_active": True,
"label": "<string>",
"metadata": "<unknown>",
"plural_label": "<string>",
"primary_display_field": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"backing_entity": "<string>",
"backing_table": "<string>",
"domain": "<string>",
"explicit": true,
"generalized": true,
"icon_key": "<string>",
"kind": "<string>",
"label": "<string>",
"plural_label": "<string>",
"primary_display_field": "<string>",
"supported_capabilities": [
"<string>"
],
"supports_custom_fields": true,
"supports_lists": true,
"supports_relationships": true
}{
"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>"
}
}