Created 07-16-2018 07:22 AM
Hi all,
I'm doing some tests with Atlas Rest-API managing types, entities, etc. I've been able to create types, entities and delete entities... but what about delete a Type?. I've not found information about that...
Thanks!
Created 07-16-2018 07:05 PM
If you are on version 0.8.0 or later of Atlas (HDP 2.6 and up), the version 2.0 APIs support deleting a type via the a DELETE operation on the types/typededfs API:
DELETE /v2/types/typedefs (with JSON payload specifying the typedef to delete)
The legacy (v1) API only supports GET, PUT and POST operations on types.
Created 07-16-2018 07:05 PM
If you are on version 0.8.0 or later of Atlas (HDP 2.6 and up), the version 2.0 APIs support deleting a type via the a DELETE operation on the types/typededfs API:
DELETE /v2/types/typedefs (with JSON payload specifying the typedef to delete)
The legacy (v1) API only supports GET, PUT and POST operations on types.
Created 07-17-2018 09:58 AM
Thanks William, I had seen those APIs but the first tests I did were unsuccessful... I'll insist.
I'll share the findings as soon as possible.
Created 07-17-2018 10:07 AM
If that's failing, keep in mind you won't be able to delete the type if there are entities in the typedef.
Created 07-17-2018 02:02 PM
Good deal - HTH!