APIs & Integrations

DanielDPAltra
Participante

Archive/delete property of ticket

resolver

I created a property but now i want to delete it by postman. I think is not possible to delete them directly, but, yes archive them, but idk how to reach the good request. Does someone knows how to do it?

DanielDPAltra_0-1716203114357.png

 

 


Also i tried to make an update and adding

 

"archived" : true

 

but nothing chaged.

 

 

Please, give me a hand :))))

 

 

 

0 Avaliação positiva
1 Solução aceita
DanielPicklo
Solução
Participante | Parceiro Elite
Participante | Parceiro Elite

Archive/delete property of ticket

resolver

Good morning!

 

You are correct that you cannot delete a property outright and that it must be archived instead. All archived properties will delete themselves after a 90 day period.

 

To archive a property, you'll want to make a DELETE request to the following endpoint:
"/crm/v3/properties/{objectType}/{propertyName}"

In your case, you would replace the variable"objectType" with either "ticket" or "0-5" (as both will represent the Ticket object in the CRM), and "propertyName" would be replaced with the internal name value for the property you are attempting to archive.

 

Hope that helps!

Exibir solução no post original

0 Avaliação positiva
3 Respostas 3
HMir
Membro

Archive/delete property of ticket

resolver

@DanielDPAltra wrote:

I created a property but now i want to delete it by postman. I think is not possible to delete them directly, but, yes archive them, but idk how to reach the good request. Does someone knows how to do it?

DanielDPAltra_0-1716203114357.png

 

 


Also i tried to make an update and adding

 

"archived" : true

 

but nothing chaged.

 

 

Please, give me a hand :))))

 

 

 


To archive a property using Postman, you need to send a PATCH request to the appropriate endpoint with the correct property ID and the necessary headers. First, ensure you have the property ID you want to archive. In Postman, set up a new request with the method PATCH and the URL https://api.yourservice.com/properties/{property_id}, replacing {property_id} with the actual property ID. Add the headers for authorization, such as Authorization: Bearer your_access_token and Content-Type: application/json. In the body of the request, include { "archived": true } in JSON format. Send the request, and the property should be archived if the request is correctly formatted

0 Avaliação positiva
DanielDPAltra
Participante

Archive/delete property of ticket

resolver

Thanks, I changed it and it worked, im doing it by curl on code.

0 Avaliação positiva
DanielPicklo
Solução
Participante | Parceiro Elite
Participante | Parceiro Elite

Archive/delete property of ticket

resolver

Good morning!

 

You are correct that you cannot delete a property outright and that it must be archived instead. All archived properties will delete themselves after a 90 day period.

 

To archive a property, you'll want to make a DELETE request to the following endpoint:
"/crm/v3/properties/{objectType}/{propertyName}"

In your case, you would replace the variable"objectType" with either "ticket" or "0-5" (as both will represent the Ticket object in the CRM), and "propertyName" would be replaced with the internal name value for the property you are attempting to archive.

 

Hope that helps!

0 Avaliação positiva