Add Task Duration to an Operation
POST
products/{productId}/operations/{operationId}/task-durations
Adds one Task Duration to the Operation of the specified Product.
Resource Information
| Method and URI | POST https://api.aps.autodesk.com/fusion-operations/v2/products/{productId}/operations/{operationId}/task-durations |
| 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 application/json |
* Required
Request
URI Parameters
| productId int | Unique identifier of the Product. |
| operationId int | Unique identifier of the Operation. |
Request
Body Structure
Task duration to add.
| validSince* string | Valid Since date (e.g. 2017-06-21) |
| cycleTime* string | Cycle Time (ISO 8601 duration, e.g. PT3H15M30S) |
| customerTime* string | Customer Time (ISO 8601 duration, e.g. PT3H15M30S) |
| quantityRatio* number | Quantity Ratio |
* Required
Response
HTTP Status Code Summary
| 201 Created | Task duration successfully created. |
| 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 Task Duration. |
| validSince string | Valid Since date (e.g. 2017-06-21) |
| cycleTime string | Cycle Time (ISO 8601 duration, e.g. PT3H15M30S) |
| customerTime string | Customer Time (ISO 8601 duration, e.g. PT3H15M30S) |
| quantityRatio number | Quantity Ratio |
Example
Task duration successfully created.
Request
curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/products/:productId/operations/:operationId/task-durations' \
-X 'POST' \
-H 'Authorization: ' \
-H 'Content-Type: application/json' \
-d '{
"validSince": "2025-08-10",
"cycleTime": "PT1H30M00S",
"customerTime": "PT1H15M00S",
"quantityRatio": 1.1
}'
Show More
Response
{
"id": 12,
"validSince": "2025-08-10",
"cycleTime": "PT1H30M00S",
"customerTime": "PT1H15M00S",
"quantityRatio": 1.1
}