Request

Response

    projects/:id/lifecycle:list-transitions
    GET

    projects/{projectId}/lifecycle:list-transitions

    Returns the current status of the specified project and all valid lifecycle transitions available from that status.

    Note that the Authorization header token can be obtained either via a three-legged OAuth flow, or via a two-legged Oauth flow with user impersonation, for which the User-Id header is required.

    Call this endpoint before invoking a lifecycle transition to check which actions are currently available for the project.

    For more information about project lifecycle statuses and transitions, see the Hub Admin API Field Guide.

    For the complete workflow, see the Delete Projects tutorial.

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

    Resource Information

    Method and URI
    GET
    https://developer.api.autodesk.com/construction/admin/v1/projects/:projectId/lifecycle:list-transitions
    Authentication Context
    User-delegated only (accepts only three-legged access tokens)
    Required OAuth Scopes
    account:read
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is 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.

    Region
    string
    Specifies the region where your request should be routed. If not set, the request is routed automatically, which may result in a slight increase in latency.

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

    User-Id
    string
    The ID of a user on whose behalf your request is acting.

    Your app has access to all users specified by the administrator in the SaaS integrations UI. Provide this header value to identify the user to be affected by the request.

    You can use either the user’s Forma ID (id), or their Autodesk ID (autodeskId).

    Note that this header is required for hub Admin POST, PATCH, and DELETE endpoints if you want to use a 2-legged authentication context. This header is optional for hub Admin GET endpoints.

    * Required

    Request

    URI Parameters

    projectId
    string: UUID
    The ID of the project. This corresponds to the project ID in the Data Management API. To convert a project ID in the Data Management API into a project ID in the Forma API, remove the “b." prefix. For example, b.a4be0c34a-4ab7 becomes a4be0c34a-4ab7.

    Response

    HTTP Status Code Summary

    200
    OK
    The list of requested lifecycle transitions.
    400
    Bad Request
    The request could not be understood by the server due to malformed syntax.
    401
    Unauthorized
    Request has not been applied because it lacks valid authentication credentials for the target resource.
    403
    Forbidden
    The server understood the request but refuses to authorize it.
    404
    Not Found
    The resource could not be found.
    406
    Not Acceptable
    The server cannot produce a response matching the list of acceptable values defined in the request.
    429
    Too Many Requests
    User has sent too many requests in a given amount of time.
    500
    Internal Server Error
    An unexpected error occurred on the server.
    503
    Service Unavailable
    Server is not ready to handle the request.

    Response

    Body Structure (200)

    Expand all
    currentStatus
    enum:string
    The current lifecycle status of the project. Possible values: active, pending, archived, suspended, pendingDelete
    availableTransitions
    array: object
    The lifecycle transitions available from the project’s current status. If no transitions are available, this array is empty.
    action
    enum:string
    The lifecycle action to perform. Possible values: archive, unarchive, mark-for-deletion, restore
    targetStatus
    enum:string
    The status the project will have after the action is performed. Possible values: active, archived, pendingDelete
    actionUrl
    string
    The URL to call for this transition. Use this value together with method to invoke the transition.
    method
    enum:string
    The HTTP method to use with actionUrl when invoking the transition; will always be POST.

    Example

    The list of requested lifecycle transitions.

    Request

    curl -v 'https://developer.api.autodesk.com/construction/admin/v1/projects/367d5cc2-9008-462c-96e5-c9491db85d93/lifecycle:list-transitions' \
      -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    {
      "currentStatus": "archived",
      "availableTransitions": [
        {
          "action": "mark-for-deletion",
          "targetStatus": "pendingDelete",
          "actionUrl": "https://developer.api.autodesk.com/construction/admin/v1/projects/d73fc742-4538-401c-8d0f-853b49b750b2/lifecycle:mark-for-deletion",
          "method": "POST"
        },
        {
          "action": "unarchive",
          "targetStatus": "active",
          "actionUrl": "https://developer.api.autodesk.com/construction/admin/v1/projects/d73fc742-4538-401c-8d0f-853b49b750b2/lifecycle:unarchive",
          "method": "POST"
        }
      ]
    }
    
    Show More