Skip to main content
Best Answer

Remove Offerings From Channels on Specific Dates


smallc
Helper I
Forum|alt.badge.img+1

Hi, 

I have an automation in Docebo Connect to remove offerings from catalogs on dates specified in a lookup table. To remove the offering, I used the base URL /learn/v1/catalog/ which I got from the Docebo API page. 

 

Now, I’m creating an automation to remove offerings from channels in the same way, but it keeps getting stuck at the removal step.

 

It’s so close to working, and I know you wise humans will be able to help me with this and save the day. Thanks in advance!

All the best,

Cat

Best answer by mstrom

Hey ​@smallc 

I don’t see that endpoint available in the API browser so I suspect the error you are receiving is because the URI doesn’t exist.

Instead use this for your endpoint to achieve removing a course or other asset from a channel:

DELETE: /share/v1/admin/channel/{channel_id}/asset/{asset_id}/type/{type_id}

  • channel_id=channel id
  • asset_id=the id of the asset, in your case this would be the course id
  • type_id=
    • asset=1
    • playlist=2
    • course=3
    • learning plan=4

So an example would be: /share/v1/admin/channel/40/asset/990/type/3

I just tried this in our sandbox and it works.

BTW: we use to work together, this is Mark from your previous company. 😉

Hope this helps.

~Mark

View original
Did this post help you find an answer to your question?

2 replies

  • 6 replies
  • Answer
  • March 6, 2025

Hey ​@smallc 

I don’t see that endpoint available in the API browser so I suspect the error you are receiving is because the URI doesn’t exist.

Instead use this for your endpoint to achieve removing a course or other asset from a channel:

DELETE: /share/v1/admin/channel/{channel_id}/asset/{asset_id}/type/{type_id}

  • channel_id=channel id
  • asset_id=the id of the asset, in your case this would be the course id
  • type_id=
    • asset=1
    • playlist=2
    • course=3
    • learning plan=4

So an example would be: /share/v1/admin/channel/40/asset/990/type/3

I just tried this in our sandbox and it works.

BTW: we use to work together, this is Mark from your previous company. 😉

Hope this helps.

~Mark


smallc
Helper I
Forum|alt.badge.img+1
  • Author
  • Helper I
  • 50 replies
  • March 6, 2025

Thank you, ​@mstrom! That worked. I appreciate your response!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings