Creating New Task with Custom Field Through API
I am trying to create a new task and have the info entered into Postman. Every time I try to create my task with a custom field, I get the error description: "Parameter 'customFields' value is invalid". What needs to change?
Hello Berkley Walker, you can do it like this:
Thank you! Worked like a charm in this format João Batista
To fix the "Parameter 'customFields' value is invalid" error:
Correct Format: The
customFields
parameter should be an array of objects. Each object should include theid
of the custom field and its value:Check Field ID: Ensure you're using the correct custom field ID (you can retrieve it using the
GET /customfields
endpoint).Value Type: Ensure the value matches the field's expected type (string, date, checkbox, etc.).
Use Correct API Endpoint: Ensure you're using
POST /tasks
for creating tasks.If you adjust these aspects, the error should resolve.
It sounds like you're encountering an issue with the format or structure of the `customFields` parameter when trying to create your task in Postman. Here are a few things you might want to check:
1. **Data Format**: Ensure that the `customFields` parameter is being sent in the correct format (e.g., JSON). Check the API documentation for the expected structure.
2. **Field Names and Values**: Double-check the names and values of the custom fields. Make sure they match what the API expects in terms of naming conventions and permissible values.
3. **Required vs. Optional Fields**: Verify if any required custom fields are missing from your request.
4. **API Version Compatibility**: Ensure that you’re using the correct API version. Sometimes, changes between versions can affect how fields are processed.
5. **Error Details**: Look for any additional error messages or codes that might provide more context on what’s invalid.
If you provide more information about the format you’re using for `customFields`, I might be able to give more specific guidance on how to resolve the issue!