CRM
Preview CRM custom object type rename impact
POST
/
v1
/
crm
/
custom-object-types
/
{objectKind}
/
rename-preview
Preview CRM custom object type rename impact
curl --request POST \
--url https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}/rename-preview \
--header 'Content-Type: application/json' \
--data '
{
"new_kind": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({new_kind: '<string>'})
};
fetch('https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}/rename-preview', 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}/rename-preview"
payload = { "new_kind": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"activity_events": 123,
"attributes": 123,
"deleted_records": 123,
"enriched_data": 123,
"export_jobs": 123,
"from": "<string>",
"import_jobs": 123,
"list_entries": 123,
"lists": 123,
"maps": {},
"operation": "<string>",
"record_pages": 123,
"records": 123,
"relationships": 123,
"to": "<string>",
"views": 123
}{
"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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Path Parameters
Body
application/json
Response
OK
Show child attributes
Show child attributes
⌘I
Preview CRM custom object type rename impact
curl --request POST \
--url https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}/rename-preview \
--header 'Content-Type: application/json' \
--data '
{
"new_kind": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({new_kind: '<string>'})
};
fetch('https://api.wazapin.com/v1/crm/custom-object-types/{objectKind}/rename-preview', 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}/rename-preview"
payload = { "new_kind": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"activity_events": 123,
"attributes": 123,
"deleted_records": 123,
"enriched_data": 123,
"export_jobs": 123,
"from": "<string>",
"import_jobs": 123,
"list_entries": 123,
"lists": 123,
"maps": {},
"operation": "<string>",
"record_pages": 123,
"records": 123,
"relationships": 123,
"to": "<string>",
"views": 123
}{
"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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}