> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloneable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Save configuration model snapshot

> Save or update the model snapshot attached to a configuration.



## OpenAPI

````yaml /api-reference/openapi.json post /pole-inspection/configurations/{id}/model
openapi: 3.0.2
info:
  title: Cloneable Platform API
  version: 1.0.0
  description: >-
    REST API for the Cloneable utility field platform — manage jobs,
    configurations, poles/spans/midspans (data objects), templates, custom
    types, field photos, and exports.


    ### Authentication

    Pass your organization API key (`sk-cai-v1-...`) in the `x-api-key` HTTP
    header. Create keys in Cloneable Office under **Settings → API Keys**.


    ### Conventions

    - **Units:** All stored distances, heights, and clearances are in
    **meters**.

    - **Query encoding:** Object and array query parameters (such as `filters`
    or `sorting`) must be sent as **Unicode-safe base64 JSON** via
    `URLSearchParams`: `params.set("filters",
    btoa(JSON.stringify(value).replace(/[\u007f-\uffff]/g, (c) => "\\u" +
    c.charCodeAt(0).toString(16).padStart(4, "0"))))`.

    - **Rate limits:** 500 requests per 60 seconds per authenticated user and
    endpoint path (`429 Too Many Requests`).
  contact:
    name: Cloneable Support
    url: https://docs.cloneable.ai
    email: support@cloneable.ai
servers:
  - url: https://api.cloneable.ai
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Authentication
    description: Verify your API key and inspect the bound organization and user context.
  - name: Jobs
    description: Create, list, update, archive, restore, and inspect utility field jobs.
  - name: Job Groups
    description: Organize jobs into named groups and folders.
  - name: Configurations
    description: >-
      Manage shared job configurations, template assignments, model snapshots,
      and revision history.
  - name: Data Objects
    description: >-
      Create, query, update, archive, and inspect poles, spans, midspans, and
      custom field records.
  - name: Templates
    description: >-
      Manage data object templates, field schemas, calculated fields, and
      auto-fill recomputation.
  - name: Custom Types
    description: >-
      Manage reusable picklists and structured option tables referenced by
      template fields.
  - name: Files & Photos
    description: >-
      Register file uploads, generate signed R2 upload/download URLs, and manage
      photo metadata.
  - name: Exports
    description: >-
      Trigger job exports, monitor export status and unsynced field photos, and
      inspect export issues.
  - name: Organization, Teams & Users
    description: >-
      Read organization metadata, effective configuration flags, teams, and
      member rosters.
