APIs & Integrations

GVerma
Participant

Delete one of the Required property from Schema

SOLVE

I created a custom object.  When I was making some changes in the custom object, I specified event, module as required properties in my patch API call. Now I want to delete event as the required property from my schema. However, I am unable to delete it.

I want to change its schema and have only one required property module.

 

"requiredProperties": [
"module",
"event"
]

 

0 Upvotes
1 Accepted solution
dennisedson
Solution
Community Manager
Community Manager

Delete one of the Required property from Schema

SOLVE

@GVerma 

You should be able to send this:

{
    "requiredProperties": [
        "module"
    ]
}
Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show

View solution in original post

2 Replies 2
dennisedson
Solution
Community Manager
Community Manager

Delete one of the Required property from Schema

SOLVE

@GVerma 

You should be able to send this:

{
    "requiredProperties": [
        "module"
    ]
}
Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
swise
Participant

Delete one of the Required property from Schema

SOLVE

This is not working for me. When I run the PATCH call with only a single required property it just added that property to my required properties, instead of replacing the old required property. I attempted the call again to see if with two required properties if I patched with just one if it would delete the other. It did not.

0 Upvotes