Skip to main content
Best Answer

How to create a category with the API?

  • October 17, 2025
  • 2 replies
  • 44 views

Hey!

Using the API, I can access the existing categories with GET /learn/v1/categories and GET /learn/v1/categories/{id}.

I need to create categories so I’m looking for POST /learn/v1/categories or an equivalent, but I can’t find such an entry point anywhere.

Is it possible? How?

Best answer by brandonbillings

I’m never sure which service certain functions are under. It seems like a lot was stuffed into “learn” but then they started building out more. It’d be handy to have some kind of way to search across all services in the api browser.

There are some category functions under the course service. I think the one you need is:

 

POST    /course/v1/categories 

 

2 replies

brandonbillings
Helper II
Forum|alt.badge.img+1

I’m never sure which service certain functions are under. It seems like a lot was stuffed into “learn” but then they started building out more. It’d be handy to have some kind of way to search across all services in the api browser.

There are some category functions under the course service. I think the one you need is:

 

POST    /course/v1/categories 

 


  • Author
  • Novice I
  • October 17, 2025

As a reference, you can use POST /course/v1/categories with a body such as 

{

  code: “MyCode”,

  title: {

    type: "single_value",

    value: “This is my new category”,

    values: {},

  },

  id_parent: 1234,

}