Errors When Adding Files to an Item¶
POST /items/<GUID>/files
This endpoint is used to add a file to an Item through the Items World. The file object still will be created and will be accessible through the Files World. This endpoint requires that the Authorize User must have a Full License, Item Read & Write and File Read & Edit Access Policy Rules in Arena.
| Status Code | Error Code | Message | Explanation |
|---|---|---|---|
| 400 | 3024 | Either you do not have privileges to access the requested data or it does not exist. |
The Onshape-Arena User may not have the following: * A Full license. * Item Read & Write Access Policy Rules. * File Read & Write Access Policy Rules * Prohibited Based On Category, Procurement Type, Lifecycle Phases. Arena: The user can attempt to add a file to the same type of item in Arena to see if they have the required permissions. Otherwise, the Arena Administrator can check the user access policies. |
| 400 | 3011 | The guid “{0}” is not valid. |
The file category being assigned to the File does not exist in Arena. The file category could have been removed.The user can attempt to create a file with the same File Category in Arena to see if the File Category is valid. Otherwise, the Arena Administrator can check the File Categories. Example: The guid \"J1L49Y1KSGZ9SBNUN5OX\" is not valid. {0} = File Category GUID. |
| 400 | 3001 | The attribute “{0}” is required. |
All files require a Title.Example: The attribute \"title\" is required. {0} - Title. |
| 400 | 3033 | The file content is missing. |
The file being referenced does not exist and therefore cannot be uploaded. The file could have been deleted from the source location or is not ready to be uploaded. |
| 400 | 3034 | The item is locked. |
The working revision of the unreleased item is assigned to a submitted change so the file cannot be added to the item.Lock icons will appear within the Files view of the item. |
| 400 | 3066 | The working revision of the item is locked by inclusion in at least one change. |
The working revision of the Item has been assigned to a Change that is submitted for approval or has been approved and is waiting to be made effective.Viewing the Item in Arena you will see locks on the Item > Files section. |