APIs & Integrations

NelsonS
Contributor | Gold Partner
Contributor | Gold Partner

Remove properties of the requiredProperties field in a custom scheme

Hello Community, I have an Enterprise account.

 

I have created a "Service" schema, in which at the beginning I configured the requiredProperties field with 2 properties "Llamada_de_servicio" and "placa".

 

get_a_schema.png


But when I use the endPoint Update a schema I only put "Llamada_de_servicio" and when I send the PATCH method, I get an output that still has the same properties.

update_a_schema.png

 

How can I remove the "placa" property from the requiredProperties?

 

Thank you very much.

0 Upvotes
2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

Remove properties of the requiredProperties field in a custom scheme

@NelsonS 

You should just need to put in the property that you want required and omit the other.  In testing, I do notice that it takes a few seconds to update when I do a get request.

Try doing the request in postman or an equivelant to see if it persists

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes
NelsonS
Contributor | Gold Partner
Contributor | Gold Partner

Remove properties of the requiredProperties field in a custom scheme

Hi @dennisedson, I made the query by postman (GET) and the "placa" is still appearing.

 

The procedure was to use the endpoint to update the schema to place the "Llamada_de_servicio" and when I made the query the "placa" still appears (yesterday), today I consulted again to obtain the schema and the "placa" is still displayed.

NelsonS_0-1635435684467.png

 

 

 

0 Upvotes