{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-issue-payload-schema.json",
  "title": "issue_payload",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-construction-issues-openapi.yml#/components/schemas/IssuePayload",
  "x-stoplight": {
    "id": "8g2lbqjamv0x0"
  },
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "x-stoplight": {
        "id": "6doa4cbrd92a0"
      },
      "description": "The description and purpose of the issue.\nMax length: 10000"
    },
    "description": {
      "type": "string",
      "x-stoplight": {
        "id": "bjyfvqctzsmdg"
      },
      "description": "The description and purpose of the issue.\nMax length: 10000"
    },
    "snapshotUrn": {
      "type": "string",
      "x-stoplight": {
        "id": "klltd0816d9h0"
      },
      "description": "Not relevant"
    },
    "issueSubtypeId": {
      "type": "string",
      "x-stoplight": {
        "id": "w9cpekfm64k1q"
      },
      "description": "The unique identifier of the subtype of the issue."
    },
    "status": {
      "$ref": "#/$defs/status"
    },
    "assignedTo": {
      "type": "string",
      "x-stoplight": {
        "id": "z2d8nyn4rrf12"
      },
      "description": "The Autodesk ID of the member, role, or company you want to assign to the issue. Note that if you select an assignee ID, you also need to select a type (assignedToType)."
    },
    "assignedToType": {
      "$ref": "#/$defs/assignedToType"
    },
    "dueDate": {
      "type": "string",
      "x-stoplight": {
        "id": "ie75gbeeuzb3b"
      },
      "description": "The due date of the issue, in ISO8601 format."
    },
    "startDate": {
      "type": "string",
      "x-stoplight": {
        "id": "coswfmw4g9fup"
      },
      "description": "The start date of the issue, in ISO8601 format."
    },
    "locationId": {
      "type": "string",
      "x-stoplight": {
        "id": "4jai4n9ddyd6b"
      },
      "description": "The unique LBS (Location Breakdown Structure) identifier that relates to the issue."
    },
    "locationDetails": {
      "type": "string",
      "x-stoplight": {
        "id": "z1gddbsieowy9"
      },
      "description": "The location as plain text that relates to the issue.\nMax length: 8300"
    },
    "rootCauseId": {
      "type": "string",
      "x-stoplight": {
        "id": "17ecnk4d83fz0"
      },
      "description": "The unique identifier of the type of root cause for the issue."
    },
    "issueTemplateId": {
      "type": "string",
      "x-stoplight": {
        "id": "17ecnk4d83fz0"
      },
      "description": "The unique identifier of the type of root cause for the issue."
    },
    "published": {
      "type": "boolean",
      "x-stoplight": {
        "id": "t4sq9mucm305q"
      },
      "description": "States whether the issue is published. Default value: false (e.g. unpublished)."
    },
    "permittedActions": {
      "type": "object",
      "x-stoplight": {
        "id": "uih5ia7jit7hb"
      },
      "description": "The list of actions permitted for the user for this issue in its current state.\nNote that if a user with Create for my company permissions attempts to assign a user from a another company to the issue, it will return an error.\n\nPossible Values: assign_all (can assign another user from another company to the issue), assign_same_company (can only assign another user from the same company to the issue), clear_assignee, delete, add_comment, add_attachment, remove_attachment.\n\nThe following values are not relevant: add_attachment, remove_attachment."
    },
    "watchers": {
      "type": "array",
      "x-stoplight": {
        "id": "f62fnyar5mau5"
      },
      "description": "The Autodesk ID of the member you want to assign as a watcher for the issue.",
      "items": {
        "x-stoplight": {
          "id": "sz01bet5mi110"
        },
        "type": "string"
      }
    },
    "customAttributes": {
      "type": "array",
      "x-stoplight": {
        "id": "vblrg1nyyahq4"
      },
      "description": "A list of custom attributes of the specific issue.",
      "items": {
        "x-stoplight": {
          "id": "62j6v5j9s0ncc"
        },
        "type": "object",
        "properties": {
          "attributeDefinitionId": {
            "type": "string",
            "x-stoplight": {
              "id": "5b8h1b9n7jone"
            },
            "description": "The unique identifier of the custom attribute."
          },
          "value": {
            "type": "object",
            "x-stoplight": {
              "id": "4fupsuku6bg1a"
            },
            "description": "Custom attribute value. Possible value types: string, number, null."
          }
        },
        "required": [
          "attributeDefinitionId",
          "value"
        ]
      }
    },
    "gpsCoordinates": {
      "type": "object",
      "x-stoplight": {
        "id": "5cq95b24ifbl8"
      },
      "description": "A GPS Coordinate which represents the geo location of the issue.",
      "properties": {
        "latitude": {
          "type": "number",
          "x-stoplight": {
            "id": "6f6pm9hf3oldd"
          }
        },
        "longitude": {
          "type": "number",
          "x-stoplight": {
            "id": "y0dndwiddez8y"
          }
        }
      }
    }
  },
  "required": [
    "title",
    "issueSubtypeId",
    "status"
  ],
  "$defs": {
    "assignedToType": {
      "title": "assignedToType",
      "x-stoplight": {
        "id": "b4ak99p50pp97"
      },
      "type": "string",
      "enum": [
        "user",
        "company",
        "role"
      ]
    },
    "status": {
      "type": "string",
      "x-stoplight": {
        "id": "w3v9ah58nfw7e"
      },
      "description": "The current status of the issue. To check the available statuses for the project, call GET users/me and check the permitted statuses list (issue.new.permittedStatuses). For more information about statuses, see the Help documentation.",
      "enum": [
        "draft",
        "open",
        "pending",
        "in_progress",
        "in_review",
        "completed",
        "not_approved",
        "in_dispute",
        "closed"
      ]
    }
  }
}