Getting error when trying to set a value in Spectrum using curl