# 422 error when making or adding to version stack

**URL:** <https://forum.frame.io/t/422-error-when-making-or-adding-to-version-stack/195>\
**Category:** Help\
**Tags:** version-stacks\
**Created:** [May 4, 2022, 1:38pm UTC](https://forum.frame.io/t/422-error-when-making-or-adding-to-version-stack/195 "2022-05-04T13:38:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivo](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@Ivo](https://forum.frame.io/u/Ivo)\
**Post date:** [May 4, 2022, 1:38pm UTC](https://forum.frame.io/t/422-error-when-making-or-adding-to-version-stack/195/1 "2022-05-04T13:38:15Z")

</div>

Hi there  
I’m trying to use the API to add an asset to another and make a version stack or add an asset if the version stack exists. I get a 422 error both when I use the python bindings or directly with requests, I get the result below. I have added some data of both source and destination. What am I doing wrong?

Thanks!

API url:  
`https://api.frame.io/v2/assets/b9cc9315-833e-49b7-8b4b-21d332f6946b/version`

API payload:  
next\_asset\_id: 87a9462a-5f6d-4210-b352-9ab8326d01b6

API response:  
code: 422  
errors: [{‘code’: 422, ‘detail’: ‘The supplied parameters were malformed’, ‘status’: 422, ‘title’: ‘Invalid Argument’}]  
message: Invalid Argument

Destination asset:  
upload\_completed\_at: 2022-05-03T20:27:55.817730Z  
frames: 463  
id: b9cc9315-833e-49b7-8b4b-21d332f6946b  
duration: 18.547  
project\_id: 24f84b0f-888a-4632-986f-493479fa0c5e  
name: Frame io test e01 destination  
audio\_tracks: None  
includes: [‘video’, ‘audio’]  
parent\_id: fec8632b-1a3d-44fd-ad77-ee6af77b2b5d  
type: file  
filetype: video/quicktime  
asset\_type: stream  
fps: 25.0  
\_type: file

New source:  
upload\_completed\_at: None  
frames: 0  
id: 87a9462a-5f6d-4210-b352-9ab8326d01b6  
duration: None  
project\_id: 24f84b0f-888a-4632-986f-493479fa0c5e  
name: Frame io test e01 new source  
audio\_tracks: None  
includes: None  
parent\_id: 1525726c-075b-4576-a1f8-23d297da7f94  
type: file  
filetype: video/quicktime  
asset\_type: None  
fps: None  
\_type: file
