At the moment, context restrictions can only be set via the UI once a context has been created. To allow for more programmatic creation of contexts, allow for the ability to set restrictions either at creation or after the context has been created, via the API.