HI, I need to update the Additional field which currently set to a Date and having Data type set to Date to Null through API. Anyway we can do it?
User or course additional field?
I’m not sure if you’ve tried leaving the value empty?
{
"additional_fields" : {
/
"fieldID" : "value",
"120" : "",
]
}
}
You’ll be able to find the field ID in the DevTools of your browser when browsing a user objects additional fields
REST API Reference documentation
https://doceboapi.docebosaas.com/api-browser/#!/manage/User/User_manage_v1_user_id
I hope you get something new out of this, good luck.
Thanks
The tip for finding the value is nice, I will say though I often keep a test user that has all additional fields information loaded so that I can use them as a reference. If doing API work anyways, can just look up the user info, GET - /manage/v1/user/{user_id},
Then, when you call it, you get a simple array with ALL the values in one go so that you can easily have a reference chart/table of them all without having to look them up one by one:
With courses, same idea can be done to within the API. The rest of the above is right though for null out the field, you can do an update with it empty. It actually makes it more of a good way to view than update, since you can essentially use the response of the first, change the one value, send to the update and done.
Reply
Log in to Docebo Community
Enter your email address or username and password below to log in to Docebo Community. No account yet? Create an account
Docebo Employee Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.