diff --git a/go.mod b/go.mod index 4bb86991e..c82feb328 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( charm.land/bubbles/v2 v2.2.1 charm.land/bubbletea/v2 v2.0.9 charm.land/lipgloss/v2 v2.0.6 - github.com/basecamp/basecamp-sdk/go v0.19.0 + github.com/basecamp/basecamp-sdk/go v0.21.0 github.com/basecamp/cli v0.2.2-0.20260828230226-767413fc712d github.com/basecamp/mcp v0.0.0-20260828100356-2d6f44b51e9d github.com/basecamp/surfguard/go v0.1.0 @@ -41,6 +41,7 @@ require ( github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect + github.com/basecamp/actioncable-go v1.2.0 // indirect github.com/blang/semver v3.5.1+incompatible // indirect github.com/catppuccin/go v0.3.0 // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect @@ -55,7 +56,6 @@ require ( github.com/charmbracelet/x/windows v0.2.2 // indirect github.com/clipperhouse/displaywidth v0.11.0 // indirect github.com/clipperhouse/uax29/v2 v2.7.0 // indirect - github.com/coder/websocket v1.8.15 // indirect github.com/cyberphone/json-canonicalization v0.0.0-20241213102144-19d51d7fe467 // indirect github.com/danieljoos/wincred v1.2.3 // indirect github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 // indirect diff --git a/go.sum b/go.sum index 389256aba..904add6fd 100644 --- a/go.sum +++ b/go.sum @@ -87,8 +87,10 @@ github.com/aymanbagabas/go-udiff v0.4.1 h1:OEIrQ8maEeDBXQDoGCbbTTXYJMYRCRO1fnodZ github.com/aymanbagabas/go-udiff v0.4.1/go.mod h1:0L9PGwj20lrtmEMeyw4WKJ/TMyDtvAoK9bf2u/mNo3w= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= -github.com/basecamp/basecamp-sdk/go v0.19.0 h1:byygVVbJnWCZsyBNeAlztlUAV23ytLEhPx98WakNy+c= -github.com/basecamp/basecamp-sdk/go v0.19.0/go.mod h1:kIBDYwPMMD59PadNGxpH0YTQuI+blFPZ8MelGI0RK5Q= +github.com/basecamp/actioncable-go v1.2.0 h1:t0MxlfMTcmaGXZ5ztgKRs7ZiY1MwXtBRwSSSAh1ofVg= +github.com/basecamp/actioncable-go v1.2.0/go.mod h1:ezaV5z1GXQAsqyejqTs6wCFl2D8Wj+COLQkHc/kwoRs= +github.com/basecamp/basecamp-sdk/go v0.21.0 h1:yWBD7tJRmyLzxC8yppYC4sXJ9XSWfsdDPU5fyUjVYKA= +github.com/basecamp/basecamp-sdk/go v0.21.0/go.mod h1:BczT5BZq4rf9LFc2DjXUZoxu7/f4tWIZjFxIV2CttDI= github.com/basecamp/cli v0.2.2-0.20260828230226-767413fc712d h1:jAzDrCCzDpIwhbFT1xVVs0z2xpXoDEkomHfKB2bUUp8= github.com/basecamp/cli v0.2.2-0.20260828230226-767413fc712d/go.mod h1:iTBTaWvsPEFIcZfkxQHEfISyJ6sZ7036K6bNx0RY3EE= github.com/basecamp/mcp v0.0.0-20260828100356-2d6f44b51e9d h1:zEQVGq1x1nhKMZ2TudFAcSJ32CHT8richI1vQakIKz4= diff --git a/internal/commands/templates.go b/internal/commands/templates.go index 34da8a7fc..39665d716 100644 --- a/internal/commands/templates.go +++ b/internal/commands/templates.go @@ -156,7 +156,7 @@ func newTemplatesLibraryCmd() *cobra.Command { app.Config.AccountID, ) - library, err := app.Account().Templates().GetLibrary(cmd.Context()) + library, err := app.Account().Templates().GetLibraryTodolists(cmd.Context()) if err != nil { return convertSDKError(err) } diff --git a/internal/commands/templates_test.go b/internal/commands/templates_test.go index 397e11e52..820677e04 100644 --- a/internal/commands/templates_test.go +++ b/internal/commands/templates_test.go @@ -68,7 +68,7 @@ func decodeTemplateEnvelope(t *testing.T, buf *bytes.Buffer) struct { func TestTemplatesLibraryUsesSDKLibraryEndpoint(t *testing.T) { app, transport := setupRecordingTestApp(t, stubRoute{ method: http.MethodGet, - path: "/99999/template_library.json", + path: "/99999/template_library/todolists.json", status: http.StatusOK, body: templateLibraryJSON, }) @@ -81,7 +81,7 @@ func TestTemplatesLibraryUsesSDKLibraryEndpoint(t *testing.T) { request := transport.last(t) assert.Equal(t, http.MethodGet, request.Method) - assert.Equal(t, "/99999/template_library.json", request.Path) + assert.Equal(t, "/99999/template_library/todolists.json", request.Path) envelope := decodeTemplateEnvelope(t, buf) assert.Equal(t, "1 active to-do list templates", envelope.Summary) require.Len(t, envelope.Breadcrumbs, 1) @@ -91,7 +91,7 @@ func TestTemplatesLibraryUsesSDKLibraryEndpoint(t *testing.T) { func TestTemplatesLibraryHumanOutputShowsCopyableID(t *testing.T) { app, _ := setupRecordingTestApp(t, stubRoute{ method: http.MethodGet, - path: "/99999/template_library.json", + path: "/99999/template_library/todolists.json", status: http.StatusOK, body: templateLibraryJSON, }) diff --git a/internal/mcpserver/catalog_test.go b/internal/mcpserver/catalog_test.go index b8bec2c99..08a4be2a5 100644 --- a/internal/mcpserver/catalog_test.go +++ b/internal/mcpserver/catalog_test.go @@ -71,7 +71,7 @@ func TestCatalogExcludesUnservedOperations(t *testing.T) { assert.False(t, excluded[op.ID], "operation %q should be excluded from the vendored model", op.ID) } } - assert.Equal(t, 261, model, "served model operation count") + assert.Equal(t, 274, model, "served model operation count") assert.Equal(t, 1, composite, "served composite operation count") } @@ -212,7 +212,7 @@ func TestCatalogPaginatedActionsTakePage(t *testing.T) { assert.Equal(t, 1, pages, "operation %q must declare exactly one page query parameter", op.ID) } } - assert.Equal(t, 61, link, "Link-style paginated operation count") + assert.Equal(t, 62, link, "Link-style paginated operation count") } // TestCatalogCursorPaginatedActionsTakeNoPage pins the other half. A diff --git a/internal/mcpserver/domains.go b/internal/mcpserver/domains.go index 347849a77..21c556481 100644 --- a/internal/mcpserver/domains.go +++ b/internal/mcpserver/domains.go @@ -26,8 +26,8 @@ var DomainSpecs = []catalog.DomainSpec{ }, { Key: "todos", - Tags: []string{"Todos"}, - Blurb: "Todos, todolists, todolist groups, and todosets — plus each todolist's hill chart.", + Tags: []string{"Todos", "Subtasks"}, + Blurb: "Todos, todolists, todolist groups, and todosets — plus each todolist's hill chart, and the subtasks on to-dos and cards.", }, { Key: "cards", @@ -66,8 +66,8 @@ var DomainSpecs = []catalog.DomainSpec{ }, { Key: "automation", - Tags: []string{"Automation", "Checkins"}, - Blurb: "Automatic check-ins (questionnaires, questions, answers, reminders), project templates, webhooks, lineup markers, dock tools, recording lifecycle (archive/trash), change events, and search.", + Tags: []string{"Checkins", "Templates", "Webhooks", "Lineup", "Dock", "Recordings", "Search"}, + Blurb: "Automatic check-ins (questionnaires, questions, answers, reminders), project templates and the template library, webhooks, lineup markers, dock tools, recording lifecycle (archive/trash), change events, and search.", }, { Key: "reports", diff --git a/internal/mcpserver/feed_test.go b/internal/mcpserver/feed_test.go index de1ed5eb7..a372ffe1f 100644 --- a/internal/mcpserver/feed_test.go +++ b/internal/mcpserver/feed_test.go @@ -225,7 +225,9 @@ func TestFeedTellsTheTwo400sApart(t *testing.T) { name: "a reason this code does not know is not guessed at through the sentence", action: "poll_events", body: `{"error":"Unrecognized position. Resume with since=now.","reason":"invalid_cursor_epoch"}`, - want: "bad_request", + // A reason the contract doesn't name makes the body malformed + // (SDK v0.21.0): refused, not classified. + want: "request_failed", }, } for _, tc := range cases { @@ -557,9 +559,10 @@ func TestFeedGoneWithoutAnEpochIsNotAStalePosition(t *testing.T) { text, isError := callFeed(t, session, "poll_events", map[string]any{"position": "stale"}) require.True(t, isError, text) + // The SDK (v0.21.0) calls a 410 without its epoch malformed, and reports + // it without a status to act on. detail := feedErrorOf(t, text) assert.Equal(t, "request_failed", detail["type"]) - assert.Equal(t, float64(http.StatusGone), detail["http_status"]) assert.NotContains(t, detail, "data", "no epoch, so no recovery is claimed") } @@ -657,11 +660,14 @@ func TestFeedDoesNotReadARemedyOutOfAForeign400(t *testing.T) { text, isError := callFeed(t, session, "poll_events", map[string]any{"position": "aBcD"}) require.True(t, isError, text) - assert.Equal(t, "bad_request", feedErrorOf(t, text)["type"]) + // Without the feed's own `error` member the SDK (v0.21.0) calls the 400 + // malformed: refused, not classified. + assert.Equal(t, "request_failed", feedErrorOf(t, text)["type"]) } -// The refusals the SDK leaves untyped land somewhere honest: their status, no -// recovery claimed, and no recovery data invented. +// The refusals the SDK leaves untyped land somewhere honest: no recovery +// claimed, and no recovery data invented. The SDK (v0.21.0) calls these +// bodies malformed and reports them without a status. func TestFeedUntypedRefusalsClaimNoRecovery(t *testing.T) { cases := []struct { name string @@ -682,19 +688,18 @@ func TestFeedUntypedRefusalsClaimNoRecovery(t *testing.T) { detail := feedErrorOf(t, text) assert.Equal(t, "request_failed", detail["type"]) - assert.Equal(t, float64(tc.status), detail["http_status"]) assert.NotContains(t, detail, "data", "no recovery was offered, so none is claimed") }) } t.Run("a 409 on the inbox with both digests is a filter mismatch there too", func(t *testing.T) { session := feedSession(t, http.StatusConflict, - `{"error":"filters changed","position_digest":"abc123","filters_digest":"def456"}`, nil) + `{"error":"filters changed","position_digest":"0123456789abcdef","filters_digest":"fedcba9876543210"}`, nil) text, isError := callFeed(t, session, "poll_inbox", map[string]any{"position": "aBcD"}) require.True(t, isError, text) detail := feedErrorOf(t, text) assert.Equal(t, "filter_mismatch", detail["type"]) - assert.Equal(t, map[string]any{"position_digest": "abc123", "filters_digest": "def456"}, detail["data"]) + assert.Equal(t, map[string]any{"position_digest": "0123456789abcdef", "filters_digest": "fedcba9876543210"}, detail["data"]) }) } diff --git a/internal/mcpserver/model/PROVENANCE.json b/internal/mcpserver/model/PROVENANCE.json index 41423b4a7..fb8c364b3 100644 --- a/internal/mcpserver/model/PROVENANCE.json +++ b/internal/mcpserver/model/PROVENANCE.json @@ -1,7 +1,7 @@ { "source": "github.com/basecamp/basecamp-sdk", - "commit": "6abe227204a465ced72969f10e32d3a06e77bcc1", - "ref": "go/v0.19.0", + "commit": "2e4395950e18aaf4bbf6e2e10511ad6b66f95524", + "ref": "go/v0.21.0", "files": ["behavior-model.json", "openapi.json"], "synced_by": "scripts/sync-mcp-model.sh", "patches": "binary-upload operations dropped because the toolkit refuses their non-JSON bodies (EXCLUDED_OPERATIONS) and the stream-ticket mint dropped by policy (POLICY_EXCLUDED_OPERATIONS); no tag patches applied (PATCHED_TAGS is empty — the export tags every operation) — see the sync script" diff --git a/internal/mcpserver/model/behavior-model.json b/internal/mcpserver/model/behavior-model.json index 8913ae7e7..10b2ce390 100644 --- a/internal/mcpserver/model/behavior-model.json +++ b/internal/mcpserver/model/behavior-model.json @@ -27,6 +27,18 @@ ] } }, + "CompleteSubtask": { + "idempotent": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "CompleteTodo": { "idempotent": true, "retry": { @@ -294,6 +306,17 @@ ] } }, + "CreateSubtask": { + "retry": { + "max": 2, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "CreateTemplate": { "retry": { "max": 2, @@ -305,6 +328,17 @@ ] } }, + "CreateTemplateLibraryCardTable": { + "retry": { + "max": 2, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "CreateTemplateLibraryCopy": { "retry": { "max": 2, @@ -316,6 +350,28 @@ ] } }, + "CreateTemplateLibraryTodolist": { + "retry": { + "max": 2, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, + "CreateTemplatification": { + "retry": { + "max": 2, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "CreateTimesheetEntry": { "retry": { "max": 3, @@ -533,6 +589,18 @@ ] } }, + "DeleteSubtask": { + "idempotent": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "DeleteTemplate": { "idempotent": true, "retry": { @@ -1663,6 +1731,18 @@ ] } }, + "GetSubtask": { + "readonly": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "GetTemplate": { "readonly": true, "retry": { @@ -1675,7 +1755,7 @@ ] } }, - "GetTemplateLibrary": { + "GetTemplateLibraryCardTables": { "readonly": true, "retry": { "max": 3, @@ -1699,6 +1779,30 @@ ] } }, + "GetTemplateLibraryTodolists": { + "readonly": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, + "GetTemplatification": { + "readonly": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "GetTimesheetEntry": { "readonly": true, "retry": { @@ -2347,6 +2451,22 @@ ] } }, + "ListSubtasks": { + "readonly": true, + "pagination": { + "style": "link", + "maxPageSize": 50 + }, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "ListTemplates": { "readonly": true, "pagination": { @@ -2675,6 +2795,18 @@ ] } }, + "RepositionSubtask": { + "idempotent": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "RepositionTodo": { "idempotent": true, "retry": { @@ -2883,6 +3015,18 @@ ] } }, + "UncompleteSubtask": { + "idempotent": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "UncompleteTodo": { "idempotent": true, "retry": { @@ -3274,6 +3418,18 @@ ] } }, + "UpdateSubtask": { + "idempotent": true, + "retry": { + "max": 3, + "base_delay_ms": 1000, + "backoff": "exponential", + "retry_on": [ + 429, + 503 + ] + } + }, "UpdateTemplate": { "idempotent": true, "retry": { diff --git a/internal/mcpserver/model/openapi.json b/internal/mcpserver/model/openapi.json index b885bae54..643aa20bf 100644 --- a/internal/mcpserver/model/openapi.json +++ b/internal/mcpserver/model/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.1.0", "info": { "title": "Basecamp", - "version": "2026-09-02", + "version": "2026-09-15", "description": "Basecamp API", "contact": { "name": "Basecamp", @@ -2829,7 +2829,7 @@ } }, "tags": [ - "Automation" + "Dock" ], "x-basecamp-retry": { "maxAttempts": 2, @@ -2842,6 +2842,258 @@ } } }, + "/{accountId}/buckets/{bucketId}/recordings/{recordingId}/templatifications.json": { + "post": { + "description": "Templatify a to-do list or card table", + "operationId": "CreateTemplatification", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplatificationRequestContent" + } + } + } + }, + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "bucketId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + }, + { + "name": "recordingId", + "in": "path", + "description": "The to-do list or card table to templatify. Anything else is a 403.", + "schema": { + "type": "integer", + "description": "The to-do list or card table to templatify. Anything else is a 403.", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "201": { + "description": "CreateTemplatification 201 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplatificationResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "422": { + "description": "FieldValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FieldValidationErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 2, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/buckets/{bucketId}/recordings/{recordingId}/templatifications/{templatificationId}": { + "get": { + "description": "Get a templatification", + "operationId": "GetTemplatification", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "bucketId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + }, + { + "name": "recordingId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + }, + { + "name": "templatificationId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "GetTemplatification 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTemplatificationResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, "/{accountId}/buckets/{bucketId}/todosets/{todosetId}/todos.json": { "post": { "description": "Create a to-do directly under a project's to-do set, outside any to-do list.\nThis form exists only project-scoped (no account-scoped variant); parameters\nand response match the to-do-list create. Find a project's to-do set id via\nGetTodoset.", @@ -3284,7 +3536,7 @@ } }, "tags": [ - "Automation" + "Webhooks" ], "x-basecamp-pagination": { "style": "link", @@ -3409,7 +3661,7 @@ } }, "tags": [ - "Automation" + "Webhooks" ], "x-basecamp-retry": { "maxAttempts": 2, @@ -7948,7 +8200,7 @@ } }, "tags": [ - "Automation" + "Dock" ], "x-basecamp-idempotent": { "natural": true @@ -8041,7 +8293,7 @@ } }, "tags": [ - "Automation" + "Dock" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -8151,7 +8403,7 @@ } }, "tags": [ - "Automation" + "Dock" ], "x-basecamp-idempotent": { "natural": true @@ -10048,7 +10300,7 @@ } }, "tags": [ - "Automation" + "Lineup" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -10142,7 +10394,7 @@ } }, "tags": [ - "Automation" + "Lineup" ], "x-basecamp-retry": { "maxAttempts": 2, @@ -10227,7 +10479,7 @@ } }, "tags": [ - "Automation" + "Lineup" ], "x-basecamp-idempotent": { "natural": true @@ -10332,7 +10584,7 @@ } }, "tags": [ - "Automation" + "Lineup" ], "x-basecamp-idempotent": { "natural": true @@ -12622,7 +12874,7 @@ }, "/{accountId}/my/unreads.json": { "put": { - "description": "Mark specified items as read", + "description": "Mark specified items as read\n\nA batch is capped at 500 readables; a larger one is refused with 422\nbefore any per-item work (bc3 `f3437f5c732`).", "operationId": "MarkAsRead", "requestBody": { "content": { @@ -12671,6 +12923,16 @@ } } }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, "429": { "description": "RateLimitError 429 response", "content": { @@ -13673,7 +13935,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-pagination": { "style": "link", @@ -15679,7 +15941,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -15782,7 +16044,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-idempotent": { "natural": true @@ -15877,7 +16139,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -15979,7 +16241,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-pagination": { "style": "link", @@ -16094,7 +16356,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-retry": { "maxAttempts": 2, @@ -16186,7 +16448,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -16295,7 +16557,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-idempotent": { "natural": true @@ -16400,7 +16662,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-pagination": { "style": "link", @@ -16515,7 +16777,7 @@ } }, "tags": [ - "Automation" + "Checkins" ], "x-basecamp-retry": { "maxAttempts": 2, @@ -18394,7 +18656,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-pagination": { "style": "link", @@ -18729,7 +18991,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-idempotent": { "natural": true @@ -18842,7 +19104,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-idempotent": { "natural": true @@ -18940,7 +19202,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-idempotent": { "natural": true @@ -18958,7 +19220,7 @@ }, "/{accountId}/recordings/{recordingId}/status/archived.json": { "put": { - "description": "Archive a recording", + "description": "Archive a recording; bc3 answers 403 for types it never lets be archived, timesheet entries among them", "operationId": "ArchiveRecording", "parameters": [ { @@ -19038,7 +19300,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-idempotent": { "natural": true @@ -19056,7 +19318,7 @@ }, "/{accountId}/recordings/{recordingId}/status/trashed.json": { "put": { - "description": "Trash a recording", + "description": "Trash a recording; bc3 answers 403 for types it never lets be trashed, timesheet entries among them (DestroyTimesheetEntry removes those, permanently)", "operationId": "TrashRecording", "parameters": [ { @@ -19150,7 +19412,7 @@ } }, "tags": [ - "Automation" + "Recordings" ], "x-basecamp-idempotent": { "natural": true @@ -19635,10 +19897,10 @@ } } }, - "/{accountId}/recordings/{recordingId}/timesheet.json": { + "/{accountId}/recordings/{recordingId}/subtasks.json": { "get": { - "description": "Get timesheet for a specific recording", - "operationId": "GetRecordingTimesheet", + "description": "List a recording's subtasks, in position order\n\nOnly to-dos and cards hold subtasks; check for `subtasks_count` and\n`subtasks_url` on the parent's JSON.\n\n**Pagination**: Uses Link header (RFC5988). Follow the `next` rel URL\nto fetch additional pages. X-Total-Count header provides total count.", + "operationId": "ListSubtasks", "parameters": [ { "name": "accountId", @@ -19660,28 +19922,6 @@ }, "required": true }, - { - "name": "from", - "in": "query", - "schema": { - "type": "string" - } - }, - { - "name": "to", - "in": "query", - "schema": { - "type": "string" - } - }, - { - "name": "person_id", - "in": "query", - "schema": { - "type": "integer", - "format": "int64" - } - }, { "name": "page", "in": "query", @@ -19695,11 +19935,11 @@ ], "responses": { "200": { - "description": "GetRecordingTimesheet 200 response", + "description": "ListSubtasks 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetRecordingTimesheetResponseContent" + "$ref": "#/components/schemas/ListSubtasksResponseContent" } } } @@ -19734,6 +19974,16 @@ } } }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -19746,7 +19996,7 @@ } }, "tags": [ - "Schedule" + "Subtasks" ], "x-basecamp-pagination": { "style": "link", @@ -19762,17 +20012,15 @@ 503 ] } - } - }, - "/{accountId}/recordings/{recordingId}/timesheet/entries.json": { + }, "post": { - "description": "Create a timesheet entry on a recording", - "operationId": "CreateTimesheetEntry", + "description": "Create a subtask under a to-do or a card\n\nAny other recording answers `403 Forbidden`.", + "operationId": "CreateSubtask", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTimesheetEntryRequestContent" + "$ref": "#/components/schemas/CreateSubtaskRequestContent" } } }, @@ -19802,11 +20050,11 @@ ], "responses": { "201": { - "description": "CreateTimesheetEntry 201 response", + "description": "CreateSubtask 201 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTimesheetEntryResponseContent" + "$ref": "#/components/schemas/CreateSubtaskResponseContent" } } } @@ -19831,6 +20079,16 @@ } } }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, "422": { "description": "ValidationError 422 response", "content": { @@ -19863,10 +20121,10 @@ } }, "tags": [ - "Schedule" + "Subtasks" ], "x-basecamp-retry": { - "maxAttempts": 3, + "maxAttempts": 2, "baseDelayMs": 1000, "backoff": "exponential", "retryOn": [ @@ -19876,10 +20134,10 @@ } } }, - "/{accountId}/recordings/{toolId}/position.json": { - "delete": { - "description": "Disable a tool (hide it from the project dock)", - "operationId": "DisableTool", + "/{accountId}/recordings/{recordingId}/timesheet.json": { + "get": { + "description": "Get timesheet for a specific recording", + "operationId": "GetRecordingTimesheet", "parameters": [ { "name": "accountId", @@ -19893,18 +20151,57 @@ "required": true }, { - "name": "toolId", + "name": "recordingId", "in": "path", "schema": { "type": "integer", "format": "int64" }, "required": true + }, + { + "name": "from", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "person_id", + "in": "query", + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "page", + "in": "query", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "schema": { + "type": "integer", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "format": "int32" + } } ], "responses": { - "204": { - "description": "DisableTool 204 response" + "200": { + "description": "GetRecordingTimesheet 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetRecordingTimesheetResponseContent" + } + } + } }, "401": { "description": "UnauthorizedError 401 response", @@ -19948,10 +20245,12 @@ } }, "tags": [ - "Automation" + "Schedule" ], - "x-basecamp-idempotent": { - "natural": true + "x-basecamp-pagination": { + "style": "link", + "totalCountHeader": "X-Total-Count", + "maxPageSize": 50 }, "x-basecamp-retry": { "maxAttempts": 3, @@ -19962,10 +20261,22 @@ 503 ] } - }, + } + }, + "/{accountId}/recordings/{recordingId}/timesheet/entries.json": { "post": { - "description": "Enable a tool (show it on the project dock)", - "operationId": "EnableTool", + "description": "Create a timesheet entry on a recording", + "operationId": "CreateTimesheetEntry", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimesheetEntryRequestContent" + } + } + }, + "required": true + }, "parameters": [ { "name": "accountId", @@ -19979,7 +20290,7 @@ "required": true }, { - "name": "toolId", + "name": "recordingId", "in": "path", "schema": { "type": "integer", @@ -19990,7 +20301,14 @@ ], "responses": { "201": { - "description": "EnableTool 201 response" + "description": "CreateTimesheetEntry 201 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimesheetEntryResponseContent" + } + } + } }, "401": { "description": "UnauthorizedError 401 response", @@ -20044,10 +20362,10 @@ } }, "tags": [ - "Automation" + "Schedule" ], "x-basecamp-retry": { - "maxAttempts": 2, + "maxAttempts": 3, "baseDelayMs": 1000, "backoff": "exponential", "retryOn": [ @@ -20055,20 +20373,12 @@ 503 ] } - }, - "put": { - "description": "Reposition a tool on the project dock", - "operationId": "RepositionTool", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RepositionToolRequestContent" - } - } - }, - "required": true - }, + } + }, + "/{accountId}/recordings/{toolId}/position.json": { + "delete": { + "description": "Disable a tool (hide it from the project dock)", + "operationId": "DisableTool", "parameters": [ { "name": "accountId", @@ -20092,8 +20402,8 @@ } ], "responses": { - "200": { - "description": "RepositionTool 200 response" + "204": { + "description": "DisableTool 204 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -20125,16 +20435,6 @@ } } }, - "422": { - "description": "ValidationError 422 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ValidationErrorResponseContent" - } - } - } - }, "500": { "description": "InternalServerError 500 response", "content": { @@ -20147,7 +20447,7 @@ } }, "tags": [ - "Automation" + "Dock" ], "x-basecamp-idempotent": { "natural": true @@ -20161,12 +20461,10 @@ 503 ] } - } - }, - "/{accountId}/reports/gauges.json": { - "get": { - "description": "List gauges across all projects the authenticated user has access to.\nGauges are sorted by risk level (red, yellow, green), then alphabetically.", - "operationId": "ListGauges", + }, + "post": { + "description": "Enable a tool (show it on the project dock)", + "operationId": "EnableTool", "parameters": [ { "name": "accountId", @@ -20180,35 +20478,18 @@ "required": true }, { - "name": "bucket_ids", - "in": "query", - "description": "Comma-separated list of project IDs. When provided, results are returned\nin the order specified instead of by risk level.", - "schema": { - "type": "string", - "description": "Comma-separated list of project IDs. When provided, results are returned\nin the order specified instead of by risk level." - } - }, - { - "name": "page", - "in": "query", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "name": "toolId", + "in": "path", "schema": { "type": "integer", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", - "format": "int32" - } + "format": "int64" + }, + "required": true } ], "responses": { - "200": { - "description": "ListGauges 200 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListGaugesResponseContent" - } - } - } + "201": { + "description": "EnableTool 201 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -20230,6 +20511,16 @@ } } }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, "429": { "description": "RateLimitError 429 response", "content": { @@ -20252,15 +20543,10 @@ } }, "tags": [ - "Gauges" + "Dock" ], - "x-basecamp-pagination": { - "style": "link", - "totalCountHeader": "X-Total-Count", - "maxPageSize": 50 - }, "x-basecamp-retry": { - "maxAttempts": 3, + "maxAttempts": 2, "baseDelayMs": 1000, "backoff": "exponential", "retryOn": [ @@ -20268,12 +20554,20 @@ 503 ] } - } - }, - "/{accountId}/reports/progress.json": { - "get": { - "description": "Get account-wide activity feed (progress report)", - "operationId": "GetProgressReport", + }, + "put": { + "description": "Reposition a tool on the project dock", + "operationId": "RepositionTool", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RepositionToolRequestContent" + } + } + }, + "required": true + }, "parameters": [ { "name": "accountId", @@ -20287,26 +20581,18 @@ "required": true }, { - "name": "page", - "in": "query", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "name": "toolId", + "in": "path", "schema": { "type": "integer", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", - "format": "int32" - } + "format": "int64" + }, + "required": true } ], "responses": { "200": { - "description": "GetProgressReport 200 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetProgressReportResponseContent" - } - } - } + "description": "RepositionTool 200 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -20328,12 +20614,22 @@ } } }, - "429": { - "description": "RateLimitError 429 response", + "404": { + "description": "NotFoundError 404 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RateLimitErrorResponseContent" + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" } } } @@ -20350,12 +20646,10 @@ } }, "tags": [ - "Reports" + "Dock" ], - "x-basecamp-pagination": { - "style": "link", - "totalCountHeader": "X-Total-Count", - "maxPageSize": 50 + "x-basecamp-idempotent": { + "natural": true }, "x-basecamp-retry": { "maxAttempts": 3, @@ -20368,10 +20662,10 @@ } } }, - "/{accountId}/reports/schedules/upcoming.json": { + "/{accountId}/reports/gauges.json": { "get": { - "description": "Get upcoming schedule entries and assignable items within a date window.\nThis endpoint is preserved as the canonical API path on BC5;\nthe BC5 `/calendar` web view is HTML-only.\n\nThe three arrays carry the report's own reduced projections \u2014\nUpcomingScheduleEntry and UpcomingAssignable \u2014 not the shared ScheduleEntry\nand Todo/Card shapes. BC3 renders this report through\n`app/views/api/schedules/calendar/_entry.json.jbuilder` and\n`_assignable.json.jbuilder`, which emit a narrower key set than the\nper-resource partials, plus keys those partials never emit. See\nUpcomingScheduleEntry for the full accounting.", - "operationId": "GetUpcomingSchedule", + "description": "List gauges across all projects the authenticated user has access to.\nGauges are sorted by risk level (red, yellow, green), then alphabetically.", + "operationId": "ListGauges", "parameters": [ { "name": "accountId", @@ -20385,43 +20679,32 @@ "required": true }, { - "name": "window_starts_on", + "name": "bucket_ids", "in": "query", - "description": "Inclusive first day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it.", + "description": "Comma-separated list of project IDs. When provided, results are returned\nin the order specified instead of by risk level.", "schema": { "type": "string", - "description": "Inclusive first day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it." - }, - "required": true + "description": "Comma-separated list of project IDs. When provided, results are returned\nin the order specified instead of by risk level." + } }, { - "name": "window_ends_on", + "name": "page", "in": "query", - "description": "Inclusive last day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it.", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", "schema": { - "type": "string", - "description": "Inclusive last day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it." - }, - "required": true + "type": "integer", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "format": "int32" + } } ], "responses": { "200": { - "description": "GetUpcomingSchedule 200 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetUpcomingScheduleResponseContent" - } - } - } - }, - "400": { - "description": "BadRequestError 400 response", + "description": "ListGauges 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BadRequestErrorResponseContent" + "$ref": "#/components/schemas/ListGaugesResponseContent" } } } @@ -20468,8 +20751,13 @@ } }, "tags": [ - "Reports" + "Gauges" ], + "x-basecamp-pagination": { + "style": "link", + "totalCountHeader": "X-Total-Count", + "maxPageSize": 50 + }, "x-basecamp-retry": { "maxAttempts": 3, "baseDelayMs": 1000, @@ -20481,10 +20769,10 @@ } } }, - "/{accountId}/reports/timesheet.json": { + "/{accountId}/reports/progress.json": { "get": { - "description": "Get account-wide timesheet report", - "operationId": "GetTimesheetReport", + "description": "Get account-wide activity feed (progress report)", + "operationId": "GetProgressReport", "parameters": [ { "name": "accountId", @@ -20498,35 +20786,23 @@ "required": true }, { - "name": "from", - "in": "query", - "schema": { - "type": "string" - } - }, - { - "name": "to", - "in": "query", - "schema": { - "type": "string" - } - }, - { - "name": "person_id", + "name": "page", "in": "query", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", "schema": { "type": "integer", - "format": "int64" + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "format": "int32" } } ], "responses": { "200": { - "description": "GetTimesheetReport 200 response", + "description": "GetProgressReport 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTimesheetReportResponseContent" + "$ref": "#/components/schemas/GetProgressReportResponseContent" } } } @@ -20551,12 +20827,12 @@ } } }, - "404": { - "description": "NotFoundError 404 response", + "429": { + "description": "RateLimitError 429 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotFoundErrorResponseContent" + "$ref": "#/components/schemas/RateLimitErrorResponseContent" } } } @@ -20573,8 +20849,13 @@ } }, "tags": [ - "Schedule" + "Reports" ], + "x-basecamp-pagination": { + "style": "link", + "totalCountHeader": "X-Total-Count", + "maxPageSize": 50 + }, "x-basecamp-retry": { "maxAttempts": 3, "baseDelayMs": 1000, @@ -20586,10 +20867,10 @@ } } }, - "/{accountId}/reports/todos/assigned.json": { + "/{accountId}/reports/schedules/upcoming.json": { "get": { - "description": "List people who can be assigned todos", - "operationId": "ListAssignablePeople", + "description": "Get upcoming schedule entries and assignable items within a date window.\nThis endpoint is preserved as the canonical API path on BC5;\nthe BC5 `/calendar` web view is HTML-only.\n\nThe three arrays carry the report's own reduced projections \u2014\nUpcomingScheduleEntry and UpcomingAssignable \u2014 not the shared ScheduleEntry\nand Todo/Card shapes. BC3 renders this report through\n`app/views/api/schedules/calendar/_entry.json.jbuilder` and\n`_assignable.json.jbuilder`, which emit a narrower key set than the\nper-resource partials, plus keys those partials never emit. See\nUpcomingScheduleEntry for the full accounting.", + "operationId": "GetUpcomingSchedule", "parameters": [ { "name": "accountId", @@ -20601,15 +20882,45 @@ "description": "Basecamp account ID (numeric string)" }, "required": true + }, + { + "name": "window_starts_on", + "in": "query", + "description": "Inclusive first day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it.", + "schema": { + "type": "string", + "description": "Inclusive first day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it." + }, + "required": true + }, + { + "name": "window_ends_on", + "in": "query", + "description": "Inclusive last day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it.", + "schema": { + "type": "string", + "description": "Inclusive last day of the window, `YYYY-MM-DD`. Required \u2014 BC3 answers 400 without it." + }, + "required": true } ], "responses": { "200": { - "description": "ListAssignablePeople 200 response", + "description": "GetUpcomingSchedule 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListAssignablePeopleResponseContent" + "$ref": "#/components/schemas/GetUpcomingScheduleResponseContent" + } + } + } + }, + "400": { + "description": "BadRequestError 400 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestErrorResponseContent" } } } @@ -20656,7 +20967,7 @@ } }, "tags": [ - "People" + "Reports" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -20669,10 +20980,10 @@ } } }, - "/{accountId}/reports/todos/assigned/{personId}": { + "/{accountId}/reports/timesheet.json": { "get": { - "description": "Get todos assigned to a specific person", - "operationId": "GetAssignedTodos", + "description": "Get account-wide timesheet report", + "operationId": "GetTimesheetReport", "parameters": [ { "name": "accountId", @@ -20686,31 +20997,35 @@ "required": true }, { - "name": "personId", - "in": "path", + "name": "from", + "in": "query", "schema": { - "type": "integer", - "format": "int64" - }, - "required": true + "type": "string" + } }, { - "name": "group_by", + "name": "to", "in": "query", - "description": "Group by \"bucket\" or \"date\"", "schema": { - "type": "string", - "description": "Group by \"bucket\" or \"date\"" + "type": "string" + } + }, + { + "name": "person_id", + "in": "query", + "schema": { + "type": "integer", + "format": "int64" } } ], "responses": { "200": { - "description": "GetAssignedTodos 200 response", + "description": "GetTimesheetReport 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetAssignedTodosResponseContent" + "$ref": "#/components/schemas/GetTimesheetReportResponseContent" } } } @@ -20745,16 +21060,6 @@ } } }, - "429": { - "description": "RateLimitError 429 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RateLimitErrorResponseContent" - } - } - } - }, "500": { "description": "InternalServerError 500 response", "content": { @@ -20767,7 +21072,7 @@ } }, "tags": [ - "Reports" + "Schedule" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -20780,10 +21085,10 @@ } } }, - "/{accountId}/reports/todos/overdue.json": { + "/{accountId}/reports/todos/assigned.json": { "get": { - "description": "Get overdue todos grouped by lateness", - "operationId": "GetOverdueTodos", + "description": "List people who can be assigned todos", + "operationId": "ListAssignablePeople", "parameters": [ { "name": "accountId", @@ -20799,11 +21104,11 @@ ], "responses": { "200": { - "description": "GetOverdueTodos 200 response", + "description": "ListAssignablePeople 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetOverdueTodosResponseContent" + "$ref": "#/components/schemas/ListAssignablePeopleResponseContent" } } } @@ -20850,7 +21155,7 @@ } }, "tags": [ - "Reports" + "People" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -20863,10 +21168,10 @@ } } }, - "/{accountId}/reports/users/progress/{personId}.json": { + "/{accountId}/reports/todos/assigned/{personId}": { "get": { - "description": "Get a person's activity timeline", - "operationId": "GetPersonProgress", + "description": "Get todos assigned to a specific person", + "operationId": "GetAssignedTodos", "parameters": [ { "name": "accountId", @@ -20889,23 +21194,22 @@ "required": true }, { - "name": "page", + "name": "group_by", "in": "query", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "description": "Group by \"bucket\" or \"date\"", "schema": { - "type": "integer", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", - "format": "int32" + "type": "string", + "description": "Group by \"bucket\" or \"date\"" } } ], "responses": { "200": { - "description": "GetPersonProgress 200 response", + "description": "GetAssignedTodos 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPersonProgressResponseContent" + "$ref": "#/components/schemas/GetAssignedTodosResponseContent" } } } @@ -20964,12 +21268,6 @@ "tags": [ "Reports" ], - "x-basecamp-pagination": { - "style": "link", - "totalCountHeader": "X-Total-Count", - "maxPageSize": 50, - "key": "events" - }, "x-basecamp-retry": { "maxAttempts": 3, "baseDelayMs": 1000, @@ -20981,10 +21279,10 @@ } } }, - "/{accountId}/schedule_entries/{entryId}": { + "/{accountId}/reports/todos/overdue.json": { "get": { - "description": "Get a single schedule entry by id.\nNote: Recurring entries will redirect (302) to their recordable URL.\nUse GetScheduleEntryOccurrence for recurring entries instead.", - "operationId": "GetScheduleEntry", + "description": "Get overdue todos grouped by lateness", + "operationId": "GetOverdueTodos", "parameters": [ { "name": "accountId", @@ -20996,24 +21294,225 @@ "description": "Basecamp account ID (numeric string)" }, "required": true - }, - { - "name": "entryId", - "in": "path", - "schema": { - "type": "integer", - "format": "int64" - }, - "required": true } ], "responses": { "200": { - "description": "GetScheduleEntry 200 response", + "description": "GetOverdueTodos 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetScheduleEntryResponseContent" + "$ref": "#/components/schemas/GetOverdueTodosResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Reports" + ], + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/reports/users/progress/{personId}.json": { + "get": { + "description": "Get a person's activity timeline", + "operationId": "GetPersonProgress", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "personId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + }, + { + "name": "page", + "in": "query", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "schema": { + "type": "integer", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "GetPersonProgress 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPersonProgressResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Reports" + ], + "x-basecamp-pagination": { + "style": "link", + "totalCountHeader": "X-Total-Count", + "maxPageSize": 50, + "key": "events" + }, + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/schedule_entries/{entryId}": { + "get": { + "description": "Get a single schedule entry by id.\nNote: Recurring entries will redirect (302) to their recordable URL.\nUse GetScheduleEntryOccurrence for recurring entries instead.", + "operationId": "GetScheduleEntry", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "entryId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "GetScheduleEntry 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetScheduleEntryResponseContent" } } } @@ -21932,7 +22431,7 @@ } }, "tags": [ - "Automation" + "Search" ], "x-basecamp-pagination": { "style": "link", @@ -22020,7 +22519,7 @@ } }, "tags": [ - "Automation" + "Search" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -22527,10 +23026,10 @@ } } }, - "/{accountId}/template_library.json": { - "get": { - "description": "Get the account's to-do list template library", - "operationId": "GetTemplateLibrary", + "/{accountId}/subtasks/{subtaskId}": { + "delete": { + "description": "Delete a subtask\n\nOn accounts where deleting is limited to admins and the creator, everyone\nelse gets `403 Forbidden`.", + "operationId": "DeleteSubtask", "parameters": [ { "name": "accountId", @@ -22542,18 +23041,20 @@ "description": "Basecamp account ID (numeric string)" }, "required": true + }, + { + "name": "subtaskId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true } ], "responses": { - "200": { - "description": "GetTemplateLibrary 200 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetTemplateLibraryResponseContent" - } - } - } + "204": { + "description": "DeleteSubtask 204 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -22575,12 +23076,12 @@ } } }, - "429": { - "description": "RateLimitError 429 response", + "404": { + "description": "NotFoundError 404 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RateLimitErrorResponseContent" + "$ref": "#/components/schemas/NotFoundErrorResponseContent" } } } @@ -22597,8 +23098,11 @@ } }, "tags": [ - "Automation" + "Subtasks" ], + "x-basecamp-idempotent": { + "natural": true + }, "x-basecamp-retry": { "maxAttempts": 3, "baseDelayMs": 1000, @@ -22608,22 +23112,10 @@ 503 ] } - } - }, - "/{accountId}/template_library/copies.json": { - "post": { - "description": "Start copying a to-do list template into a project", - "operationId": "CreateTemplateLibraryCopy", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTemplateLibraryCopyRequestContent" - } - } - }, - "required": true - }, + }, + "get": { + "description": "Get a subtask by ID", + "operationId": "GetSubtask", "parameters": [ { "name": "accountId", @@ -22635,15 +23127,24 @@ "description": "Basecamp account ID (numeric string)" }, "required": true + }, + { + "name": "subtaskId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true } ], "responses": { - "201": { - "description": "CreateTemplateLibraryCopy 201 response", + "200": { + "description": "GetSubtask 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTemplateLibraryCopyResponseContent" + "$ref": "#/components/schemas/GetSubtaskResponseContent" } } } @@ -22678,26 +23179,6 @@ } } }, - "422": { - "description": "PeopleConfirmationRequiredError 422 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PeopleConfirmationRequiredErrorResponseContent" - } - } - } - }, - "429": { - "description": "RateLimitError 429 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RateLimitErrorResponseContent" - } - } - } - }, "500": { "description": "InternalServerError 500 response", "content": { @@ -22710,10 +23191,10 @@ } }, "tags": [ - "Automation" + "Subtasks" ], "x-basecamp-retry": { - "maxAttempts": 2, + "maxAttempts": 3, "baseDelayMs": 1000, "backoff": "exponential", "retryOn": [ @@ -22721,12 +23202,19 @@ 503 ] } - } - }, - "/{accountId}/template_library/copies/{copyId}": { - "get": { - "description": "Get the current status of a to-do list template copy", - "operationId": "GetTemplateLibraryCopy", + }, + "put": { + "description": "Update a subtask\n\nA partial update: every omitted parameter is left unchanged. Clearing a\nvalue takes an explicit send \u2014 `\"due_on\": null` clears the due date (an\nempty string is accepted too, and is what the Ruby, Python and TypeScript\nSDKs send, since they drop nil, None and undefined from the body);\n`\"assignee_ids\": []` removes every assignee. Send at least one parameter:\nan empty body is refused with `400 Bad Request`.", + "operationId": "UpdateSubtask", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateSubtaskRequestContent" + } + } + } + }, "parameters": [ { "name": "accountId", @@ -22740,7 +23228,7 @@ "required": true }, { - "name": "copyId", + "name": "subtaskId", "in": "path", "schema": { "type": "integer", @@ -22751,11 +23239,11 @@ ], "responses": { "200": { - "description": "GetTemplateLibraryCopy 200 response", + "description": "UpdateSubtask 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTemplateLibraryCopyResponseContent" + "$ref": "#/components/schemas/UpdateSubtaskResponseContent" } } } @@ -22790,12 +23278,12 @@ } } }, - "429": { - "description": "RateLimitError 429 response", + "422": { + "description": "ValidationError 422 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RateLimitErrorResponseContent" + "$ref": "#/components/schemas/ValidationErrorResponseContent" } } } @@ -22812,8 +23300,11 @@ } }, "tags": [ - "Automation" + "Subtasks" ], + "x-basecamp-idempotent": { + "natural": true + }, "x-basecamp-retry": { "maxAttempts": 3, "baseDelayMs": 1000, @@ -22825,10 +23316,10 @@ } } }, - "/{accountId}/templates.json": { - "get": { - "description": "List all templates visible to the current user\n\n**Pagination**: Uses Link header (RFC5988). Follow the `next` rel URL\nto fetch additional pages. X-Total-Count header provides total count.", - "operationId": "ListTemplates", + "/{accountId}/subtasks/{subtaskId}/completion.json": { + "delete": { + "description": "Mark a subtask as not completed", + "operationId": "UncompleteSubtask", "parameters": [ { "name": "accountId", @@ -22842,35 +23333,18 @@ "required": true }, { - "name": "status", - "in": "query", - "description": "active|archived|trashed", - "schema": { - "type": "string", - "description": "active|archived|trashed" - } - }, - { - "name": "page", - "in": "query", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "name": "subtaskId", + "in": "path", "schema": { "type": "integer", - "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", - "format": "int32" - } + "format": "int64" + }, + "required": true } ], "responses": { - "200": { - "description": "ListTemplates 200 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListTemplatesResponseContent" - } - } - } + "204": { + "description": "UncompleteSubtask 204 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -22892,12 +23366,12 @@ } } }, - "429": { - "description": "RateLimitError 429 response", + "404": { + "description": "NotFoundError 404 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RateLimitErrorResponseContent" + "$ref": "#/components/schemas/NotFoundErrorResponseContent" } } } @@ -22914,12 +23388,10 @@ } }, "tags": [ - "Automation" + "Subtasks" ], - "x-basecamp-pagination": { - "style": "link", - "totalCountHeader": "X-Total-Count", - "maxPageSize": 50 + "x-basecamp-idempotent": { + "natural": true }, "x-basecamp-retry": { "maxAttempts": 3, @@ -22932,18 +23404,8 @@ } }, "post": { - "description": "Create a new template", - "operationId": "CreateTemplate", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTemplateRequestContent" - } - } - }, - "required": true - }, + "description": "Mark a subtask as completed", + "operationId": "CompleteSubtask", "parameters": [ { "name": "accountId", @@ -22955,18 +23417,20 @@ "description": "Basecamp account ID (numeric string)" }, "required": true + }, + { + "name": "subtaskId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true } ], "responses": { - "201": { - "description": "CreateTemplate 201 response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTemplateResponseContent" - } - } - } + "204": { + "description": "CompleteSubtask 204 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -22988,12 +23452,12 @@ } } }, - "422": { - "description": "ValidationError 422 response", + "404": { + "description": "NotFoundError 404 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ValidationErrorResponseContent" + "$ref": "#/components/schemas/NotFoundErrorResponseContent" } } } @@ -23020,10 +23484,13 @@ } }, "tags": [ - "Automation" + "Subtasks" ], + "x-basecamp-idempotent": { + "natural": true + }, "x-basecamp-retry": { - "maxAttempts": 2, + "maxAttempts": 3, "baseDelayMs": 1000, "backoff": "exponential", "retryOn": [ @@ -23033,10 +23500,20 @@ } } }, - "/{accountId}/templates/{templateId}": { - "delete": { - "description": "Delete a template (trash it)", - "operationId": "DeleteTemplate", + "/{accountId}/subtasks/{subtaskId}/position.json": { + "put": { + "description": "Move a subtask to a new position among its siblings", + "operationId": "RepositionSubtask", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RepositionSubtaskRequestContent" + } + } + }, + "required": true + }, "parameters": [ { "name": "accountId", @@ -23050,7 +23527,7 @@ "required": true }, { - "name": "templateId", + "name": "subtaskId", "in": "path", "schema": { "type": "integer", @@ -23061,7 +23538,7 @@ ], "responses": { "204": { - "description": "DeleteTemplate 204 response" + "description": "RepositionSubtask 204 response" }, "401": { "description": "UnauthorizedError 401 response", @@ -23093,6 +23570,16 @@ } } }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, "500": { "description": "InternalServerError 500 response", "content": { @@ -23105,7 +23592,7 @@ } }, "tags": [ - "Automation" + "Subtasks" ], "x-basecamp-idempotent": { "natural": true @@ -23119,10 +23606,12 @@ 503 ] } - }, + } + }, + "/{accountId}/template_library/card_tables.json": { "get": { - "description": "Get a single template by id", - "operationId": "GetTemplate", + "description": "Get the account's card table templates", + "operationId": "GetTemplateLibraryCardTables", "parameters": [ { "name": "accountId", @@ -23134,24 +23623,15 @@ "description": "Basecamp account ID (numeric string)" }, "required": true - }, - { - "name": "templateId", - "in": "path", - "schema": { - "type": "integer", - "format": "int64" - }, - "required": true } ], "responses": { "200": { - "description": "GetTemplate 200 response", + "description": "GetTemplateLibraryCardTables 200 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTemplateResponseContent" + "$ref": "#/components/schemas/GetTemplateLibraryCardTablesResponseContent" } } } @@ -23176,12 +23656,12 @@ } } }, - "404": { - "description": "NotFoundError 404 response", + "429": { + "description": "RateLimitError 429 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotFoundErrorResponseContent" + "$ref": "#/components/schemas/RateLimitErrorResponseContent" } } } @@ -23198,7 +23678,7 @@ } }, "tags": [ - "Automation" + "Templates" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -23210,17 +23690,18 @@ ] } }, - "put": { - "description": "Update an existing template", - "operationId": "UpdateTemplate", + "post": { + "description": "Create a card table template with the default columns", + "operationId": "CreateTemplateLibraryCardTable", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateTemplateRequestContent" + "$ref": "#/components/schemas/CreateTemplateLibraryCardTableRequestContent" } } - } + }, + "required": true }, "parameters": [ { @@ -23233,24 +23714,15 @@ "description": "Basecamp account ID (numeric string)" }, "required": true - }, - { - "name": "templateId", - "in": "path", - "schema": { - "type": "integer", - "format": "int64" - }, - "required": true } ], "responses": { - "200": { - "description": "UpdateTemplate 200 response", + "201": { + "description": "CreateTemplateLibraryCardTable 201 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateTemplateResponseContent" + "$ref": "#/components/schemas/CreateTemplateLibraryCardTableResponseContent" } } } @@ -23275,22 +23747,22 @@ } } }, - "404": { - "description": "NotFoundError 404 response", + "422": { + "description": "ValidationError 422 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotFoundErrorResponseContent" + "$ref": "#/components/schemas/ValidationErrorResponseContent" } } } }, - "422": { - "description": "ValidationError 422 response", + "429": { + "description": "RateLimitError 429 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ValidationErrorResponseContent" + "$ref": "#/components/schemas/RateLimitErrorResponseContent" } } } @@ -23307,13 +23779,10 @@ } }, "tags": [ - "Automation" + "Templates" ], - "x-basecamp-idempotent": { - "natural": true - }, "x-basecamp-retry": { - "maxAttempts": 3, + "maxAttempts": 2, "baseDelayMs": 1000, "backoff": "exponential", "retryOn": [ @@ -23323,15 +23792,15 @@ } } }, - "/{accountId}/templates/{templateId}/project_constructions.json": { + "/{accountId}/template_library/copies.json": { "post": { - "description": "Create a project from a template (asynchronous)", - "operationId": "CreateProjectFromTemplate", + "description": "Start copying a to-do list or card table template into a project", + "operationId": "CreateTemplateLibraryCopy", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateProjectFromTemplateRequestContent" + "$ref": "#/components/schemas/CreateTemplateLibraryCopyRequestContent" } } }, @@ -23348,24 +23817,15 @@ "description": "Basecamp account ID (numeric string)" }, "required": true - }, - { - "name": "templateId", - "in": "path", - "schema": { - "type": "integer", - "format": "int64" - }, - "required": true } ], "responses": { "201": { - "description": "CreateProjectFromTemplate 201 response", + "description": "CreateTemplateLibraryCopy 201 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateProjectFromTemplateResponseContent" + "$ref": "#/components/schemas/CreateTemplateLibraryCopyResponseContent" } } } @@ -23390,12 +23850,22 @@ } } }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, "422": { - "description": "ValidationError 422 response", + "description": "PeopleConfirmationRequiredError 422 response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ValidationErrorResponseContent" + "$ref": "#/components/schemas/PeopleConfirmationRequiredErrorResponseContent" } } } @@ -23422,7 +23892,903 @@ } }, "tags": [ - "Automation" + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 2, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/template_library/copies/{copyId}": { + "get": { + "description": "Get the current status of a to-do list template copy", + "operationId": "GetTemplateLibraryCopy", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "copyId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "GetTemplateLibraryCopy 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTemplateLibraryCopyResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/template_library/todolists.json": { + "get": { + "description": "Get the account's to-do list templates", + "operationId": "GetTemplateLibraryTodolists", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "GetTemplateLibraryTodolists 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTemplateLibraryTodolistsResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + }, + "post": { + "description": "Create an empty to-do list template", + "operationId": "CreateTemplateLibraryTodolist", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplateLibraryTodolistRequestContent" + } + } + }, + "required": true + }, + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + } + ], + "responses": { + "201": { + "description": "CreateTemplateLibraryTodolist 201 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplateLibraryTodolistResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 2, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/templates.json": { + "get": { + "description": "List all templates visible to the current user\n\n**Pagination**: Uses Link header (RFC5988). Follow the `next` rel URL\nto fetch additional pages. X-Total-Count header provides total count.", + "operationId": "ListTemplates", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "status", + "in": "query", + "description": "active|archived|trashed", + "schema": { + "type": "string", + "description": "active|archived|trashed" + } + }, + { + "name": "page", + "in": "query", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "schema": { + "type": "integer", + "description": "Page number for paginating through results. Defaults to 1. A positive value selects exactly that page, not a starting offset; see SPEC section 8.", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "ListTemplates 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListTemplatesResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-pagination": { + "style": "link", + "totalCountHeader": "X-Total-Count", + "maxPageSize": 50 + }, + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + }, + "post": { + "description": "Create a new template", + "operationId": "CreateTemplate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplateRequestContent" + } + } + }, + "required": true + }, + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + } + ], + "responses": { + "201": { + "description": "CreateTemplate 201 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplateResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 2, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/templates/{templateId}": { + "delete": { + "description": "Delete a template (trash it)", + "operationId": "DeleteTemplate", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "templateId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "204": { + "description": "DeleteTemplate 204 response" + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-idempotent": { + "natural": true + }, + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + }, + "get": { + "description": "Get a single template by id", + "operationId": "GetTemplate", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "templateId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "GetTemplate 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTemplateResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + }, + "put": { + "description": "Update an existing template", + "operationId": "UpdateTemplate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTemplateRequestContent" + } + } + } + }, + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "templateId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "UpdateTemplate 200 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTemplateResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" + ], + "x-basecamp-idempotent": { + "natural": true + }, + "x-basecamp-retry": { + "maxAttempts": 3, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + } + } + }, + "/{accountId}/templates/{templateId}/project_constructions.json": { + "post": { + "description": "Create a project from a template (asynchronous)", + "operationId": "CreateProjectFromTemplate", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateProjectFromTemplateRequestContent" + } + } + }, + "required": true + }, + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Basecamp account ID (numeric string)", + "schema": { + "type": "string", + "pattern": "^[0-9]+$", + "description": "Basecamp account ID (numeric string)" + }, + "required": true + }, + { + "name": "templateId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + } + ], + "responses": { + "201": { + "description": "CreateProjectFromTemplate 201 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateProjectFromTemplateResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "422": { + "description": "ValidationError 422 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationErrorResponseContent" + } + } + } + }, + "429": { + "description": "RateLimitError 429 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RateLimitErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Templates" ], "x-basecamp-retry": { "maxAttempts": 2, @@ -23523,7 +24889,7 @@ } }, "tags": [ - "Automation" + "Templates" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -23538,7 +24904,7 @@ }, "/{accountId}/timesheet_entries/{entryId}": { "delete": { - "description": "Permanently delete a timesheet entry; answers 403 when the caller may not archive or trash it.", + "description": "Permanently delete a timesheet entry, which never appears in the trash and cannot be restored; this is the only way to remove one, since bc3 answers 403 to TrashRecording and ArchiveRecording for every timesheet entry, and it answers 403 when the caller may not remove the entry.", "operationId": "DestroyTimesheetEntry", "parameters": [ { @@ -27807,7 +29173,7 @@ } }, "tags": [ - "Automation" + "Webhooks" ], "x-basecamp-idempotent": { "natural": true @@ -27900,7 +29266,7 @@ } }, "tags": [ - "Automation" + "Webhooks" ], "x-basecamp-retry": { "maxAttempts": 3, @@ -28019,7 +29385,7 @@ } }, "tags": [ - "Automation" + "Webhooks" ], "x-basecamp-idempotent": { "natural": true @@ -28690,8 +30056,9 @@ "steps": { "type": "array", "items": { - "$ref": "#/components/schemas/CardStep" + "$ref": "#/components/schemas/Subtask" }, + "description": "The first 100 subtasks, embedded read-only. A card with more than 100\nreports the total in `subtasks_count`; fetch the rest from `subtasks_url`.", "x-go-type-skip-optional-pointer": true }, "boosts_count": { @@ -28700,6 +30067,18 @@ }, "boosts_url": { "type": "string" + }, + "subtasks_count": { + "type": "integer", + "description": "Subtask accounting (BC3 #12659). `subtasks_count` is the real total,\n`subtasks_completed_count` how many are done, and `subtasks_url` the\npaginated listing of all of them (`ListSubtasks`).", + "format": "int32" + }, + "subtasks_completed_count": { + "type": "integer", + "format": "int32" + }, + "subtasks_url": { + "type": "string" } }, "required": [ @@ -28870,7 +30249,7 @@ "updated_at" ] }, - "CardStep": { + "CardTable": { "type": "object", "properties": { "id": { @@ -28915,113 +30294,20 @@ "bookmark_url": { "type": "string" }, + "subscription_url": { + "type": "string" + }, "position": { "type": "integer", + "description": "Position on the project dock. Absent on a card table template, which the\nlibrary orders by title instead.", "format": "int32" }, - "due_on": { - "type": "string", - "x-go-type": "types.Date", - "x-go-type-import": { - "path": "github.com/basecamp/basecamp-sdk/go/pkg/types" - } - }, - "completed": { - "type": "boolean" - }, - "completed_at": { - "type": "string", - "x-go-type": "time.Time", - "x-go-type-import": { - "path": "time" - } - }, "parent": { "$ref": "#/components/schemas/RecordingParent" }, - "bucket": { - "$ref": "#/components/schemas/TodoBucket" - }, - "creator": { - "$ref": "#/components/schemas/Person" - }, - "completer": { - "$ref": "#/components/schemas/Person" - }, - "assignees": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Person" - }, - "x-go-type-skip-optional-pointer": true - }, - "completion_url": { - "type": "string" - } - }, - "required": [ - "app_url", - "bucket", - "created_at", - "creator", - "id", - "inherits_status", - "parent", - "status", - "title", - "type", - "updated_at", - "url", - "visible_to_clients" - ] - }, - "CardTable": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "status": { - "type": "string" - }, - "visible_to_clients": { - "type": "boolean" - }, - "created_at": { + "public_link_url": { "type": "string", - "x-go-type": "time.Time", - "x-go-type-import": { - "path": "time" - } - }, - "updated_at": { - "type": "string", - "x-go-type": "time.Time", - "x-go-type-import": { - "path": "time" - } - }, - "title": { - "type": "string" - }, - "inherits_status": { - "type": "boolean" - }, - "type": { - "type": "string" - }, - "url": { - "type": "string" - }, - "app_url": { - "type": "string" - }, - "bookmark_url": { - "type": "string" - }, - "subscription_url": { - "type": "string" + "description": "Public sharing URL. Absent for callers who may not share publicly, so the\nsame card table can carry it for one person and not another." }, "bucket": { "$ref": "#/components/schemas/TodoBucket" @@ -29885,7 +31171,7 @@ ] }, "CreateCardStepResponseContent": { - "$ref": "#/components/schemas/CardStep" + "$ref": "#/components/schemas/Subtask" }, "CreateChatbotRequestContent": { "type": "object", @@ -30367,15 +31653,65 @@ "url" ] }, + "CreateSubtaskRequestContent": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "due_on": { + "type": "string", + "x-go-type": "types.Date", + "x-go-type-import": { + "path": "github.com/basecamp/basecamp-sdk/go/pkg/types" + } + }, + "assignee_ids": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + } + }, + "required": [ + "title" + ] + }, + "CreateSubtaskResponseContent": { + "$ref": "#/components/schemas/Subtask" + }, + "CreateTemplateLibraryCardTableRequestContent": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The template's name. Write-only: the response carries it as `title`." + } + }, + "required": [ + "name" + ] + }, + "CreateTemplateLibraryCardTableResponseContent": { + "$ref": "#/components/schemas/CardTable" + }, "CreateTemplateLibraryCopyRequestContent": { "type": "object", "properties": { "template_recording_id": { "type": "integer", + "description": "The to-do list or card table in the library to copy.", + "format": "int64" + }, + "destination_project_id": { + "type": "integer", + "description": "The destination project. Basecamp resolves the container from the\ntemplate's kind, so a caller naming a project needs to know nothing about\ndocks or to-do sets. Supply this or destination_parent_id; if both are\nsent, destination_parent_id wins.", "format": "int64" }, "destination_parent_id": { "type": "integer", + "description": "The container to copy into, for a caller that already holds one: the\nproject's to-do set for a to-do list template, or its dock for a card\ntable. A caller who may not edit it gets 404, not 403.", "format": "int64" }, "adding_people_confirmed": { @@ -30384,13 +31720,31 @@ } }, "required": [ - "destination_parent_id", "template_recording_id" ] }, "CreateTemplateLibraryCopyResponseContent": { "$ref": "#/components/schemas/TemplateLibraryCopy" }, + "CreateTemplateLibraryTodolistRequestContent": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "What to call the template." + }, + "description": { + "type": "string", + "description": "Rich text describing the template." + } + }, + "required": [ + "name" + ] + }, + "CreateTemplateLibraryTodolistResponseContent": { + "$ref": "#/components/schemas/Todolist" + }, "CreateTemplateRequestContent": { "type": "object", "properties": { @@ -30408,6 +31762,30 @@ "CreateTemplateResponseContent": { "$ref": "#/components/schemas/Template" }, + "CreateTemplatificationRequestContent": { + "type": "object", + "properties": { + "template_name": { + "type": "string", + "description": "What to call the template. Defaults to the source recording's own title." + }, + "copy_comments": { + "type": "boolean", + "description": "Carry the comments across." + }, + "copy_assignments": { + "type": "boolean", + "description": "Carry assignees and the people involved across, adding them to the library\nif they are not already there." + }, + "move_cards_to_triage": { + "type": "boolean", + "description": "Gather the cards into Triage. Card tables only, and ignored otherwise." + } + } + }, + "CreateTemplatificationResponseContent": { + "$ref": "#/components/schemas/Templatification" + }, "CreateTimesheetEntryRequestContent": { "type": "object", "properties": { @@ -32062,7 +33440,7 @@ "$ref": "#/components/schemas/Card" }, "GetCardStepResponseContent": { - "$ref": "#/components/schemas/CardStep" + "$ref": "#/components/schemas/Subtask" }, "GetCardTableResponseContent": { "$ref": "#/components/schemas/CardTable" @@ -32425,15 +33803,24 @@ "GetSubscriptionResponseContent": { "$ref": "#/components/schemas/Subscription" }, + "GetSubtaskResponseContent": { + "$ref": "#/components/schemas/Subtask" + }, + "GetTemplateLibraryCardTablesResponseContent": { + "$ref": "#/components/schemas/TemplateLibraryCardTables" + }, "GetTemplateLibraryCopyResponseContent": { "$ref": "#/components/schemas/TemplateLibraryCopy" }, - "GetTemplateLibraryResponseContent": { - "$ref": "#/components/schemas/TemplateLibrary" + "GetTemplateLibraryTodolistsResponseContent": { + "$ref": "#/components/schemas/TemplateLibraryTodolists" }, "GetTemplateResponseContent": { "$ref": "#/components/schemas/Template" }, + "GetTemplatificationResponseContent": { + "$ref": "#/components/schemas/Templatification" + }, "GetTimesheetEntryResponseContent": { "$ref": "#/components/schemas/TimesheetEntry" }, @@ -33048,6 +34435,12 @@ "$ref": "#/components/schemas/ScheduleEntry" } }, + "ListSubtasksResponseContent": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subtask" + } + }, "ListTemplatesResponseContent": { "type": "array", "items": { @@ -33104,7 +34497,8 @@ "items": { "type": "string" }, - "description": "Array of readable_sgid values identifying the items to mark as read" + "maxItems": 500, + "description": "Array of readable_sgid values identifying the items to mark as read.\nAt most 500 per request." } }, "required": [ @@ -34755,6 +36149,18 @@ "boosts_url": { "type": "string" }, + "subtasks_count": { + "type": "integer", + "description": "Subtask count/URL. Carried on subtaskable recordings \u2014 to-dos and cards,\nwhose type-specific partials render with `subtaskable: true` (BC3\n#12659). Optional (absent on every other recording type and on the\nbase/webhook partial).", + "format": "int32" + }, + "subtasks_completed_count": { + "type": "integer", + "format": "int32" + }, + "subtasks_url": { + "type": "string" + }, "subject": { "type": "string", "description": "Message subject. Present on `Message` recordings \u2014 notably the account-wide\n`/messages.json` aggregate feed, whose message partial renders `subject`." @@ -35029,7 +36435,7 @@ }, "position": { "type": "integer", - "description": "0-indexed position", + "description": "The 1-based position to move it to (1 = top), the same `reposition_to`\na to-do uses. bc3's doc said \"Zero indexed\" until BC3 #12659 corrected\nit; the server never was.", "format": "int32" } }, @@ -35038,6 +36444,19 @@ "source_id" ] }, + "RepositionSubtaskRequestContent": { + "type": "object", + "properties": { + "position": { + "type": "integer", + "description": "The 1-based position to move it to", + "format": "int32" + } + }, + "required": [ + "position" + ] + }, "RepositionTodoRequestContent": { "type": "object", "properties": { @@ -35817,7 +37236,7 @@ ] }, "SetCardStepCompletionResponseContent": { - "$ref": "#/components/schemas/CardStep" + "$ref": "#/components/schemas/Subtask" }, "SetClientVisibilityRequestContent": { "type": "object", @@ -35881,6 +37300,111 @@ "url" ] }, + "Subtask": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "status": { + "type": "string" + }, + "visible_to_clients": { + "type": "boolean" + }, + "created_at": { + "type": "string", + "x-go-type": "time.Time", + "x-go-type-import": { + "path": "time" + } + }, + "updated_at": { + "type": "string", + "x-go-type": "time.Time", + "x-go-type-import": { + "path": "time" + } + }, + "title": { + "type": "string" + }, + "inherits_status": { + "type": "boolean" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + }, + "app_url": { + "type": "string" + }, + "bookmark_url": { + "type": "string" + }, + "position": { + "type": "integer", + "format": "int32" + }, + "due_on": { + "type": "string", + "x-go-type": "types.Date", + "x-go-type-import": { + "path": "github.com/basecamp/basecamp-sdk/go/pkg/types" + } + }, + "completed": { + "type": "boolean" + }, + "completed_at": { + "type": "string", + "x-go-type": "time.Time", + "x-go-type-import": { + "path": "time" + } + }, + "parent": { + "$ref": "#/components/schemas/RecordingParent" + }, + "bucket": { + "$ref": "#/components/schemas/TodoBucket" + }, + "creator": { + "$ref": "#/components/schemas/Person" + }, + "completer": { + "$ref": "#/components/schemas/Person" + }, + "assignees": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Person" + }, + "x-go-type-skip-optional-pointer": true + }, + "completion_url": { + "type": "string" + } + }, + "required": [ + "app_url", + "bucket", + "created_at", + "creator", + "id", + "inherits_status", + "parent", + "status", + "title", + "type", + "updated_at", + "url", + "visible_to_clients" + ] + }, "Template": { "type": "object", "properties": { @@ -35932,26 +37456,35 @@ "updated_at" ] }, - "TemplateLibrary": { + "TemplateLibraryCardTables": { "type": "object", "properties": { "bucket": { "$ref": "#/components/schemas/RecordingBucket" }, - "todoset": { - "$ref": "#/components/schemas/RecordingParent" + "kanban_boardset": { + "anyOf": [ + { + "$ref": "#/components/schemas/RecordingParent" + }, + { + "type": "null" + } + ], + "x-go-type": "RecordingParent" }, - "todolists": { + "card_tables": { "type": "array", "items": { - "$ref": "#/components/schemas/Todolist" - } + "$ref": "#/components/schemas/Recording" + }, + "description": "Active templates in title order, as recording projections: read one through\nGetCardTable to see its columns." } }, "required": [ "bucket", - "todolists", - "todoset" + "card_tables", + "kanban_boardset" ] }, "TemplateLibraryConfirmationPerson": { @@ -36008,6 +37541,9 @@ }, "destination_todolist": { "$ref": "#/components/schemas/Todolist" + }, + "destination_card_table": { + "$ref": "#/components/schemas/CardTable" } }, "required": [ @@ -36018,6 +37554,61 @@ "url" ] }, + "TemplateLibraryTodolists": { + "type": "object", + "properties": { + "bucket": { + "$ref": "#/components/schemas/RecordingBucket" + }, + "todoset": { + "$ref": "#/components/schemas/RecordingParent" + }, + "todolists": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Todolist" + } + } + }, + "required": [ + "bucket", + "todolists", + "todoset" + ] + }, + "Templatification": { + "type": "object", + "description": "The record of templatifying a recording into the library. Carries no\ndestination parent, unlike a copy: the destination is always the library.", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "status": { + "type": "string", + "description": "pending|processing|completed|failed" + }, + "source_recording_id": { + "type": "integer", + "format": "int64" + }, + "url": { + "type": "string" + }, + "destination_todolist": { + "$ref": "#/components/schemas/Todolist" + }, + "destination_card_table": { + "$ref": "#/components/schemas/CardTable" + } + }, + "required": [ + "id", + "source_recording_id", + "status", + "url" + ] + }, "TimelineAttachment": { "type": "object", "description": "A single timeline-event attachment. This is an optional-field superset over\ntwo wire variants \u2014 a full Upload recording (upload-kind recordings, rendered\nby BC3's uploads/_upload partial: the complete recording projection + rich-\ntext description + the upload body) and a rich-text attachment/blob partial\n(all other recordings) \u2014 so one element type decodes either. Every field is\noptional; a given instance populates only the fields of the variant it\nrepresents. The upload-recording variant enumerates the full documented\nprojection so no documented field is silently dropped on decode.", @@ -36508,12 +38099,24 @@ "boosts_url": { "type": "string" }, + "subtasks_count": { + "type": "integer", + "description": "Subtask accounting (BC3 #12659). `subtasks_count` is the real total,\n`subtasks_completed_count` how many are done, and `subtasks_url` the\npaginated listing of all of them (`ListSubtasks`).", + "format": "int32" + }, + "subtasks_completed_count": { + "type": "integer", + "format": "int32" + }, + "subtasks_url": { + "type": "string" + }, "steps": { "type": "array", "items": { - "$ref": "#/components/schemas/CardStep" + "$ref": "#/components/schemas/Subtask" }, - "description": "Steps embedded in the Todo response (BC5 addition). The shared\n`steps/step` jbuilder partial emits the same shape as `CardStep`,\nso the existing `CardStepList` is reused.", + "description": "The first 100 subtasks, embedded read-only (BC5 addition). The shared\n`subtasks/subtask` jbuilder partial emits the same `Subtask` shape a card\nembeds. A to-do with more than 100 reports the total in\n`subtasks_count`; fetch the rest from `subtasks_url`.", "x-go-type-skip-optional-pointer": true } }, @@ -37323,7 +38926,7 @@ } }, "UpdateCardStepResponseContent": { - "$ref": "#/components/schemas/CardStep" + "$ref": "#/components/schemas/Subtask" }, "UpdateChatbotRequestContent": { "type": "object", @@ -37744,6 +39347,31 @@ "UpdateSubscriptionResponseContent": { "$ref": "#/components/schemas/Subscription" }, + "UpdateSubtaskRequestContent": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "due_on": { + "type": "string", + "x-go-type": "types.Date", + "x-go-type-import": { + "path": "github.com/basecamp/basecamp-sdk/go/pkg/types" + } + }, + "assignee_ids": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + } + } + }, + "UpdateSubtaskResponseContent": { + "$ref": "#/components/schemas/Subtask" + }, "UpdateTemplateRequestContent": { "type": "object", "properties": { @@ -38479,6 +40107,12 @@ "url", "visible_to_clients" ] + }, + "CardStep": { + "$ref": "#/components/schemas/Subtask", + "deprecated": true, + "description": "Deprecated: renamed to Subtask, the same Kanban::Step record.", + "x-deprecated-reason": "renamed to Subtask, the same Kanban::Step record." } } } diff --git a/internal/mcpserver/testdata/catalog_snapshot.txt b/internal/mcpserver/testdata/catalog_snapshot.txt index e5caab5ce..c3a4dbea3 100644 --- a/internal/mcpserver/testdata/catalog_snapshot.txt +++ b/internal/mcpserver/testdata/catalog_snapshot.txt @@ -16,30 +16,38 @@ ACTIONS (RO = read-only): - update_project: Update an existing project == basecamp_todos -Todos, todolists, todolist groups, and todosets — plus each todolist's hill chart. +Todos, todolists, todolist groups, and todosets — plus each todolist's hill chart, and the subtasks on to-dos and cards. Gateway tool: call with {"action": "...", "params": {...}}. Call {"action": "describe", "params": {"action": "NAME"}} for an action's full parameter schema. ACTIONS (RO = read-only): +- complete_subtask: Mark a subtask as completed - complete_todo: Mark a todo as complete +- create_subtask: Create a subtask under a to-do or a card - create_todo: Create a new todo in a todolist - create_todolist: Create a new todolist in a todoset - create_todolist_group: Create a new group in a todolist - create_todoset_todo: Create a to-do directly under a project's to-do set, outside any to-do list +- delete_subtask: Delete a subtask - get_hill_chart (RO): Get the hill chart for a todoset +- get_subtask (RO): Get a subtask by ID - get_todo (RO): Get a single todo by id - get_todolist_or_group (RO): Get a single todolist or todolist group by id The endpoint is polymorphic, but it answers with one shape: BC3 has no group model, so both variants come back as a flat Todolist (see the Todolist shape) - get_todoset (RO): Get a todoset (container for todolists in a project) +- list_subtasks (RO, paginated): List a recording's subtasks, in position order - list_todolist_groups (RO, paginated): List groups in a todolist - list_todolists (RO, paginated): List todolists in a todoset - list_todos (RO, paginated): List todos in a todolist - replace_todo: Replace a todo with a new complete representation +- reposition_subtask: Move a subtask to a new position among its siblings - reposition_todo: Reposition a todo within its todolist - reposition_todolist: Reposition a to-do list within its to-do set - reposition_todolist_group: Reposition a todolist group +- uncomplete_subtask: Mark a subtask as not completed - uncomplete_todo: Mark a todo as incomplete - update_hill_chart_settings: Track or untrack todolists on a hill chart +- update_subtask: Update a subtask - update_todolist_or_group: Replace a todolist (or todolist group) with a new complete representation == basecamp_cards @@ -141,7 +149,7 @@ Call {"action": "describe", "params": {"action": "NAME"}} for an action's full p ACTIONS (RO = read-only): - create_schedule_entry: Create a new schedule entry - create_timesheet_entry: Create a timesheet entry on a recording -- destroy_timesheet_entry: Permanently delete a timesheet entry; answers 403 when the caller may not archive or trash it +- destroy_timesheet_entry: Permanently delete a timesheet entry, which never appears in the trash and cannot be restored; this is the only way to remove one, since bc3 answers 403 to TrashRecording and ArchiveRecording for every timesheet entry, and it answers 403 when the caller may not remove the entry - get_calendar (RO): Get a calendar by its bucket id - get_project_timesheet (RO, paginated): Get timesheet for a specific project - get_recording_timesheet (RO, paginated): Get timesheet for a specific recording @@ -218,19 +226,22 @@ ACTIONS (RO = read-only): - update_subscription: Update subscriptions by adding or removing specific users == basecamp_automation -Automatic check-ins (questionnaires, questions, answers, reminders), project templates, webhooks, lineup markers, dock tools, recording lifecycle (archive/trash), change events, and search. +Automatic check-ins (questionnaires, questions, answers, reminders), project templates and the template library, webhooks, lineup markers, dock tools, recording lifecycle (archive/trash), change events, and search. Gateway tool: call with {"action": "...", "params": {...}}. Call {"action": "describe", "params": {"action": "NAME"}} for an action's full parameter schema. ACTIONS (RO = read-only): -- archive_recording: Archive a recording +- archive_recording: Archive a recording; bc3 answers 403 for types it never lets be archived, timesheet entries among them - create_answer: Create a new answer for a question - create_lineup_marker: Create a new lineup marker - create_project_from_template: Create a project from a template (asynchronous) - create_question: Create a new question in a questionnaire - create_template: Create a new template -- create_template_library_copy: Start copying a to-do list template into a project +- create_template_library_card_table: Create a card table template with the default columns +- create_template_library_copy: Start copying a to-do list or card table template into a project +- create_template_library_todolist: Create an empty to-do list template +- create_templatification: Templatify a to-do list or card table - create_tool: Create a tool in a project dock - create_webhook: Create a new webhook for a project - delete_lineup_marker: Delete a lineup marker @@ -247,8 +258,10 @@ ACTIONS (RO = read-only): - get_questionnaire (RO): Get a questionnaire (automatic check-ins container) by id - get_search_metadata (RO): Get search metadata (available filter options) - get_template (RO): Get a single template by id -- get_template_library (RO): Get the account's to-do list template library +- get_template_library_card_tables (RO): Get the account's card table templates - get_template_library_copy (RO): Get the current status of a to-do list template copy +- get_template_library_todolists (RO): Get the account's to-do list templates +- get_templatification (RO): Get a templatification - get_tool (RO): Get a dock tool by id - get_webhook (RO): Get a single webhook by id - list_answers (RO, paginated): List all answers for a question @@ -264,7 +277,7 @@ ACTIONS (RO = read-only): - resume_question: Resume a paused check-in question (resumes sending reminders) - search (RO, paginated): Search for content across the account - spotlight_recording: Put a recording's card in the spotlight area on its project or template home page -- trash_recording: Trash a recording +- trash_recording: Trash a recording; bc3 answers 403 for types it never lets be trashed, timesheet entries among them (DestroyTimesheetEntry removes those, permanently) - unarchive_recording: Unarchive a recording (restore to active status) - unspotlight_recording: Remove a recording from the spotlight area - update_answer: Update an existing answer diff --git a/internal/version/sdk-provenance.json b/internal/version/sdk-provenance.json index d25aac38f..72ff220a7 100644 --- a/internal/version/sdk-provenance.json +++ b/internal/version/sdk-provenance.json @@ -1,13 +1,13 @@ { "sdk": { "module": "github.com/basecamp/basecamp-sdk/go", - "version": "v0.19.0", - "revision": "6abe227204a4", - "updated_at": "2026-09-16T21:15:28Z" + "version": "v0.21.0", + "revision": "2e4395950e18", + "updated_at": "2026-09-30T20:27:58Z" }, "api": { "repo": "basecamp/bc3", - "revision": "c680233ba0e7784f08e86405a7319d7ece9cb267", - "synced_at": "2026-09-02" + "revision": "66d387b62fb9ff968c5272b9cfec538b598ec05d", + "synced_at": "2026-09-15" } } diff --git a/nix/package.nix b/nix/package.nix index 82e2a2522..55cd4492f 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -8,7 +8,7 @@ buildGoModule.override { go = go_1_26; } (finalAttrs: { src = lib.cleanSource ./..; # To update: set to lib.fakeHash, run `nix build`, use the hash from the error. - vendorHash = "sha256-fbSMybSFUlSHIE8/aqLH/QCu+Q3cvJV/qpBAKz7VAZI="; + vendorHash = "sha256-P4HkRXkm8TXTwCSU5Hzi4INqkbeaCoquiwg4YICm80w="; subPackages = [ "cmd/basecamp" ];