Skip to main content
Best Answer

Update User Expiration Dates via API

  • January 7, 2022
  • 1 reply
  • 194 views

nicole.roman
Influencer I
Forum|alt.badge.img+1

We plan to offer extended access to our users who would like to have their accounts re-activated after their accounts have expired. To do this they would have to pay an extension/re-activation fee to have their account re-instated. We’re hoping to automate this by utilizing an API that changes the user’s expiration date after the user has paid the fee through Salesforce. Can this be achieved through an API?

Best answer by Bfarkas

Sure, you are just updating the user with a new expiration date:

PUT /manage/v1/user/{id}

{
  "expiration": "2022-03-02"
}

The ID is the Docebo ID of the user, and then update the date to the new expiration date.

Note: If you have other processes run based on expiration, you might need to check/update those as well.

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

1 reply

Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • Answer
  • March 2, 2022

Sure, you are just updating the user with a new expiration date:

PUT /manage/v1/user/{id}

{
  "expiration": "2022-03-02"
}

The ID is the Docebo ID of the user, and then update the date to the new expiration date.

Note: If you have other processes run based on expiration, you might need to check/update those as well.


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