paths:
  /pole-inspection/configurations/{id}/model:
    post:
      tags:
        - Configurations
      summary: Save configuration model snapshot
      description: Save or update the model snapshot attached to a configuration.
      operationId: saveModelSnapshot
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                model_data:
                  type: object
                  additionalProperties:
                    nullable: true
                model_version:
                  type: string
                user_selections:
                  type: object
                  properties:
                    selectedNodeTypes:
                      type: array
                      items:
                        type: string
                    selectedConnectionTypes:
                      type: array
                      items:
                        type: string
                    selectedSectionTypes:
                      type: array
                      items:
                        type: string
                    selectedAnnotations:
                      oneOf:
                        - type: array
                          items:
                            type: string
                        - type: object
                          additionalProperties:
                            nullable: true
                    selectedImageClassifications:
                      type: array
                      items:
                        type: string
                    selectedAttributesPerType:
                      type: object
                      additionalProperties:
                        type: array
                        items:
                          type: string
                    selectedImagesPerType:
                      type: object
                      additionalProperties:
                        type: array
                        items:
                          type: object
                          properties:
                            classificationId:
                              type: string
                            mode:
                              type: string
                              enum:
                                - single
                                - multiple
                          required:
                            - classificationId
                            - mode
                    photoUnavailableClassifications:
                      type: array
                      items:
                        type: string
                    nodeMappings:
                      type: object
                      properties:
                        pole:
                          type: string
                          nullable: true
                        span:
                          type: string
                          nullable: true
                        span_measurement:
                          type: string
                          nullable: true
                        guy_anchor:
                          type: string
                          nullable: true
                      required:
                        - pole
                        - span
                        - span_measurement
                        - guy_anchor
                    enabledUnmappedTypes:
                      type: array
                      items:
                        type: string
                    measurementEnabledTypes:
                      type: array
                      items:
                        type: string
                    measurementStylePerType:
                      type: object
                      additionalProperties:
                        type: string
                        enum:
                          - pole
                          - midspan
                    guyConnectionType:
                      type: string
                    polylineConnectionTypes:
                      type: array
                      items:
                        type: string
                    fillFromPerType:
                      type: object
                      additionalProperties:
                        type: object
                        additionalProperties:
                          type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - path
                                - lookup
                                - expression
                                - aggregate
                                - link
                            path:
                              type: string
                            from:
                              type: string
                            column:
                              type: string
                            expression:
                              type: string
                            aggregate:
                              type: object
                              properties:
                                where:
                                  type: object
                                  properties:
                                    owners:
                                      type: array
                                      items:
                                        type: string
                                    classifications:
                                      type: array
                                      items:
                                        type: string
                                prefer:
                                  type: object
                                  properties:
                                    owners:
                                      type: array
                                      items:
                                        type: string
                                    classifications:
                                      type: array
                                      items:
                                        type: string
                                pick:
                                  type: string
                                  enum:
                                    - lowest
                                    - highest
                                    - all
                                    - rest
                                    - nth
                                'n':
                                  type: integer
                                  minimum: 1
                                output:
                                  discriminator:
                                    propertyName: as
                                  oneOf:
                                    - type: object
                                      properties:
                                        as:
                                          type: string
                                          enum:
                                            - number
                                        unit:
                                          type: string
                                          enum:
                                            - m
                                            - ft
                                            - in
                                        decimals:
                                          type: integer
                                          minimum: 0
                                          maximum: 6
                                      required:
                                        - as
                                        - unit
                                    - type: object
                                      properties:
                                        as:
                                          type: string
                                          enum:
                                            - text
                                        format:
                                          type: string
                                          enum:
                                            - ft
                                            - ft_in
                                        separator:
                                          type: string
                                      required:
                                        - as
                                        - format
                              required:
                                - pick
                                - output
                            convert:
                              type: object
                              properties:
                                from:
                                  type: string
                                  enum:
                                    - m
                                    - ft
                                    - in
                                to:
                                  type: string
                                  enum:
                                    - m
                                    - ft
                                    - in
                                decimals:
                                  type: integer
                                  minimum: 0
                                  maximum: 6
                              required:
                                - from
                                - to
                            mode:
                              default: auto
                              type: string
                              enum:
                                - auto
                                - suggest
                          required:
                            - kind
                          nullable: true
                  required:
                    - selectedNodeTypes
                    - selectedConnectionTypes
                    - selectedAttributesPerType
                    - nodeMappings
              required:
                - model_data
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  configuration_id:
                    type: string
                    format: uuid
                  model_data:
                    type: object
                    additionalProperties:
                      nullable: true
                  model_version:
                    type: string
                    nullable: true
                  model_hash:
                    type: string
                  user_selections:
                    type: object
                    properties:
                      selectedNodeTypes:
                        type: array
                        items:
                          type: string
                      selectedConnectionTypes:
                        type: array
                        items:
                          type: string
                      selectedSectionTypes:
                        type: array
                        items:
                          type: string
                      selectedAnnotations:
                        oneOf:
                          - type: array
                            items:
                              type: string
                          - type: object
                            additionalProperties:
                              nullable: true
                      selectedImageClassifications:
                        type: array
                        items:
                          type: string
                      selectedAttributesPerType:
                        type: object
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      nodeMappings:
                        type: object
                        properties:
                          pole:
                            type: string
                            nullable: true
                          span:
                            type: string
                            nullable: true
                          span_measurement:
                            type: string
                            nullable: true
                          guy_anchor:
                            type: string
                            nullable: true
                        required:
                          - pole
                          - span
                          - span_measurement
                          - guy_anchor
                      guyConnectionType:
                        type: string
                    required:
                      - selectedNodeTypes
                      - selectedConnectionTypes
                      - selectedAttributesPerType
                      - nodeMappings
                    nullable: true
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                required:
                  - id
                  - configuration_id
                  - model_data
                  - model_version
                  - model_hash
                  - user_selections
                  - created_at
                  - updated_at
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  configuration_id:
                    type: string
                    format: uuid
                  model_data:
                    type: object
                    additionalProperties:
                      nullable: true
                  model_version:
                    type: string
                    nullable: true
                  model_hash:
                    type: string
                  user_selections:
                    type: object
                    properties:
                      selectedNodeTypes:
                        type: array
                        items:
                          type: string
                      selectedConnectionTypes:
                        type: array
                        items:
                          type: string
                      selectedSectionTypes:
                        type: array
                        items:
                          type: string
                      selectedAnnotations:
                        oneOf:
                          - type: array
                            items:
                              type: string
                          - type: object
                            additionalProperties:
                              nullable: true
                      selectedImageClassifications:
                        type: array
                        items:
                          type: string
                      selectedAttributesPerType:
                        type: object
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      nodeMappings:
                        type: object
                        properties:
                          pole:
                            type: string
                            nullable: true
                          span:
                            type: string
                            nullable: true
                          span_measurement:
                            type: string
                            nullable: true
                          guy_anchor:
                            type: string
                            nullable: true
                        required:
                          - pole
                          - span
                          - span_measurement
                          - guy_anchor
                      guyConnectionType:
                        type: string
                    required:
                      - selectedNodeTypes
                      - selectedConnectionTypes
                      - selectedAttributesPerType
                      - nodeMappings
                    nullable: true
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                required:
                  - id
                  - configuration_id
                  - model_data
                  - model_version
                  - model_hash
                  - user_selections
                  - created_at
                  - updated_at
        '400':
          description: Bad Request — invalid path, query, or body parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '401':
          description: Unauthorized — missing or invalid `x-api-key` header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden — API key lacks permission for this action or is read-only
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '404':
          description: Not Found — requested resource does not exist in this organization
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '429':
          description: >-
            Too Many Requests — rate limit exceeded (500 requests per 60 seconds
            per authenticated user and endpoint path)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    ApiError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable error description
        code:
          type: string
          description: Optional machine-readable error or support code
      required:
        - message
      example:
        message: Invalid API Key
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Organization-scoped API key (`sk-cai-v1-...`). Create one in Cloneable
        Office under Settings → API Keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.