Solved

Unable to create an event-type via the Taxonomy API

  • 22 November 2021
  • 1 reply
  • 193 views

Badge

Using the python requests library, I’m trying to create an event-type. Here’s the request I’m sending:

data = {
'category': 'Test Event',
'description': 'Test description.',
'event_type': 'firebase unit test amplitude'
}

requests.post('https://amplitude.com/api/2/taxonomy/event', auth=self.auth, data=data)

I’m receiving the error: `404 Client Error: Not Found for url: https://amplitude.com/api/2/taxonomy/event`, but I don’t see what I’m doing incorrectly in the documentation: https://developers.amplitude.com/docs/taxonomy-api#create-an-event-type.

 

Is it possible this action is limited to companies with the Govern add-on? 

icon

Best answer by Jacenda Davis 30 November 2021, 03:16

View original

1 reply

Userlevel 3
Badge +5

Hello @matt ! 

 

Thanks for your question! Happy to help.

 

It is the case that creating an event type via the Taxonomy API is currently gated. At the moment, only customers who have the Taxonomy add-on can perform this request type. This is because if the event type does not already exist in the project, then creating the event via the Taxonomy API would essentially be planning the event type in the schema- a feature that is currently only included with the Taxonomy add-on.

 

In this case, I would recommend creating the event type by sending the event data via the HTTP API or the Batch API.

 

I hope this helps to clarify why you are not currently able to create an event type using the Taxonomy API! Please feel free to post any other questions you may have to the community.

Reply