How do I edit conditions with the API?