418418 "content" : {
419419 "application/json" : {
420420 "schema" : {
421- "$ref" : " #/components/schemas/CreateOrRenameWorkspaceRequest "
421+ "$ref" : " #/components/schemas/FullWorkspace-Input "
422422 }
423423 }
424424 },
430430 "content" : {
431431 "application/json" : {
432432 "schema" : {
433- "$ref" : " #/components/schemas/Workspace "
433+ "$ref" : " #/components/schemas/FullWorkspace-Output "
434434 }
435435 }
436436 }
522522 }
523523 },
524524 "/api/v1/workspaces/{workspace_name}" : {
525+ "put" : {
526+ "tags" : [
527+ " CodeGate API" ,
528+ " Workspaces"
529+ ],
530+ "summary" : " Update Workspace" ,
531+ "description" : " Update a workspace." ,
532+ "operationId" : " v1_update_workspace" ,
533+ "parameters" : [
534+ {
535+ "name" : " workspace_name" ,
536+ "in" : " path" ,
537+ "required" : true ,
538+ "schema" : {
539+ "type" : " string" ,
540+ "title" : " Workspace Name"
541+ }
542+ }
543+ ],
544+ "requestBody" : {
545+ "required" : true ,
546+ "content" : {
547+ "application/json" : {
548+ "schema" : {
549+ "$ref" : " #/components/schemas/FullWorkspace-Input"
550+ }
551+ }
552+ }
553+ },
554+ "responses" : {
555+ "201" : {
556+ "description" : " Successful Response" ,
557+ "content" : {
558+ "application/json" : {
559+ "schema" : {
560+ "$ref" : " #/components/schemas/FullWorkspace-Output"
561+ }
562+ }
563+ }
564+ },
565+ "422" : {
566+ "description" : " Validation Error" ,
567+ "content" : {
568+ "application/json" : {
569+ "schema" : {
570+ "$ref" : " #/components/schemas/HTTPValidationError"
571+ }
572+ }
573+ }
574+ }
575+ }
576+ },
525577 "delete" : {
526578 "tags" : [
527579 " CodeGate API" ,
15891641 "title" : " Conversation" ,
15901642 "description" : " Represents a conversation."
15911643 },
1592- "CreateOrRenameWorkspaceRequest" : {
1644+ "CustomInstructions" : {
1645+ "properties" : {
1646+ "prompt" : {
1647+ "type" : " string" ,
1648+ "title" : " Prompt"
1649+ }
1650+ },
1651+ "type" : " object" ,
1652+ "required" : [
1653+ " prompt"
1654+ ],
1655+ "title" : " CustomInstructions"
1656+ },
1657+ "FullWorkspace-Input" : {
15931658 "properties" : {
15941659 "name" : {
15951660 "type" : " string" ,
15981663 "config" : {
15991664 "anyOf" : [
16001665 {
1601- "$ref" : " #/components/schemas/WorkspaceConfig"
1666+ "$ref" : " #/components/schemas/WorkspaceConfig-Input "
16021667 },
16031668 {
16041669 "type" : " null"
16051670 }
16061671 ]
1607- },
1608- "rename_to" : {
1609- "anyOf" : [
1610- {
1611- "type" : " string"
1612- },
1613- {
1614- "type" : " null"
1615- }
1616- ],
1617- "title" : " Rename To"
16181672 }
16191673 },
16201674 "type" : " object" ,
16211675 "required" : [
16221676 " name"
16231677 ],
1624- "title" : " CreateOrRenameWorkspaceRequest "
1678+ "title" : " FullWorkspace "
16251679 },
1626- "CustomInstructions " : {
1680+ "FullWorkspace-Output " : {
16271681 "properties" : {
1628- "prompt " : {
1682+ "name " : {
16291683 "type" : " string" ,
1630- "title" : " Prompt"
1684+ "title" : " Name"
1685+ },
1686+ "config" : {
1687+ "anyOf" : [
1688+ {
1689+ "$ref" : " #/components/schemas/WorkspaceConfig-Output"
1690+ },
1691+ {
1692+ "type" : " null"
1693+ }
1694+ ]
16311695 }
16321696 },
16331697 "type" : " object" ,
16341698 "required" : [
1635- " prompt "
1699+ " name "
16361700 ],
1637- "title" : " CustomInstructions "
1701+ "title" : " FullWorkspace "
16381702 },
16391703 "HTTPValidationError" : {
16401704 "properties" : {
19822046 ],
19832047 "title" : " Workspace"
19842048 },
1985- "WorkspaceConfig" : {
2049+ "WorkspaceConfig-Input" : {
2050+ "properties" : {
2051+ "custom_instructions" : {
2052+ "type" : " string" ,
2053+ "title" : " Custom Instructions"
2054+ },
2055+ "muxing_rules" : {
2056+ "items" : {
2057+ "$ref" : " #/components/schemas/MuxRule"
2058+ },
2059+ "type" : " array" ,
2060+ "title" : " Muxing Rules"
2061+ }
2062+ },
2063+ "type" : " object" ,
2064+ "required" : [
2065+ " custom_instructions" ,
2066+ " muxing_rules"
2067+ ],
2068+ "title" : " WorkspaceConfig"
2069+ },
2070+ "WorkspaceConfig-Output" : {
19862071 "properties" : {
1987- "system_prompt " : {
2072+ "custom_instructions " : {
19882073 "type" : " string" ,
1989- "title" : " System Prompt "
2074+ "title" : " Custom Instructions "
19902075 },
19912076 "muxing_rules" : {
19922077 "items" : {
19982083 },
19992084 "type" : " object" ,
20002085 "required" : [
2001- " system_prompt " ,
2086+ " custom_instructions " ,
20022087 " muxing_rules"
20032088 ],
20042089 "title" : " WorkspaceConfig"
20302115 }
20312116 }
20322117 }
2033- }
2118+ }
0 commit comments