Create files attached to a Operation
POST
products/{productId}/operations/{operationId}/files
Creates new file attached to the specified Operation. Operations linked to a process template do not support file attachments and return a 400 validation error.
Resource Information
| Method and URI | POST https://api.aps.autodesk.com/fusion-operations/v2/products/{productId}/operations/{operationId}/files |
| Authentication Context | No security required |
| Required OAuth Scopes | data:read data:write |
| Data Format | JSON |
Request
Headers
| Authorization* string | JWT Access Token |
| Content-Type* string | Must be multipart/form-data |
* Required
Request
URI Parameters
| productId int | Unique identifier of the Product. |
| operationId int | Unique identifier of the Operation. |
Request
Body Structure
The file to be uploaded and linked to the Operation, conforming to the specified schema.
| file string |
Response
HTTP Status Code Summary
| 201 Created | The file was uploaded successfully. |
| 400 Bad Request | Bad request due to invalid data. |
| 401 Unauthorized | The access token is invalid. It may have either expired or may not be a three-legged access token. Please verify the token and retry the request. |
| 403 Forbidden | The request was successfully validated but lacked required permission. Please verify your token permissions and retry the request. |
| 404 Not Found | The resource in the path does not exist. |
| 429 Too Many Requests | Rate limit exceeded; wait some time before retrying. |
| 500 Internal Server Error | An unknown server-side error occurred. Please try again later. If the problem persists, please contact support. |
Response
Header (429)
| Retry-After integer | The number of seconds to wait before retrying the request. |
Response
Body Structure (201)
| id int | Unique identifier of the file. |
| name string | Max length: 255 |
| createdAt datetime: ISO 8601 | Creation date of the file (e.g. 2025-06-21T15:07:17Z) |
| size int | Size of the file in KiB (kibibytes) |
| showOnTablet boolean | Indicates if the file should be shown in the tablet |
Example
The file was uploaded successfully.
Request
curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/products/:productId/operations/:operationId/files' \
-X 'POST' \
-H 'Authorization: ' \
-F 'file=@your_file.pdf'
Response
{
"id": 101,
"name": "specification.pdf",
"createdAt": "2024-04-02T15:30:00Z",
"size": 128,
"showOnTablet": false
}