projects/{projectId}/exports
Exports up to 1000 sheets from the from the Sheets tool in Forma Build into a new downloadble PDF file.
You can export any published sheets. For details about publishing sheets, see the Add and Publish Sheets to the Field help documentation.
To perform the export operation, a user must have at least export permission. For more information on permissions, see the Sheets Permissions help documentation.
The POST export endpoint enables the export of PDFs with both standard and feature markups. The supported features currently include Issues, Photos, and Assets. For additional details on feature markups, see the Feature Markups help documentation.
This endpoint provides the flexibility to designate which types of markups you would like to export. This can be published, unpublished, or both, and is applicable to each markup type including standard, Issues, Photos, and Assets. For more information about published and unpublished markups, see the Create and Style Markups help documentation.
This endpoint gives you the flexibility to decide which types of markups to export, be it published, unpublished, or both. This is applicable to each markup type including standard, Issues, Photos, and Assets. For more information about published and unpublished markups, see the Create and Style Markups help documentation.
In the case of standard markups, the endpoint also allows the inclusion of attached links to relevant Sheets, Files, RFIs, Forms, Submittals, and Assets. For more information about markup links, see the Add References to Markups help documentation.
Note that this endpoint is asynchronous and initiates a job that runs in the background, rather than halting execution of your program. The response returns an export ID which you can use to poll GET exports/:exportId to check the job’s status. When the job is complete, you can retrieve the data you need to download the exported sheets.
For more details about exporting sheets, see the Export and Print Sheets tutorial.
Resource Information
| Method and URI | POST https://developer.api.autodesk.com/construction/sheets/v1/projects/{projectId}/exports |
| Authentication Context | User context optional |
| 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 ID of a user on whose behalf your API request is acting. Required for 2-legged OAuth2 with user impersonation.
The app has access to all users specified by the administrator in the SaaS integrations UI. When you provide this header, the API call is limited to acting on behalf of the specified user. You can use either the user’s Forma ID (id) or their Autodesk ID (autodeskId). |
| Content-Type* string | Must be application/json |
Request
URI Parameters
| projectId string: UUID | 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 use a project ID either with a “b.” prefix or without a “b.” prefix. For instance, a project ID of “b.a4be0c34a-4ab7” can also be referred to as “a4be0c34a-4ab7”. |
Request
Body Structure
| options object | The criteria for the markups and links that should be included with the exported sheets.
Note that unpublished markups are only visible to their creator. |
| outputFileName string | The name of the file that will be generated by the export process. Note that this name should not include the file extension. The maximum character limit for this field is 255 characters. |
| standardMarkups object | The list of types of standard markups and their associated links that you want to include in the export.
By default markups will be exported and hyperlinks will not be exported. |
| includePublishedMarkups boolean | true: (default) include all published standard markups in the exported sheets. Note that published markups are visible to all project members.
|
| includeUnpublishedMarkups boolean | true: (default) standard markups that are visible only to their creators will be included in the exported sheets.
|
| includeMarkupLinks boolean | true: include links in the markups. Supported links are links to Sheets, Files, RFIs, Forms, Submittals, and Assets.
Note that if both |
| issueMarkups object | The list of types of issue markups to export. |
| includePublishedMarkups boolean | true: published issue markups will be included in the exported sheets.
|
| includeUnpublishedMarkups boolean | true: include issue markups in the exported sheets that are visible only to their creators or assignees.
|
| photoMarkups object | The list of types of photo markups to export. |
| includePublishedMarkups boolean | true: published photo markups will be included in the exported sheets.
|
| includeUnpublishedMarkups boolean | true: include photo markups in the exported sheets that are visible only to their creators or assignees.
|
| assetMarkups object | The options for Assets markups to export. |
| includeMarkups boolean | true: include all Assets markups in the exported sheets.
|
| sheets array: string | The list of sheet UUIDs that you want to include in the export. A maximum of 1000 sheets can be included. |
Response
HTTP Status Code Summary
| 202 Accepted | Successfully created an export job |
| 400 Bad Request | The parameters of the requested operation are invalid.
Sample error code with possible messages:
|
| 401 Unauthorized | The provided bearer token is not valid.
Sample error code with possible messages:
|
| 403 Forbidden | The user or service represented by the bearer token does not have permission to perform this operation.
Sample error code with possible messages:
|
| 404 Not Found | The requested resources, such as the project, hub, user, or sheet do not exist.
Sample error code with possible messages:
|
| 500 Internal Server Error | An unknown error occurred on the server.
Sample error code with possible messages:
|
Response
Body Structure (202)
| id string: UUID | The ID of the export job. Use the ID to poll GET exports/:exportId to check the job’s status. When the job is complete, you can retrieve the data you need to download the exported sheets. |
| status enum:string | The status of the export job; will always be: processing |
Example
Successfully created an export job
Request
curl -v 'https://developer.api.autodesk.com/construction/sheets/v1/projects/9ba6681e-1952-4d54-aac4-9de6d9858dd4/exports' \
-X 'POST' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
-H 'Content-Type: application/json' \
-d '{
"options": {
"outputFileName": "output_file_name",
"standardMarkups": {
"includePublishedMarkups": true,
"includeUnpublishedMarkups": true,
"includeMarkupLinks": false
},
"issueMarkups": {
"includePublishedMarkups": false,
"includeUnpublishedMarkups": false
},
"photoMarkups": {
"includePublishedMarkups": false,
"includeUnpublishedMarkups": false
},
"assetMarkups": {
"includeMarkups": false
}
},
"sheets": [
""
]
}'
Response
{
"id": "5b4bb914-c123-4f10-87e3-579ef934aaf9",
"status": "processing"
}