Building a custom connector to another web app that we use. Basically, the JSON looks like this according to their documentation:
{
"workspace": {
"title": "string",
"creator_role": "string",
"custom_fields": [
{
"custom_field_id": 0,
"value": "string"
}
]
}
}However, there are multiple "custom_fields", so it should be more like this:
{
"workspace": {
"title": "string",
"creator_role": "string",
"custom_fields": [
{
"custom_field_id": 0,
"value": "string"
},
{
"custom_field_id": 0,
"value": "string"
},
{
"custom_field_id": 0,
"value": "string"
}
]
}
}And would eventually be something like this:
{
"workspace": {
"title": "Test Title",
"creator_role": "admin",
"custom_fields": [
{
"custom_field_id": 123,
"value": "Test Custom Field 1"
},
{
"custom_field_id": 456,
"value": "Test Custom Field 2"
},
{
"custom_field_id": 789,
"value": "Test Custom Field 3"
}
]
}
}However when I drop in the second code snippet, it removes the duplicate "custom_fields". How do I prevent this?