projects/{projectId}/settings/custom-identifier:change-sequence-type
Changes the custom identifier sequence type for the project. The sequence type determines how submittal items are numbered: Global (1) assigns a single sequential number across all items, and Spec (2) numbers items within their spec section.
Note that this endpoint requires admin permissions. For new projects, use this endpoint to set the initial sequence type. If a sequence type has already been set, you can only change it from Global (1) to Spec (2) — once set to Spec, it cannot be changed back.
Calling this endpoint always starts an asynchronous job. If the project has existing submittal items, the job updates their numbering to reflect the new sequence type. To track the status of the job, call GET async-jobs/{asyncJobId}.
For more information about Submittal custom numbering, see the Help documentation.
For information on how to set up custom numbering for a new project, see the Setting Up a New Project in Submittals tutorial.
Resource Information
| Method and URI | POST https://developer.api.autodesk.com/construction/submittals/v2/projects/:projectId/settings/custom-identifier:change-sequence-type |
| Authentication Context | User context required |
| Required OAuth Scopes | data:write |
| 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. |
| 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 need to convert the project ID into a project ID for the Forma API by removing the “b." prefix. For example, a project ID of b.a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7. |
Request
Body Structure
| sequenceType* enum:string | The sequence type to set for the project. For new projects, either value can be set. If a sequence type has already been set, you can only change it from Global to Spec — once set to Spec, it cannot be changed back. Possible values: Global (1), Spec (2). |
Response
HTTP Status Code Summary
| 200 OK | Successfully retrieved async job |
| 400 Bad Request | The request could not be understood by the server due to malformed syntax or missing request headers. |
| 401 Unauthorized | Invalid or missing authorization header. Verify the Bearer token and try again. |
| 403 Forbidden | The user is not authorized to perform this action. |
| 404 Not Found | The specified resource was not found. |
| 409 Conflict | The action is already being performed |
| 500 Internal Server Error | An unexpected error occurred on the server while processing the request. |
Response
Body Structure (200)
| id string: UUID | The unique identifier (UUID) of the async job. |
| createdAt datetime: ISO 8601 | The date and time when the async job was created, formatted as YYYY-MM-DDTHH:mm:ss.SSSSSSZ (ISO 8601) in UTC. For example, 2018-02-15T12:09:24.198466Z. |
| updatedAt datetime: ISO 8601 | The time and date when the async job was last updated, formatted as YYYY-MM-DDTHH:mm:ss.SSSSSSZ (ISO 8601) in UTC. For example, 2018-02-15T12:09:24.198466Z. |
| startedAt datetime: ISO 8601 | The time and date when the async job execution started, formatted as YYYY-MM-DDTHH:mm:ss.SSSSSSZ (ISO 8601) in UTC. For example, 2018-02-15T12:09:24.198466Z. |
| asyncState enum:string | The current state of the asynchronous job. Possible values: Pending (1), Started (2), Success (3), Failure (4). |
| resultsPayload object | Final response payload of the asynchronous job. Contains error details when asyncState is Failure. When asyncState is Success, the response may or may not include data, depending on the job type. |
Example
Successfully retrieved async job
Request
curl -v 'https://developer.api.autodesk.com/construction/submittals/v2/projects/9eae7d59-1469-4389-bfb2-4114e2ba5545/settings/custom-identifier:change-sequence-type' \
-X 'POST' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
-H 'Content-Type: application/json' \
-d '{
"sequenceType": "1"
}'
Response
{
"id": "d8ee6251-3a75-4eef-9d6c-973fdb91a676",
"createdAt": "2018-02-01T12:09:24.198466Z",
"updatedAt": "2018-02-01T12:09:24.198466Z",
"startedAt": "2018-02-01T12:09:24.198466Z",
"asyncState": "3",
"resultsPayload": {}
}