This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.
PUT
/
v1
/
external
/
learnhub
/
assignments
/
{id}
Replace assignment
curl --request PUT \ --url https://api.soludesks.com/v1/external/learnhub/assignments/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Final project", "description": "Submit your work.", "questions": []}'
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SoluDesks APIs","description":"Developer documentation for SoluDesks APIs.","colors":{"primary":"#0ea5e9","light":"#38bdf8","dark":"#0369a1"},"logo":{"light":"https://mintcdn.com/tses/xQ1Aa5t-huIoOO-_/images/soludesks-logo-nav.png?fit=max\u0026auto=format\u0026n=xQ1Aa5t-huIoOO-_\u0026q=85\u0026s=b3286b7169d48ae0c3c2e4ef19067472","dark":"https://mintcdn.com/tses/xQ1Aa5t-huIoOO-_/images/soludesks-logo-nav.png?fit=max\u0026auto=format\u0026n=xQ1Aa5t-huIoOO-_\u0026q=85\u0026s=b3286b7169d48ae0c3c2e4ef19067472","href":"/"},"favicon":"https://mintcdn.com/tses/xQ1Aa5t-huIoOO-_/images/soludesks-logo.png?fit=max\u0026auto=format\u0026n=xQ1Aa5t-huIoOO-_\u0026q=85\u0026s=8bcea94ef6ecd82e5079e6bf8e3c7e9f","api":{"playground":{"display":"interactive"}},"search":{"prompt":"Search SoluDesks APIs, LearnHub, courses..."},"seo":{"metatags":{"og:site_name":"SoluDesks APIs Documentation","og:locale":"en_NG","twitter:card":"summary_large_image","robots":"index, follow","googlebot":"index, follow","keywords":"SoluDesks API, SoluDesks APIs, LearnHub endpoints, course API, LMS API, business operations API"},"indexing":"navigable"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tses","hasAudioNarration":false,"actualSubdomain":"tses","customDomains":["docs.soludesks.com"],"gitSource":{"type":"github","owner":"sissltd","repo":"soludesks-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ab2448f2439612f6630bca6","collectionId":"979913ff-aaf5-4349-ace1-71eba5c0d4eb","liveDeploymentHistoryId":"6ab2448f2439612f6630bca6","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ab2448f2439612f6630bca6","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":50},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Uploads","count":7},{"language":"default","tag":"Assessments","count":6},{"language":"default","tag":"Assignments","count":6},{"language":"default","tag":"Categories","count":6},{"language":"default","tag":"Courses","count":6},{"language":"default","tag":"Lessons","count":6},{"language":"default","tag":"Quizzes","count":6},{"language":"default","tag":"Sections","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/assignments/update-assignment","slug":"/api-reference/assignments/update-assignment","pageMetadata":{"title":"Replace Assignment","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/assignments/{id}","description":"Replace assignment through SoluDesks APIs.\n\nThis resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.","href":"/api-reference/assignments/update-assignment"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Replace assignment through SoluDesks APIs.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Replace Assignment","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/assignments/{id}","description":"Replace assignment through SoluDesks APIs.\n\nThis resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.","href":"/api-reference/assignments/update-assignment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"v1_external_learnhub_assignments_update","description":"Replace assignment through SoluDesks APIs.\n\nThis resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.","parameters":["54e0bbf9-6f61-41b8-af70-cee6f2ff0090"],"tags":["Assignments"],"requestBody":"a5acc45f-f43b-42aa-89df-c76c5cbd9ca0","security":["8551f097-c089-4a61-9e46-6ae59f1e332c"],"responses":{"200":"51aead3e-d225-4617-99ca-8de5d44ea906","400":"8b147ea0-0fc8-4c09-9ac1-ced5f65cc14b","401":"c333cc04-c7b2-4f95-a022-cc52665f1e78","403":"5cac0e8b-4412-4eb5-a3c8-1102ea9f651a","404":"aaa2023e-c515-4864-8133-1e09117f7af0","409":"0bfeaa59-c91a-4a8e-aa5d-8c3513281288","422":"c97014c8-b1b1-4663-86a3-790e233c2ea0","429":"f57ef159-e12a-48c5-b7b4-af8f36ffe628","500":"68d106be-1d53-4905-b34e-cfdf3b4bcdc0"},"summary":"Replace assignment","method":"put","type":"path","servers":["f5023304-43c5-45b9-8b1d-7d2b85dcf198","5eface98-fa0b-4310-adbe-7a357234de8b"],"path":"/v1/external/learnhub/assignments/{id}","baseUrlOptions":["https://api.soludesks.com","https://staging.api.soludesks.com"],"title":"Replace assignment","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"54e0bbf9-6f61-41b8-af70-cee6f2ff0090":{"in":"path","name":"id","schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"required":true}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"description":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"description","typeLabel":"string"},"class_id":{"type":"string","format":"uuid","writeOnly":true,"isRequired":true,"uniqueKey":"class_id","typeLabel":"string\u003cuuid>"},"duration_hours":{"type":"integer","maximum":2147483647,"minimum":0,"uniqueKey":"duration_hours","typeLabel":"integer"},"duration_minutes":{"type":"integer","maximum":2147483647,"minimum":0,"uniqueKey":"duration_minutes","typeLabel":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string","description":"* `DRAFT` - Draft\n* `PUBLISHED` - Published\n* `ARCHIVED` - Archived","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"submission_date":{"oneOf":[{"type":"string","format":"date","uniqueKey":"submission_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","uniqueKey":"submission_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"submission_date","typeLabel":"string\u003cdate> | null"},"course_id":{"oneOf":[{"type":"string","format":"uuid","writeOnly":true,"uniqueKey":"course_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","writeOnly":true,"uniqueKey":"course_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"course_id","typeLabel":"string\u003cuuid> | null"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"questions.items.[INDEX].id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"questions.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"questions.items.[INDEX].id","typeLabel":"string\u003cuuid> | null"},"question_text":{"type":"string","minLength":1,"uniqueKey":"questions.items.[INDEX].question_text","typeLabel":"string"},"points":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$","uniqueKey":"questions.items.[INDEX].points","typeLabel":"string\u003cdecimal>"},"question_type":{"enum":["MULTIPLE_CHOICE","SINGLE_CHOICE","SHORT_ANSWER","LONG_ANSWER"],"type":"string","description":"* `MULTIPLE_CHOICE` - Multiple Choice\n* `SINGLE_CHOICE` - Single Choice\n* `SHORT_ANSWER` - Short Answer\n* `LONG_ANSWER` - Long Answer","uniqueKey":"questions.items.[INDEX].question_type","typeLabel":"enum\u003cstring>"},"options":{"oneOf":[{},{"type":"null","uniqueKey":"questions.items.[INDEX].options.oneOf.1","typeLabel":"null"}],"uniqueKey":"questions.items.[INDEX].options","typeLabel":"null"},"correct_answer":{"oneOf":[{},{"type":"null","uniqueKey":"questions.items.[INDEX].correct_answer.oneOf.1","typeLabel":"null"}],"uniqueKey":"questions.items.[INDEX].correct_answer","typeLabel":"null"},"order":{"type":"integer","uniqueKey":"questions.items.[INDEX].order","typeLabel":"integer"}},"uniqueKey":"questions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"questions","typeLabel":"object[]"}},"required":["class_id","description","title"],"uniqueKey":"","typeLabel":"object"},"examples":{"assignment":{"title":"assignment","value":{"title":"Final project","description":"Submit your work.","questions":[]}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"51aead3e-d225-4617-99ca-8de5d44ea906":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"title":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.title","typeLabel":"string"},"description":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.description","typeLabel":"string"},"duration_hours":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"data.duration_hours","typeLabel":"integer"},"duration_minutes":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"data.duration_minutes","typeLabel":"integer"},"status":{"type":"string","description":"* `DRAFT` - Draft\n* `PUBLISHED` - Published\n* `ARCHIVED` - Archived","enum":["DRAFT","PUBLISHED","ARCHIVED"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"total_points":{"type":"string","format":"decimal","pattern":"^-?\\d{0,8}(?:\\.\\d{0,2})?$","readOnly":true,"isRequired":true,"uniqueKey":"data.total_points","typeLabel":"string\u003cdecimal>"},"submission_date":{"oneOf":[{"type":"string","format":"date","readOnly":true,"isRequired":true,"uniqueKey":"data.submission_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","readOnly":true,"isRequired":true,"uniqueKey":"data.submission_date.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.submission_date","typeLabel":"string\u003cdate> | null"},"class_id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"data.class_id","typeLabel":"string\u003cuuid>"},"learning_class":{"type":"object","required":["id","name","status"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"data.learning_class.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.learning_class.name","typeLabel":"string"},"status":{"type":"string","description":"* `ACTIVE` - Active\n* `CLOSED` - Closed","enum":["ACTIVE","CLOSED"],"isRequired":true,"uniqueKey":"data.learning_class.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.learning_class","typeLabel":"object"},"course_id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"data.course_id","typeLabel":"string\u003cuuid>"},"course":{"type":"object","required":["categories","cover_image_url","created_datetime","description","has_enrollments","id","instructors","level","name","overall_duration_seconds","preview_video_error","preview_video_has_subtitles","preview_video_playback_endpoint","preview_video_ready","preview_video_status","preview_video_url","quizzes_count","requirements","source","status","updated_datetime"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"data.course.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.name","typeLabel":"string"},"level":{"type":"string","description":"* `beginner` - Beginner\n* `intermediate` - Intermediate\n* `advanced` - Advanced","enum":["beginner","intermediate","advanced"],"isRequired":true,"uniqueKey":"data.course.level","typeLabel":"enum\u003cstring>"},"description":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.description","typeLabel":"string"},"source":{"oneOf":[{"type":"string","description":"* `MANUAL_CREATION` - Manual Creation\n* `AI_GENERATED` - AI Generated\n* `DOCUMENT_EXTRACTION` - Document Extraction","enum":["MANUAL_CREATION","AI_GENERATED","DOCUMENT_EXTRACTION"],"isRequired":true,"uniqueKey":"data.course.source.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":[null],"isRequired":true,"uniqueKey":"data.course.source.oneOf.1","typeLabel":"any"},{"type":"null","isRequired":true,"uniqueKey":"data.course.source.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.course.source","typeLabel":"enum\u003cstring> | any | null"},"requirements":{"type":"string","readOnly":true,"description":"Optional prerequisites or requirements for the course.","isRequired":true,"uniqueKey":"data.course.requirements","typeLabel":"string"},"status":{"type":"string","description":"* `DRAFT` - Draft\n* `PUBLISHED` - Published\n* `ARCHIVED` - Archived","enum":["DRAFT","PUBLISHED","ARCHIVED"],"isRequired":true,"uniqueKey":"data.course.status","typeLabel":"enum\u003cstring>"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"data.course.categories.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.categories.items.[INDEX].name","typeLabel":"string"},"created_datetime":{"type":"string","format":"date-time","readOnly":true,"description":"datetime of object creation","isRequired":true,"uniqueKey":"data.course.categories.items.[INDEX].created_datetime","typeLabel":"string\u003cdate-time>"},"updated_datetime":{"type":"string","format":"date-time","readOnly":true,"description":"datetime of object update","isRequired":true,"uniqueKey":"data.course.categories.items.[INDEX].updated_datetime","typeLabel":"string\u003cdate-time>"}},"required":["created_datetime","id","name","updated_datetime"],"uniqueKey":"data.course.categories.items.[INDEX]","typeLabel":"object"},"readOnly":true,"isRequired":true,"uniqueKey":"data.course.categories","typeLabel":"object[]"},"has_enrollments":{"type":"boolean","readOnly":true,"isRequired":true,"uniqueKey":"data.course.has_enrollments","typeLabel":"boolean"},"quizzes_count":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"data.course.quizzes_count","typeLabel":"integer"},"cover_image_url":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.cover_image_url","typeLabel":"string"},"preview_video_url":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_url","typeLabel":"string"},"preview_video_status":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_status","typeLabel":"string"},"preview_video_ready":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_ready","typeLabel":"string"},"preview_video_error":{"oneOf":[{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_error.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.course.preview_video_error","typeLabel":"string | null"},"preview_video_has_subtitles":{"type":"boolean","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_has_subtitles","typeLabel":"boolean"},"preview_video_playback_endpoint":{"oneOf":[{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_playback_endpoint.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"isRequired":true,"uniqueKey":"data.course.preview_video_playback_endpoint.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.course.preview_video_playback_endpoint","typeLabel":"string | null"},"instructors":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.course.instructors","typeLabel":"string"},"overall_duration_seconds":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"data.course.overall_duration_seconds","typeLabel":"integer"},"created_datetime":{"type":"string","format":"date-time","readOnly":true,"description":"datetime of object creation","isRequired":true,"uniqueKey":"data.course.created_datetime","typeLabel":"string\u003cdate-time>"},"updated_datetime":{"type":"string","format":"date-time","readOnly":true,"description":"datetime of object update","isRequired":true,"uniqueKey":"data.course.updated_datetime","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data.course","typeLabel":"object"},"questions_count":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.questions_count","typeLabel":"string"},"created_datetime":{"type":"string","format":"date-time","readOnly":true,"description":"datetime of object creation","isRequired":true,"uniqueKey":"data.created_datetime","typeLabel":"string\u003cdate-time>"},"updated_datetime":{"type":"string","format":"date-time","readOnly":true,"description":"datetime of object update","isRequired":true,"uniqueKey":"data.updated_datetime","typeLabel":"string\u003cdate-time>"},"questions":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"data.questions","typeLabel":"string"}},"required":["class_id","course","course_id","created_datetime","description","duration_hours","duration_minutes","id","learning_class","questions","questions_count","status","submission_date","title","total_points","updated_datetime"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"required":["code","data","errors","message","status","success"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":123,"success":true,"code":"\u003cstring>","message":"\u003cstring>","data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","title":"\u003cstring>","description":"\u003cstring>","duration_hours":123,"duration_minutes":123,"status":"DRAFT","total_points":"\u003cstring>","submission_date":"2023-12-25","class_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","learning_class":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","status":"ACTIVE"},"course_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","course":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","level":"beginner","description":"\u003cstring>","source":"MANUAL_CREATION","requirements":"\u003cstring>","status":"DRAFT","categories":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","created_datetime":"2023-11-07T05:31:56Z","updated_datetime":"2023-11-07T05:31:56Z"}],"has_enrollments":true,"quizzes_count":123,"cover_image_url":"\u003cstring>","preview_video_url":"\u003cstring>","preview_video_status":"\u003cstring>","preview_video_ready":"\u003cstring>","preview_video_error":"\u003cstring>","preview_video_has_subtitles":true,"preview_video_playback_endpoint":"\u003cstring>","instructors":"\u003cstring>","overall_duration_seconds":123,"created_datetime":"2023-11-07T05:31:56Z","updated_datetime":"2023-11-07T05:31:56Z"},"questions_count":"\u003cstring>","created_datetime":"2023-11-07T05:31:56Z","updated_datetime":"2023-11-07T05:31:56Z","questions":"\u003cstring>"},"errors":[{}]}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"8b147ea0-0fc8-4c09-9ac1-ced5f65cc14b":{"description":"Bad request.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":400,"success":false,"code":"REQUEST_FAILED","message":"Bad request.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"c333cc04-c7b2-4f95-a022-cc52665f1e78":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":401,"success":false,"code":"REQUEST_FAILED","message":"Missing or invalid API key.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"5cac0e8b-4412-4eb5-a3c8-1102ea9f651a":{"description":"Permission denied, inactive service provider, or unsupported key mode.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":403,"success":false,"code":"REQUEST_FAILED","message":"Permission denied, inactive service provider, or unsupported key mode.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"aaa2023e-c515-4864-8133-1e09117f7af0":{"description":"Resource not found.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":404,"success":false,"code":"REQUEST_FAILED","message":"Resource not found.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"0bfeaa59-c91a-4a8e-aa5d-8c3513281288":{"description":"Idempotency conflict or request already in progress.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":409,"success":false,"code":"REQUEST_FAILED","message":"Idempotency conflict or request already in progress.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"c97014c8-b1b1-4663-86a3-790e233c2ea0":{"description":"Validation failed.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":422,"success":false,"code":"REQUEST_FAILED","message":"Validation failed.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"f57ef159-e12a-48c5-b7b4-af8f36ffe628":{"description":"Rate limit exceeded.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":429,"success":false,"code":"REQUEST_FAILED","message":"Rate limit exceeded.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"68d106be-1d53-4905-b34e-cfdf3b4bcdc0":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"object","required":["status","success","code","message","data","errors"],"properties":{"status":{"type":"integer","example":422,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"VALIDATION_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Some fields contain invalid values.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"oneOf":[{"example":null,"isRequired":true},{"example":null,"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"null"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"title","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","example":"required","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"This field is required.","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"error":{"title":"error","value":{"status":500,"success":false,"code":"REQUEST_FAILED","message":"Internal server error.","data":null,"errors":[]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"8551f097-c089-4a61-9e46-6ae59f1e332c":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"External API key. Format: Bearer \u003cAPI_KEY>","scopes":[]}}},"servers":{"f5023304-43c5-45b9-8b1d-7d2b85dcf198":{"url":"https://api.soludesks.com","description":"SoluDesks production API"},"5eface98-fa0b-4310-adbe-7a357234de8b":{"url":"https://staging.api.soludesks.com","description":"SoluDesks staging API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"External API key. Format: Bearer \u003cAPI_KEY>","scopes":[]},"schema":{"title":"Authorization","type":"string","description":"External API key. Format: Bearer \u003cAPI_KEY>","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"Authorization"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"tses","siteName":"SoluDesks APIs","title":"Replace Assignment - SoluDesks APIs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-19T21:21:14.348Z","originalFileLocation":"api-reference/assignments/update-assignment.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Replace assignment through SoluDesks APIs. This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.\">\u003cmeta data-mint-head name=\"keywords\" content=\"SoluDesks API, SoluDesks APIs, LearnHub endpoints, course API, LMS API, business operations API\">\u003cmeta data-mint-head name=\"application-name\" content=\"SoluDesks APIs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace Assignment - SoluDesks APIs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replace assignment through SoluDesks APIs. This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SoluDesks APIs Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.soludesks.com/api-reference/assignments/update-assignment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tses.mintlify.app/_mintlify/api/og/v2?division=Assignments\u0026amp;title=Replace+Assignment\u0026amp;description=Replace+assignment+through+SoluDesks+APIs.%0A%0AThis+resource+is+tenant-only.+Tenant+API+keys+can+use+it+when+the+key+has+the+required+LearnHub+permissions.+Service\u0026amp;theme=3277d967caecce542ec5121c\u0026amp;signature=14812d5de1717db1874a4f0773c9a96345b9f05c5d5f82a826e0b10b1a0b682d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Replace Assignment - SoluDesks APIs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replace assignment through SoluDesks APIs. This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tses.mintlify.app/_mintlify/api/og/v2?division=Assignments\u0026amp;title=Replace+Assignment\u0026amp;description=Replace+assignment+through+SoluDesks+APIs.%0A%0AThis+resource+is+tenant-only.+Tenant+API+keys+can+use+it+when+the+key+has+the+required+LearnHub+permissions.+Service\u0026amp;theme=3277d967caecce542ec5121c\u0026amp;signature=14812d5de1717db1874a4f0773c9a96345b9f05c5d5f82a826e0b10b1a0b682d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tses/bm2YeeT6EUyDFm2A/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SoluDesks APIs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0ea5e9\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_NG\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.soludesks.com/api-reference/assignments/update-assignment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/assignments/update-assignment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.soludesks.com/#organization\",\"name\":\"SoluDesks APIs\",\"url\":\"https://docs.soludesks.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tses/xQ1Aa5t-huIoOO-_/images/soludesks-logo-nav.png?fit=max\u0026auto=format\u0026n=xQ1Aa5t-huIoOO-_\u0026q=85\u0026s=b3286b7169d48ae0c3c2e4ef19067472\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.soludesks.com#website\",\"name\":\"SoluDesks APIs\",\"url\":\"https://docs.soludesks.com\",\"publisher\":{\"@id\":\"https://docs.soludesks.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment#webpage\",\"url\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment\",\"name\":\"Replace Assignment\",\"description\":\"Replace assignment through SoluDesks APIs. This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.\",\"dateModified\":\"2026-09-19T21:21:14.348Z\",\"isPartOf\":{\"@id\":\"https://docs.soludesks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Assignments\",\"item\":\"https://docs.soludesks.com/api-reference/assignments/list-assignments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Replace Assignment\",\"item\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment#apireference\",\"headline\":\"Replace Assignment\",\"name\":\"Replace Assignment\",\"description\":\"Replace assignment through SoluDesks APIs. This resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.\",\"url\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.soludesks.com/api-reference/assignments/update-assignment#webpage\"},\"dateModified\":\"2026-09-19T21:21:14.348Z\",\"publisher\":{\"@id\":\"https://docs.soludesks.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.soludesks.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SoluDesks APIs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SoluDesks APIs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Introduction","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Categories","pages":[{"title":"List Categories","openapi":"api-reference/openapi.json GET /v1/external/learnhub/categories","href":"/api-reference/categories/list-categories"},{"title":"Create Category","openapi":"api-reference/openapi.json POST /v1/external/learnhub/categories","href":"/api-reference/categories/create-category"},{"title":"Retrieve Category","openapi":"api-reference/openapi.json GET /v1/external/learnhub/categories/{id}","href":"/api-reference/categories/get-category"},{"title":"Replace Category","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/categories/{id}","href":"/api-reference/categories/update-category"},{"title":"Update Category","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/categories/{id}","href":"/api-reference/categories/patch-category"},{"title":"Delete Category","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/categories/{id}","href":"/api-reference/categories/delete-category"}]},{"group":"Courses","pages":[{"title":"List Courses","openapi":"api-reference/openapi.json GET /v1/external/learnhub/courses","href":"/api-reference/courses/list-courses"},{"title":"Create Course","openapi":"api-reference/openapi.json POST /v1/external/learnhub/courses","href":"/api-reference/courses/create-course"},{"title":"Retrieve Course","openapi":"api-reference/openapi.json GET /v1/external/learnhub/courses/{id}","href":"/api-reference/courses/get-course"},{"title":"Replace Course","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/courses/{id}","href":"/api-reference/courses/update-course"},{"title":"Update Course","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/courses/{id}","href":"/api-reference/courses/patch-course"},{"title":"Delete Course","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/courses/{id}","href":"/api-reference/courses/delete-course"}]},{"group":"Sections","pages":[{"title":"List Sections","openapi":"api-reference/openapi.json GET /v1/external/learnhub/courses/{course_id}/sections","href":"/api-reference/sections/list-sections"},{"title":"Create Section","openapi":"api-reference/openapi.json POST /v1/external/learnhub/courses/{course_id}/sections","href":"/api-reference/sections/create-section"},{"title":"Retrieve Section","openapi":"api-reference/openapi.json GET /v1/external/learnhub/courses/{course_id}/sections/{id}","href":"/api-reference/sections/get-section"},{"title":"Replace Section","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/courses/{course_id}/sections/{id}","href":"/api-reference/sections/update-section"},{"title":"Update Section","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/courses/{course_id}/sections/{id}","href":"/api-reference/sections/patch-section"},{"title":"Delete Section","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/courses/{course_id}/sections/{id}","href":"/api-reference/sections/delete-section"}]},{"group":"Lessons","pages":[{"title":"List Lessons","openapi":"api-reference/openapi.json GET /v1/external/learnhub/courses/{course_id}/sections/{section_id}/lessons","href":"/api-reference/lessons/list-lessons"},{"title":"Create Lesson","openapi":"api-reference/openapi.json POST /v1/external/learnhub/courses/{course_id}/sections/{section_id}/lessons","href":"/api-reference/lessons/create-lesson"},{"title":"Retrieve Lesson","openapi":"api-reference/openapi.json GET /v1/external/learnhub/courses/{course_id}/sections/{section_id}/lessons/{id}","href":"/api-reference/lessons/get-lesson"},{"title":"Replace Lesson","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/courses/{course_id}/sections/{section_id}/lessons/{id}","href":"/api-reference/lessons/update-lesson"},{"title":"Update Lesson","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/courses/{course_id}/sections/{section_id}/lessons/{id}","href":"/api-reference/lessons/patch-lesson"},{"title":"Delete Lesson","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/courses/{course_id}/sections/{section_id}/lessons/{id}","href":"/api-reference/lessons/delete-lesson"}]},{"group":"Assessments","pages":[{"title":"List Assessments","openapi":"api-reference/openapi.json GET /v1/external/learnhub/assessments","href":"/api-reference/assessments/list-assessments"},{"title":"Create Assessment","openapi":"api-reference/openapi.json POST /v1/external/learnhub/assessments","href":"/api-reference/assessments/create-assessment"},{"title":"Retrieve Assessment","openapi":"api-reference/openapi.json GET /v1/external/learnhub/assessments/{id}","href":"/api-reference/assessments/get-assessment"},{"title":"Replace Assessment","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/assessments/{id}","href":"/api-reference/assessments/update-assessment"},{"title":"Update Assessment","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/assessments/{id}","href":"/api-reference/assessments/patch-assessment"},{"title":"Delete Assessment","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/assessments/{id}","href":"/api-reference/assessments/delete-assessment"}]},{"group":"Assignments","pages":[{"title":"List Assignments","openapi":"api-reference/openapi.json GET /v1/external/learnhub/assignments","href":"/api-reference/assignments/list-assignments"},{"title":"Create Assignment","openapi":"api-reference/openapi.json POST /v1/external/learnhub/assignments","href":"/api-reference/assignments/create-assignment"},{"title":"Retrieve Assignment","openapi":"api-reference/openapi.json GET /v1/external/learnhub/assignments/{id}","description":"Retrieve assignment through SoluDesks APIs.\n\nThis resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.","href":"/api-reference/assignments/get-assignment"},{"title":"Replace Assignment","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/assignments/{id}","href":"/api-reference/assignments/update-assignment"},{"title":"Update Assignment","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/assignments/{id}","description":"Update assignment through SoluDesks APIs.\n\nThis resource is tenant-only. Tenant API keys can use it when the key has the required LearnHub permissions. Service-provider API keys are not supported for this resource.","href":"/api-reference/assignments/patch-assignment"},{"title":"Delete Assignment","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/assignments/{id}","href":"/api-reference/assignments/delete-assignment"}]},{"group":"Quizzes","pages":[{"title":"List Quizzes","openapi":"api-reference/openapi.json GET /v1/external/learnhub/quizzes","href":"/api-reference/quizzes/list-quizzes"},{"title":"Create Quiz","openapi":"api-reference/openapi.json POST /v1/external/learnhub/quizzes","href":"/api-reference/quizzes/create-quiz"},{"title":"Retrieve Quiz","openapi":"api-reference/openapi.json GET /v1/external/learnhub/quizzes/{id}","href":"/api-reference/quizzes/get-quiz"},{"title":"Replace Quiz","openapi":"api-reference/openapi.json PUT /v1/external/learnhub/quizzes/{id}","href":"/api-reference/quizzes/update-quiz"},{"title":"Update Quiz","openapi":"api-reference/openapi.json PATCH /v1/external/learnhub/quizzes/{id}","href":"/api-reference/quizzes/patch-quiz"},{"title":"Delete Quiz","openapi":"api-reference/openapi.json DELETE /v1/external/learnhub/quizzes/{id}","href":"/api-reference/quizzes/delete-quiz"}]},{"group":"Uploads","pages":[{"title":"List Uploads","openapi":"api-reference/openapi.json GET /v1/external/learnhub/uploads","href":"/api-reference/uploads/list-uploads"},{"title":"Create Upload","openapi":"api-reference/openapi.json POST /v1/external/learnhub/uploads","href":"/api-reference/uploads/create-upload"},{"title":"Retrieve Upload","openapi":"api-reference/openapi.json GET /v1/external/learnhub/uploads/{id}","href":"/api-reference/uploads/get-upload"},{"title":"Sign Upload Parts","openapi":"api-reference/openapi.json POST /v1/external/learnhub/uploads/{id}/sign-parts","href":"/api-reference/uploads/sign-upload-parts"},{"title":"List Upload Parts","openapi":"api-reference/openapi.json GET /v1/external/learnhub/uploads/{id}/parts","href":"/api-reference/uploads/list-upload-parts"},{"title":"Complete Upload","openapi":"api-reference/openapi.json POST /v1/external/learnhub/uploads/{id}/complete","href":"/api-reference/uploads/complete-upload"},{"title":"Abort Upload","openapi":"api-reference/openapi.json POST /v1/external/learnhub/uploads/{id}/abort","href":"/api-reference/uploads/abort-upload"}]}]}]},"basePath":"","title":"Replace Assignment - SoluDesks APIs","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}