code: public CMASpace update(CMASpace space) {
      assertNotNull(space, "space");
      assertNotNull(space.getName(), "space.name");
      final String spaceId = getResourceIdOrThrow(space, "space");
      final Integer version = getVersionOrThrow(space, "update");
  
      final CMASystem system = space.getSystem();
      space.setSystem(null);
  
      try {
        return service.update(version, spaceId, space).blockingFirst();
      } finally {
        space.setSystem(system);
      }
    }
docs: Update a Space.
  
  @param space Space
  @return {@link CMASpace} result instance
  @throws IllegalArgumentException if space is null.
  @throws IllegalArgumentException if space's name is null.
  @throws IllegalArgumentException if space's space id is null.
  @throws IllegalArgumentException if space's version is null.