Add required attr to query paramters