Update properties of a Task Duration
PATCH
products/{productId}/operations/{operationId}/task-durations/{taskDurationId}
Modify properties of an existing Task Duration record.
Resource Information
| Method and URI | PATCH https://api.aps.autodesk.com/fusion-operations/v2/products/{productId}/operations/{operationId}/task-durations/{taskDurationId} |
| 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. |
| taskDurationId int | id of the Task Duration to update. |
Request
Body Structure
Fields to update for the specified 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 |
Response
HTTP Status Code Summary
| 200 OK | Task duration updated 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 (200)
| 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 updated successfully.
Request
curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/products/:productId/operations/:operationId/task-durations/:taskDurationId' \
-X 'PATCH' \
-H 'Authorization: ' \
-H 'Content-Type: application/json' \
-d '{
"cycleTime": "PT1H40M00S",
"customerTime": "PT1H20M00S"
}'
Show More
Response
{
"id": 12,
"validSince": "2025-08-10",
"cycleTime": "PT1H40M00S",
"customerTime": "PT1H20M00S",
"quantityRatio": 1.1
}