Changes the root/admin restructions on certain APIs. See ``nvmlRestrictedAPI_t`` for the list of supported APIs. This method can be used by a root/admin user to give non-root/admin access to certain otherwise-restricted APIs. The new setting lasts for the lifetime of the NVIDIA driver; it is not persistent. See ``nvmlDeviceGetAPIRestriction`` to query the current restriction settings.
:param device: The identifier of the target device.
:type device: intptr_t
:param api_type: Target API type for this operation.
:type api_type: RestrictedAPI
:param is_restricted: The target restriction.
:type is_restricted: EnableState
.. seealso:: `nvmlDeviceSetAPIRestriction`