I can create a version stack from an upload with the api, but how would you add to an existing stack?
thanks I’ll give it a go.
Hey @CharlieAnderson and team,
Following up on this;
I’ve been trying to find this endpoint but everything returns 404:
POST /v4/accounts/{id}/files/{file_id}/move → 404
POST /v4/accounts/{id}/assets/{file_id}/move → 404
PATCH /v4/accounts/{id}/files/{file_id} with parent_id → “Unexpected field”
POST /v4/accounts/{id}/file_moves → 404
What’s the correct endpoint path for V4? Or is this functionality still in alpha/experimental?
Thanks!
hi @zantell You can find all of our reference APIs for move here in the stable version:
The endpoint is PATCH https://api.frame.io/v4/accounts/:account_id/files/:file_id/move
The cURL command would be
curl -X PATCH https://api.frame.io/v4/accounts/12865cbb-32ea-4b6d-bd92-b453e69ba50c/files/d2af4e2a-eb9c-4095-83b5-8d9197c05c39/move \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"data": {
"parent_id": "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
}
}'
Solved ! Thanks @CharlieAnderson
1 Like