---
updatedAt: 2026-06-03T14:46:37.000Z
agentTools:
  projectIndex: https://developers.fieldwire.com/llms.txt
---

# Resolve spec_section number conflict

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Fieldwire Regional API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://client-api.{region}.fieldwire.com",
      "variables": {
        "region": {
          "default": "us",
          "enum": [
            "ca",
            "eu",
            "us"
          ]
        }
      }
    }
  ],
  "components": {
    "headers": {
      "current_user_id": {
        "description": "Current user's id",
        "schema": {
          "type": "integer"
        }
      }
    },
    "parameters": {
      "api_version": {
        "name": "Fieldwire-Version",
        "in": "header",
        "description": "Specifies the version of the API to talk to",
        "required": true,
        "schema": {
          "type": "string",
          "format": "date"
        }
      },
      "id": {
        "name": "id",
        "in": "path",
        "description": "ID of the entity",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "project_id": {
        "name": "project_id",
        "in": "path",
        "description": "ID of the project this entity belongs to",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "schemas": {
      "spec_section": {
        "type": "object",
        "description": "An entity that represents a spec section within a spec book. Can have multiple versions.",
        "required": [
          "id",
          "section_number",
          "project_id",
          "current_version_id",
          "current_version_title",
          "current_version_description",
          "current_version_file_url",
          "current_version_thumb_url",
          "conflict",
          "processing",
          "creator_user_id",
          "last_editor_user_id",
          "created_at",
          "updated_at",
          "deleted_at",
          "device_created_at",
          "device_updated_at"
        ],
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the spec_section"
          },
          "section_number": {
            "type": "string",
            "nullable": false,
            "description": "The number that the spec_section corresponds to within a spec book"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the project the spec_section belongs to"
          },
          "current_version_id": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "ID of the current spec_section_version of the spec_section"
          },
          "current_version_title": {
            "type": "string",
            "nullable": false,
            "description": "Title of the current spec_section_version of the spec_section"
          },
          "current_version_description": {
            "type": "string",
            "nullable": false,
            "description": "Description of the spec_section_version of the spec_section"
          },
          "current_version_file_url": {
            "type": "string",
            "nullable": true,
            "description": "The URL for the PDF associated with the current spec_section_version of the spec_section"
          },
          "current_version_thumb_url": {
            "type": "string",
            "nullable": true,
            "description": "The URL for the thumbnail associated with the current spec_section_version of the spec_section"
          },
          "conflict": {
            "type": "boolean",
            "nullable": false,
            "description": "Indicates a version conflict on the spec_section"
          },
          "processing": {
            "type": "boolean",
            "nullable": false,
            "description": "Indicates the processing status of the spec_section"
          },
          "error": {
            "type": "boolean",
            "nullable": false,
            "description": "Indicates whether the spec_section contains an error"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created the spec_section"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "ID of the last user who edited the spec_section"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the spec_section"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the spec_section"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Time when the server last deleted the spec_section"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the spec_section"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the spec_section"
          }
        },
        "additionalProperties": false
      },
      "spec_section_resolve_section_number_input": {
        "type": "object",
        "required": [
          "section_number"
        ],
        "nullable": false,
        "properties": {
          "section_number": {
            "type": "string",
            "nullable": false,
            "description": "The number that the spec_section corresponds to within a spec book"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the project the spec_section belongs to"
          },
          "version_title": {
            "type": "string",
            "nullable": false,
            "description": "Updated title of the spec_section_version"
          },
          "version_description": {
            "type": "string",
            "nullable": false,
            "description": "Updated description of the spec_section_version"
          }
        },
        "description": "Schema for resolving spec section number conflict by taking all confirmed spec_section_versions under the resource, and transferring them onto the SpecSection with the specified section number.",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Access token (JWT) generated using the acquired refresh token (API token). Our [authentication](https://developers.fieldwire.com/docs/authentication) guide covers the steps to generate a valid token"
      }
    }
  },
  "paths": {
    "/api/v3/projects/{project_id}/spec_sections/{id}/resolve_section_number": {
      "patch": {
        "summary": "Resolve spec_section number conflict",
        "operationId": "resolve_spec_section_number",
        "tags": [
          "spec sections"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/project_id"
          },
          {
            "$ref": "#/components/parameters/id"
          },
          {
            "$ref": "#/components/parameters/api_version"
          }
        ],
        "responses": {
          "201": {
            "description": "Successful response",
            "headers": {
              "X-Current-User-Id": {
                "$ref": "#/components/headers/current_user_id"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "196b2302-7021-4ca6-9ccc-5ecb20789836",
                  "project_id": "e4dcb00a-b78a-42a2-bf45-af5a1b56fc94",
                  "section_number": "4",
                  "conflict": false,
                  "processing": false,
                  "error": false,
                  "current_version_title": "new title",
                  "current_version_description": "1/2/33",
                  "deleted_at": null,
                  "current_version_id": "4f5c9636-66f4-4eca-b084-12b3c09ad713",
                  "creator_user_id": 2242,
                  "last_editor_user_id": 2242,
                  "created_at": "2026-10-02T14:53:03.822Z",
                  "updated_at": "2026-10-02T14:53:04.315Z",
                  "device_created_at": "2026-10-02T14:53:03.822Z",
                  "device_updated_at": "2026-10-02T14:53:04.315Z",
                  "current_version_thumb_url": null,
                  "current_version_file_url": "http://example.com/0586c1b5-09fb-43af-81ca-46d7e0e4828c-name"
                },
                "schema": {
                  "$ref": "#/components/schemas/spec_section"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/spec_section_resolve_section_number_input"
              }
            }
          },
          "required": true
        }
      }
    }
  }
}
```