Request

Response

    Batch Publish Draft Approval Workflows
    POST

    projects/{projectId}/workflow-drafts:batch-publish

    Publishes one or more draft approval workflows into active approval workflows.

    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.

    Each draft must satisfy the following publication-readiness requirements:

    • The draft has a non-empty, valid name.
    • Approval statuses include both built-in statuses and have non-empty, case-insensitively unique labels.
    • Steps contain between 2 and 7 entries.
    • Steps match the project workflow template when a template applies.
    • Every step has at least one candidate.
    • Any supplied step duration is between 1 and 99.
    • Group review is configured only on REVIEWER steps. When enabled, its participant count is between 1 and 30 and its completion threshold does not exceed that count.
    • copyFilesOptions is configured. When enabled is true, folderUrn is a valid folder URN.
    • Attached attributes pass validation when present.

    A draft that satisfies these requirements has a status of READY_TO_FINALIZE and can be submitted to batch publish. This status does not guarantee publication.

    For each successful draft, the active workflow appears in results[] and the source draft is deleted. For each failed draft, an entry appears in errors[] and the source draft remains stored.

    Only project administrators can batch publish draft approval workflows.

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

    Resource Information

    Method and URI
    POST
    https://developer.api.autodesk.com/construction/reviews/v1/projects/{projectId}/workflow-drafts:batch-publish
    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.

    Content-Type*
    string
    Must be application/json
    * 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

    Request

    Body Structure

    Draft approval workflow IDs to publish.

    draftWorkflowIds*
    array: string
    IDs of the draft approval workflows to publish. Duplicate IDs in this array are de-duplicated before processing.

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

    * Required

    Response

    HTTP Status Code Summary

    200
    OK
    Returns per-draft outcomes in results and errors. If all drafts fail, the response remains 200 OK with an empty results array and one or more errors entries.
    400
    Bad Request
    Bad request. The entire request is rejected when the body fails schema validation or other request-level checks.

    Some error codes listed here may instead appear in the HTTP 200 errors array when the failure applies to an individual draft item.

    401
    Unauthorized
    Authentication failed. Required authentication headers are missing or invalid.
    403
    Forbidden
    Forbidden. The user does not have permission to access this resource.
    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 (200)

    Expand all
    results
    array: object
    Active approval workflows created from successfully published drafts.
    name
    string
    The name of the workflow. It must be unique within the project.

    Max length: 255

    description
    string
    A description of the workflow.

    Max length: 4096

    notes
    string
    A custom note associated with the workflow. Visible to all reviewers during the review process.

    Max length: 4096

    additionalOptions
    object
    Workflow-level settings that control additional edit permissions for initiators and approvers.
    allowInitiatorToEdit
    boolean
    Deprecated Supported for backward compatibility. Use initiatorEditPermissions with value REVIEWER_ASSIGNMENTS_AND_DURATION instead, which provides the same behavior.

    true: the initiator can change reviewer assignments and durations.

    false: (default) reviewers and durations are fixed.

    initiatorEditPermissions
    array: string
    An optional array of values that grant the initiator additional edit permissions. Replaces the deprecated allowInitiatorToEdit field. If omitted or empty, the initiator has no additional edit permissions. Default: [].

    Possible values:

    • REVIEWER_ASSIGNMENTS_AND_DURATION - Allows the initiator to edit reviewer assignments and step durations. Equivalent to setting allowInitiatorToEdit to true.
    • APPROVERS - Allows the initiator to modify the approver candidate list.
    • CLOSED_REVIEW_TITLE - Allows the initiator to rename closed reviews.
    • START_OWN_REVIEW - Allows the initiator to start their own reviews.
    approverEditPermissions
    array: string
    An optional array of values that grant approvers additional edit permissions in the UI. If omitted or empty, approvers have no additional edit permissions. Default: [] (empty array).

    Possible values:

    • APPROVERS - Allow approvers to adjust the approvers in approver steps.
    id
    string: UUID
    The unique identifier of the approval workflow returned in the response. This ID can be used in subsequent API calls to reference this workflow.
    status
    enum:string
    The current status of the approval workflow. Possible values:

    ACTIVE: the workflow is active and available for use.

    INACTIVE: the workflow has been deactivated and cannot be used to create new reviews.

    approvalStatusOptions
    array: object
    A list of approval status options defined for this workflow. It includes two built-in options by default (typically APPROVED and REJECTED), and may also include custom statuses added by the user.
    label
    string
    The display name shown in the UI. It must be unique across all status options (built-in and custom).

    Max length: 255

    value
    enum:string
    The value representing the approval outcome. Possible values: APPROVED, REJECTED.
    id
    string: UUID
    The unique identifier of this approval status entry in the workflow.
    builtIn
    boolean
    Indicates whether the approval status is a built-in option.

    true: the status is built in (e.g., APPROVED, REJECTED).

    false: the status is a custom option created by a user.

    steps
    array: object
    A list of steps defined in the approval workflow. Each step defines who reviews the files, how long they have, and whether it involves multiple reviewers.
    name
    string
    The name of the step, as defined in the workflow. It appears in the UI and is used in workflow configuration.

    Max length: 255

    type
    enum:string
    Indicates the step type in the workflow. Possible values:
    • INITIATOR: the first step. It typically represents the person who launches the review.
    • REVIEWER: an intermediate step. It allows one or more reviewers to evaluate the files.
    • APPROVER: the final step. It represents the decision maker who approves or rejects the files.
    duration
    int
    (Time allowed in the UI) The number of days allocated to complete this step.

    This field applies only to REVIEWER and APPROVER steps. It is used to calculate the due date based on the selected dueDateType.

    Valid range: 1–99.

    dueDateType
    enum:string
    Specifies how the due date is calculated for this step. It works together with duration.

    This field applies only to REVIEWER and APPROVER steps.

    Possible values:

    • CALENDAR_DAY (default): the due date includes all calendar days, including weekends and holidays.
    • WORKDAY: the due date excludes weekends and project holidays.
    groupReview
    object
    (Reviewer Type in the UI) Defines whether multiple reviewers can participate in this step and how their responses are handled. It applies only to REVIEWER steps.
    enabled
    boolean
    Indicates whether group review is enabled for this step.

    true: multiple reviewers can participate in the step.

    false: (default) only a single reviewer is allowed.

    type
    enum:string
    (Displayed under More options in the UI) Specifies the group review rule for this step.

    Possible values:

    • ALL: every reviewer assigned to the step must submit a response (up to 30).
    • MINIMUM: only a specified number of reviewers must respond, as defined in min.
    min
    int
    The minimum number of reviewers required for this step. This field is set automatically when the group review type is set to MINIMUM. It is not independently configurable. Valid range: 1–30.
    id
    string
    The ID of the step.
    candidates
    object
    (Displayed in the UI when selecting reviewers for a step) Lists the users, roles, or companies that were configured as reviewers for this step.

    These candidates are defined during workflow setup and determine who will be invited to participate in the step during a review.

    roles
    array: object
    A list of project roles assigned as candidates for this step.
    autodeskId
    string
    The Autodesk ID of the role.
    name
    string
    The name of the role.
    users
    array: object
    A list of individual users assigned as candidates for this step.
    autodeskId
    string
    The Autodesk ID of the user.
    name
    string
    The name of the user.
    companies
    array: object
    A list of companies assigned as candidates for this step.
    autodeskId
    string
    The Autodesk ID of the company.
    name
    string
    The name of the company.
    copyFilesOptions
    object
    (Copy approved files in the UI) The configuration for copying approved files to a target folder when the review is complete.
    enabled
    boolean
    Indicates whether approved files should be copied to a target folder after the review is complete.

    true: copy approved files to the target folder.

    false: do not copy approved files.

    allowOverride
    boolean
    (Allow the initiator to change the target folder in the UI) Allows the initiator to change the target folder when creating a review.

    true: the initiator can choose a different target folder.

    false: the folder defined in the workflow is used.

    condition
    enum:string
    (All/Any files in the review have been approved in the UI) Specifies the condition under which approved files will be copied.

    Possible values:

    ANY: copy files if at least one file in the review is approved.

    ALL: copy files only if all files in the review are approved.

    folderUrn
    string
    (Then copy approved files to in the UI) The URN of the target folder where approved files will be copied.
    includeMarkups
    boolean
    (Include all published markups on approved files in the UI) Indicates whether published markups should be included when copying files.

    true: include all published (unarchived) markups from the source version.

    false: (default) do not include markups.

    disableOverrideMarkupSetting
    boolean
    (Allow approvers to change whether or not markups are included in the UI) Controls whether approvers or admins can change the markup inclusion setting when starting the review.

    true: the markup setting is locked and cannot be changed.

    false: the setting can be changed during review setup.

    attachedAttributes
    array: object
    (Update Attributes in the UI) The list of attributes added in the Update Attributes action.

    These attributes will be applied to the approved files in the target folder, or optionally also in the source folder depending on the configuration.

    id
    int
    The ID of the custom attribute definition to be applied after review completion. To find the definition for an ID, call GET custom-attribute-definitions and match the id field.
    required
    boolean
    (Attribute – Required by approver in the UI) Indicates whether the approver must enter a value for this attribute to submit the review.

    true: the attribute is required.

    false: (default) the attribute is optional.

    updateAttributesOptions
    object
    The configuration for applying attribute updates when a review is completed. This applies only if the workflow includes a file copy action and the Update Attributes action is enabled.
    enableAttachedAttributes
    boolean
    (Update attributes in the UI) Indicates whether the Update Attributes action is enabled.

    true: attributes will be applied after the review.

    false: (default) attributes will not be updated.

    updateSourceAndCopiedFiles
    boolean
    (Update attributes both for target folder and source folder or Update attributes only for target folder in the UI) Determines whether attributes are updated only for files in the target folder, or for both the target and source folders.

    true: update attributes in both folders.

    false: (default) update only the target folder.

    Only available when the approval workflow includes a copy post-action.

    allowApproverToUpdateRejectedFiles
    boolean
    (Allow approvers to choose if the attributes of rejected files are updated for the source folder in the UI) Determines whether approvers can choose to update attributes for rejected files in the source folder when submitting a review.

    Only applicable when enableAttachedAttributes and updateSourceAndCopiedFiles are true.

    true: approvers can choose to update attributes for both approved and rejected files in the source folder.

    false: (default) attributes are only updated for approved files.

    createdAt
    datetime: ISO 8601
    The date and time when the workflow was created.
    updatedAt
    datetime: ISO 8601
    The date and time when the workflow was last updated.
    draftWorkflowId
    string: UUID
    The ID of the source draft approval workflow.
    errors
    array: object
    Failed publish attempts. Each entry identifies the draft ID and the error details.
    id
    string: UUID
    The draft approval workflow ID associated with this error.
    code
    string
    The error code for the failed publish attempt.
    title
    string
    A short summary of the error.
    detail
    string
    A detailed explanation of the error.

    Example

    Returns per-draft outcomes in results and errors. If all drafts fail, the response remains 200 OK with an empty results array and one or more errors entries.

    Request

    curl -v 'https://developer.api.autodesk.com/construction/reviews/v1/projects/563a4c30-e30d-4869-ac02-2a18b6447abe/workflow-drafts:batch-publish' \
      -X 'POST' \
      -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
      -H 'Content-Type: application/json' \
      -d '{
            "draftWorkflowIds": [
              "bedb6176-338d-4da0-a8bc-50a02c744958",
              "8f3c2a1b-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
            ]
          }'
    
    Show More

    Response

    {
      "results": [
        {
          "name": "Final Structural Review",
          "description": "Used to review structural plans before finalizing IFC drawings.",
          "notes": "Please check all rebar annotations before approving. Include markup if changes are required.",
          "additionalOptions": {
            "allowInitiatorToEdit": true,
            "initiatorEditPermissions": [
              "REVIEWER_ASSIGNMENTS_AND_DURATION",
              "APPROVERS"
            ],
            "approverEditPermissions": [
              "APPROVERS"
            ]
          },
          "id": "4e609369-e950-4097-b7d3-e6cf1c3c5415",
          "status": "ACTIVE",
          "approvalStatusOptions": [
            {
              "label": "Approved w/ comments",
              "value": "APPROVED",
              "id": "b2a3c3b7-4fef-40a4-868b-981b23e7182f",
              "builtIn": false
            }
          ],
          "steps": [
            {
              "name": "Reviewer",
              "type": "REVIEWER",
              "duration": 3,
              "dueDateType": "CALENDAR_DAY",
              "groupReview": {
                "enabled": true,
                "type": "MINIMUM",
                "min": 1
              },
              "id": "Lane_uJtTI3vjaF",
              "candidates": {
                "roles": [
                  {
                    "autodeskId": "1473817",
                    "name": "Architect"
                  }
                ],
                "users": [
                  {
                    "autodeskId": "HWUBNU689CRU",
                    "name": "James Smith"
                  }
                ],
                "companies": [
                  {
                    "autodeskId": "26980302",
                    "name": "Autodesk Co. Ltd."
                  }
                ]
              }
            }
          ],
          "copyFilesOptions": {
            "enabled": true,
            "allowOverride": false,
            "condition": "ANY",
            "folderUrn": "urn:adsk.wipprod:fs.folder:co.CplBAmvXRWGqsvN1Nabvd2",
            "includeMarkups": false,
            "disableOverrideMarkupSetting": false
          },
          "attachedAttributes": [
            {
              "id": 10272,
              "required": false
            }
          ],
          "updateAttributesOptions": {
            "enableAttachedAttributes": false,
            "updateSourceAndCopiedFiles": false,
            "allowApproverToUpdateRejectedFiles": false
          },
          "createdAt": "2024-07-07T09:21:17.577Z",
          "updatedAt": "2025-01-07T08:43:10.189Z",
          "draftWorkflowId": "bedb6176-338d-4da0-a8bc-50a02c744958"
        }
      ],
      "errors": [
        {
          "id": "8f3c2a1b-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
          "code": "ERR_WORKFLOW_DRAFT_PUBLISH_FORBIDDEN",
          "title": "Draft workflow cannot be published",
          "detail": "Workflow Draft 8f3c2a1b-4d5e-6f7a-8b9c-0d1e2f3a4b5c is not ready, operation not allowed"
        }
      ]
    }
    
    Show More