# Having issue with workflow extension definition update

**URL:** <https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [November 3, 2021, 7:09am UTC](https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381 "2021-11-03T07:09:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrakeZhao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/drakezhao/32/25270_2.png) [@DrakeZhao](https://community.hubspot.com/u/DrakeZhao)\
**Post date:** [November 3, 2021, 7:09am UTC](https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381/1 "2021-11-03T07:09:10Z")

</div>

The old defination is like:

```lia-code-sample
const fieldMetadata = [
 {
 key: 'phoneNumbers',
 label: 'Phone Numbers',
 fieldType: 'TEXTAREA',
 required: true,
 values: [
 {
 allowsMergeTags: true,
 type: 'STATIC_VALUE'
 }
 ]
 },
 {
 key: 'sms',
 label: 'Message',
 fieldType: 'TEXTAREA',
 required: true,
 values: [
 {
 allowsMergeTags: true,
 type: 'STATIC_VALUE'
 }
 ]
 },
 {
 key: 'owner',
 label: 'Owner(Make sure the contact owner already authorized to RingCentral from integration install page)',
 fieldType: 'OWNER',
 required: true,
 values: [
 {
 allowsMergeTags: false,
 type: 'OBJECT_PROPERTY'
 }
 ]
 }
]

```

Try to add one more key like this:

```lia-code-sample
const fieldMetadata = [
 {
 key: 'phoneNumbers',
 label: 'Phone Numbers',
 fieldType: 'TEXTAREA',
 required: true,
 values: [
 {
 allowsMergeTags: true,
 type: 'STATIC_VALUE'
 }
 ]
 },
 {
 key: 'sms',
 label: 'Message',
 fieldType: 'TEXTAREA',
 required: true,
 values: [
 {
 allowsMergeTags: true,
 type: 'STATIC_VALUE'
 }
 ]
 },
 {
 key: 'logSMS',
 label: 'Log SMS to contact timeline',
 fieldType: 'SELECT',
 required: true,
 values: [
 {
 type: 'STATIC_VALUE',
 allowsMergeTags: false,
 options: [
 {
 text: 'Yes',
 value: 'true'
 },
 {
 text: 'No',
 value: 'false'
 }
 ]
 }
 ]
 },
 {
 key: 'owner',
 label: 'Owner(Make sure the contact owner already authorized to RingCentral from integration install page)',
 fieldType: 'OWNER',
 required: true,
 values: [
 {
 allowsMergeTags: false,
 type: 'OBJECT_PROPERTY'
 }
 ]
 }
]

```

This will get an error says:

```lia-code-sample
status: 'error',
message: 'There was a problem with the request.',
correlationId: 'c07348ff-8230-4ef4-a059-fb9bf288583b'

```

However, if I only change some labels of old definition, update request would work, hope someone can help with this.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 3, 2021, 9:50am UTC](https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381/2 "2021-11-03T09:50:10Z")

</div>

Hi @DrakeZhao ,  
Please use postman for the same and passed the parameters, because when we passed value through postman extension then its updated. Hope this will for you.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![DrakeZhao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/drakezhao/32/25270_2.png) [@DrakeZhao](https://community.hubspot.com/u/DrakeZhao)\
**Post date:** [November 3, 2021, 10:25am UTC](https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381/3 "2021-11-03T10:25:46Z")

</div>

Thank you for the quick response, I tried in postman, get same error message, another things is as I tested if use same defination to create new extension, it would work.

---

<div class="post-metadata">

**Author:** ![rhenry](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rhenry/32/13838_2.png) [@rhenry](https://community.hubspot.com/u/rhenry)\
**Post date:** [November 17, 2021, 2:36pm UTC](https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381/4 "2021-11-17T14:36:15Z")

</div>

Hello @DrakeZhao ,  
If you set the ‘required’ field to ‘false’ for the new field you are adding to the definition it will work .  
The system won’t allow adding new ‘required’ fields to existing workflow definitions because this breaks backwards compatibility. We will update the API documentation to reflect this.  
Hope this helps, apologies for any inconvience.

---

<div class="post-metadata">

**Author:** ![DrakeZhao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/drakezhao/32/25270_2.png) [@DrakeZhao](https://community.hubspot.com/u/DrakeZhao)\
**Post date:** [November 18, 2021, 9:34am UTC](https://community.hubspot.com/t/having-issue-with-workflow-extension-definition-update/46381/5 "2021-11-18T09:34:14Z")

</div>

Thank you, this works!
