Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Server Error when creating select/dropdown field via Forms API #1259

Open
4 tasks done
ccc-developer opened this issue Dec 26, 2024 · 0 comments
Open
4 tasks done

Comments

@ccc-developer
Copy link

Related Product
People

Describe the question
I'm encountering a 500 Internal Server Error when trying to create a select/dropdown field via the Forms API endpoint. The error occurs at:

POST /people/v2/forms/{form_id}/fields

when attempting to create a field with field_type: "select" or "dropdown".

What have you tried that worked?

  • Successfully created a form via the API
  • Successfully created other field types (date and text) within the form
  • Verified authentication is working correctly via other endpoints
  • Confirmed proper form_id is being used

What have you tried that didn't work?

  1. Basic select field creation:
{
    "data": {
        "type": "FormField",
        "attributes": {
            "label": "Care Category Type",
            "description": "Types of care requests",
            "required": true,
            "field_type": "select/dropdown",
            "sequence": 3
        }
    }
}
  1. Adding settings to the field:
{
    "data": {
        "type": "FormField",
        "attributes": {
            "label": "Care Category Type",
            "description": "Types of care requests",
            "required": true,
            "field_type": "select/dropdown",
            "sequence": 3,
            "settings": {
                "multiple": false,
                "allow_other": false
            }
        }
    }
}

All attempts result in a 500 Internal Server Error before even attempting to add options to the field.

Additional context
The error response:

{
    "errors": [{
        "status": "500",
        "title": "Internal Server Error",
        "detail": "An internal server error occurred on our end and we've been notified. Please contact support if the issue persists."
    }]
}

I have...

  • Reviewed the documentation found at https://developer.planning.center/docs
  • Searched for previous issues answering this question
  • Removed all private information from this issue (credentials, tokens, emails, phone numbers, etc.)
  • Reviewed my issue for completeness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant