PUT
/v2/user-preferences/set-preferred-organization/{organizationId}Set the user's preferred organization
Sets the authenticated user's preferred organization. Supply the organization's numeric ID to update the preference. The response confirms that the preference was updated.
organizationIdintegerrequired
The numeric identifier of the organization to set as the user's preferred organization.
200Returns confirmation that the user's preferred organization was updated.
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to change the preferred organization.
codestringrequired
paramsarray<object>optional
404Returned when the requested resource is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid. The organizationId path parameter must identify the organization to set as preferred. A 401 is returned when the request has no valid authentication, a 403 when the authenticated user is not permitted to change the preference, and a 404 when the requested resource is not found.