# Missing required field during stack upgrade via api

**URL:** <https://forums.suse.com/t/missing-required-field-during-stack-upgrade-via-api/5851>\
**Category:** Rancher 1.x\
**Created:** [March 14, 2017, 2:36pm UTC](https://forums.suse.com/t/missing-required-field-during-stack-upgrade-via-api/5851 "2017-03-14T14:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jweber](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jweber/32/4213_2.png) [@jweber](https://forums.suse.com/u/jweber)\
**Post date:** [March 14, 2017, 2:36pm UTC](https://forums.suse.com/t/missing-required-field-during-stack-upgrade-via-api/5851/1 "2017-03-14T14:36:26Z")

</div>

Hi - hit a road block - that I need assistance with… When attempting to upgrade a stack via the api. The error is:

{  
“id”: “876bf339-2b6b-43ba-b3d8-69c73e2fcb54”,  
“type”: “error”,  
“links”: {},  
“actions”: {},  
“status”: 422,  
“code”: “MissingRequired”,  
“message”: null,  
“detail”: null,  
“fieldName”: “name”,  
“baseType”: “error”  
}

Target url: [http://xxxx:8080/v2-beta/projects/1a72/stacks/1st205?action=upgrade](http://xxxx:8080/v2-beta/projects/1a72/stacks/1st205?action=upgrade) with a post. The payload has been copied directly from the chrome network tab - where i did a upgrade via the UI. Heres what it basically looks like:

{  
“dockerCompose”: “version: ‘2’\nservices:\n …”,  
“rancherCompose”: “.catalog:\n name: platform\n version: 0.5\n description: Edge2Web Core Platform\n uuid: e2w-platform-0\n questions:\n - variable: “GIT\_SHA”\n description: “GIT\_SHA”\n label: “GIT\_SHA”\n required: true\n type: “string”\n - variable: “E2W\_ENVIRONMENT”\n description: “The target aws environment”\n label: “E2W Environment”\n required: true\n type: “string”\n”,  
“environment”: {  
“GIT\_SHA”: “xxxx”,  
“E2W\_ENVIRONMENT”: “platform”  
},  
“externalId”: “catalog://E2W:platform:0”  
}

I tried to add the missing fieldName ‘name’ but then i get a different error about name not being unique. Just trying to emulate in the api what the ui allows. Upgrading a stack from a catalog item.

Any help would be appreciated.
