The 400 Bad Request error in Webflow CMS typically occurs when there is an issue with the request being sent to the server. In the case of changing a reference field that references another collection, there are a few possible reasons for this error.
1. Invalid Request Format: One possible reason for the 400 error is that the request being sent to change the reference field is in an incorrect format. Ensure that the request is properly formatted, including the correct syntax and data structure.
2. Missing or Incorrect ID: Another common cause of the 400 error is when the ID of the item you are trying to reference is missing or incorrect. Double-check that the reference ID matches an existing item in the referenced collection.
3. Permissions Issue: If you are trying to change a reference field and you do not have the necessary permissions, you may encounter a 400 error. Ensure that you have appropriate permissions to make changes to the referenced collection and its fields.
4. Validation Error: It is also possible that the change you are trying to make violates a validation rule set on the reference field. For example, if the reference field has a required constraint, you must ensure that the referenced item exists before attempting to make the change.
To troubleshoot the issue, I recommend reviewing your request and its parameters to ensure it aligns with the expected format. Check the ID of the referenced item and verify that you have the necessary permissions to make changes. Additionally, review any validation rules that may be affecting the reference field.
If you continue to experience difficulties, I recommend reaching out to Webflow support for further assistance. They can help investigate the issue and provide specific guidance based on your particular situation.