Request

Response

    Delete a Draft Approval Workflow
    DELETE

    projects/{projectId}/workflow-drafts/{draftWorkflowId}

    Deletes a draft approval workflow from the specified project by ID.

    For more details about draft approval workflows, see the Help documentation. For a step-by-step walkthrough, see the Create a Draft Approval Workflow tutorial.

    Only project administrators can delete draft approval workflows.

    Note that this endpoint is not compatible with BIM 360 projects.

    Resource Information

    Method and URI
    DELETE
    https://developer.api.autodesk.com/construction/reviews/v1/projects/{projectId}/workflow-drafts/{draftWorkflowId}
    Authentication Context
    Application or user-delegated (accepts both two-legged and three-legged access tokens)
    Required OAuth Scopes
    data:write
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is a two-legged access token obtained via a Client Credentials Grant flow, or a three-legged access token obtained via an Authorization Code flow or a Secure Service Account (SSA) flow.

    The SSA flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context.

    x-user-id
    string
    The Autodesk ID of the user on whose behalf the request is made. Use this header to specify which user should be affected by the request. Your application must be configured to act on behalf of that user.

    This header is only required when using two-legged authentication. It is not needed for three-legged authentication.

    Only the user’s Autodesk ID (autodeskId) can be accepted.

    x-ads-region
    string
    The region to which your request should be routed. If not set, the request is routed automatically but may incur a small latency increase.

    Possible values: US, EMEA. For the full list of supported regions, see the Regions page.

    * Required

    Request

    URI Parameters

    projectId
    string
    The ID of the project.

    Use the Data Management API to retrieve the project ID. For more information, see the Retrieve a Project ID tutorial. You can provide the project ID with or without the “b." prefix.

    • Example with prefix: b.563a4c30-e30d-4869-ac02-2a18b6447abe
    • Example without prefix: 563a4c30-e30d-4869-ac02-2a18b6447abe
    draftWorkflowId
    string: UUID
    The ID of the draft approval workflow.

    To find available draft approval workflow IDs, call GET Draft Approval Workflows.

    Response

    HTTP Status Code Summary

    204
    No Content
    The draft approval workflow was deleted successfully.
    400
    Bad Request
    Bad request. The input parameters were invalid.
    401
    Unauthorized
    Authentication failed. Required authentication headers are missing or invalid.
    403
    Forbidden
    Forbidden. The user does not have permission to access this resource.
    404
    Not Found
    Not found. The draft approval workflow does not exist or is inaccessible.
    429
    Too Many Requests
    Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.
    500
    Internal Server Error
    An unexpected server error occurred.

    Response

    Header (429)

    Retry-After
    integer
    Seconds to wait before retrying the request.

    Response

    Body Structure (204)

    Response for 204 has no body.

    Example

    The draft approval workflow was deleted successfully.

    Request

    curl -v 'https://developer.api.autodesk.com/construction/reviews/v1/projects/563a4c30-e30d-4869-ac02-2a18b6447abe/workflow-drafts/8f3c2a1b-4d5e-6f7a-8b9c-0d1e2f3a4b5c' \
      -X 'DELETE' \
      -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    204 No Content