Best Answer

Update User Expiration Dates via API

  • 7 January 2022
  • 1 reply
  • 154 views

Userlevel 2
Badge +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?

icon

Best answer by Bfarkas 2 March 2022, 17:27

View original

1 reply

Userlevel 7
Badge +3

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