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?

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
4 commentaires

Hello Berkley Walker, you can do it like this:

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Thank you! Worked like a charm in this format João Batista

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

To fix the "Parameter 'customFields' value is invalid" error:

  1. Correct Format: The customFields parameter should be an array of objects. Each object should include the id of the custom field and its value:

    "customFields": [
      {
        "id": "your_custom_field_id",
        "value": "your_value"
      }
    ]
    
  2. Check Field ID: Ensure you're using the correct custom field ID (you can retrieve it using the GET /customfields endpoint).

  3. Value Type: Ensure the value matches the field's expected type (string, date, checkbox, etc.).

  4. Use Correct API Endpoint: Ensure you're using POST /tasks for creating tasks.

If you adjust these aspects, the error should resolve.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

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 whats 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!

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: Creating New Task with Custom Field Through API
[this list is visible for admins and agents only]

Haut de la page
Didn’t find what you were looking for? Write new post