def change_blueprint_restrictions(self, content_type, content_id, restricted, **kwargs):
kwargs["<STR_LIT>"] = content_type<EOL>kwargs["<STR_LIT>"] = content_id<EOL>kwargs["<STR_LIT>"] = restricted<EOL>response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(<EOL>self.course_id,<EOL>self.id<EOL>),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return response.json().get("<STR_LIT:success>", False)<EOL>
Set or remove restrictions on a blueprint course object.
Must have all three parameters for this function call to work.

:calls: `PUT /api/v1/courses/:course_id/blueprint_templates/:template_id/restrict_item \
<https://canvas.instructure.com/doc/api/blueprint_courses.html#method.master_courses/master_templates.restrict_item>`_

:param content_type: type of object
:type content_type: str
:param content_id: id of the object
:type content_id: int
:param restricted: whether it's restricted or not
:type restricted: bool

:returns: True if the restriction was succesfully applied.
:rtype: bool