acc_create_issue
Create a real issue (punchlist/QC item) in ACC Build's Issues module via the APS Construction Issues v1 API. Returns the ACC-generated issue_id which can be linked back to a model URN or a detected clash. When to use: detect_clashes flagged a critical clash, or a field user reports a QC defect, and you want to track it in ACC for assignment and closeout. When NOT to use: you want to file a formal information request between trades — use acc_create_rfi instead. You want a note on a model element — that is a markup, not an issue. APS scopes: data:read data:write account:read Rate limits: APS default ~50 req/min per app per endpoint; Model Derivative translation jobs ~60 req/min; OSS uploads size-limited per file to 100MB for direct upload, larger via resumable. Errors: 401 APS token expired/invalid — refresh; 403 scope or resource permission denied (app not provisioned for the project's ACC account); 404 project_id not found — check the ID (strip any leading 'b.'); 429 rate limited — backoff and retry; 5xx APS upstream outage — retry with jitter. Side effects: NON-IDEMPOTENT. Creates a new ACC issue each call (repeated calls create duplicates). Inserts a row into D1 usage_log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short human-readable issue title, 1-255 chars. Shows up as the headline in ACC Issues UI. | |
| due_date | No | ISO 8601 calendar date (YYYY-MM-DD). Time component is ignored by ACC. | |
| priority | No | ACC issue priority. Defaults to 'medium' if omitted. | |
| project_id | Yes | ACC project ID in either 'b.<uuid>' or plain '<uuid>' form (the worker strips the 'b.' prefix before calling the Issues endpoint). Obtainable via acc_list_projects. | |
| assigned_to | No | ACC user ID (UUID) or email of the assignee. Pass null or omit to leave unassigned. | |
| description | Yes | Long-form issue body. Plain text; supports newlines. Include clash coordinates, trade impact, and suggested fix. | |
| linked_model_id | No | Optional APS URN linking this issue back to the source model. Stored for ScanBIM cross-referencing; not forwarded to ACC's linkedDocuments field. |