code: @POST
     @Path("autoload/{repository}/{workspace}/{path:.*}")
     public Response autoload(@PathParam("repository") String repository, @PathParam("workspace") String workspace,
        @PathParam("path") String path, @DefaultValue("true") @QueryParam("state") boolean state)
     {
        Session ses = null;
        try
        {
           ses =
              sessionProviderService.getSessionProvider(null).getSession(workspace,
                 repositoryService.getRepository(repository));
           Node script = ((Node)ses.getItem("/" + path)).getNode("jcr:content");
           script.setProperty("exo:autoload", state);
           ses.save();
           return Response.status(Response.Status.NO_CONTENT).build();
        }
        catch (PathNotFoundException e)
        {
           String msg = "Path " + path + " does not exists";
           LOG.error(msg);
           return Response.status(Response.Status.NOT_FOUND).entity(msg).entity(MediaType.TEXT_PLAIN).build();
        }
        catch (Exception e)
        {
           LOG.error(e.getMessage(), e);
           return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage())
              .type(MediaType.TEXT_PLAIN).build();
        }
        finally
        {
           if (ses != null)
           {
              ses.logout();
           }
        }
     }
docs: Change exo:autoload property. If this property is 'true' script will be
  deployed automatically when JCR repository startup and automatically
  re-deployed when script source code changed.
  
  @param repository repository name
  @param workspace workspace name
  @param path JCR path to node that contains script
  @param state value for property exo:autoload, if it is not specified then
  'true' will be used as default.
  Example: .../scripts/groovy/test1.groovy/load is the same to
  .../scripts/groovy/test1.groovy/load?state=true
  @LevelAPI Provisional