Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

customFields are not updated with users.updateOwnBasicInfo #1842

Closed
HugoHeneault opened this issue Dec 11, 2020 · 0 comments · Fixed by #1843
Closed

customFields are not updated with users.updateOwnBasicInfo #1842

HugoHeneault opened this issue Dec 11, 2020 · 0 comments · Fixed by #1843

Comments

@HugoHeneault
Copy link
Contributor

HugoHeneault commented Dec 11, 2020

On https://github.com/RocketChat/docs/blob/master/api/rest-api/methods/users/updateownbasicinfo.md it is stated that we should send data.customFields, but it should be customFields, as seen on https://github.com/RocketChat/Rocket.Chat/blob/master/app/api/server/v1/users.js#L497

So the payload for updating customFields using users.updateOwnBasicInfo should be

{
	"customFields": {
			"company": "Test"
		}
}

and not as currently stated

{
	"data": {
		"customFields": {
				"company": "Test"
			}
	}
}

I'll open an issue for that but as PR seems to be merged slowly I'll leave this open for anyone having the same issue...

@HugoHeneault HugoHeneault changed the title updateOwnBasicInfo customFields not updated customFields are not updated using updateOwnBasicInfo Dec 11, 2020
@HugoHeneault HugoHeneault changed the title customFields are not updated using updateOwnBasicInfo customFields are not updated with users.updateOwnBasicInfo Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant