418
418
"content" : {
419
419
"application/json" : {
420
420
"schema" : {
421
- "$ref" : " #/components/schemas/CreateOrRenameWorkspaceRequest "
421
+ "$ref" : " #/components/schemas/FullWorkspace-Input "
422
422
}
423
423
}
424
424
},
430
430
"content" : {
431
431
"application/json" : {
432
432
"schema" : {
433
- "$ref" : " #/components/schemas/Workspace "
433
+ "$ref" : " #/components/schemas/FullWorkspace-Output "
434
434
}
435
435
}
436
436
}
522
522
}
523
523
},
524
524
"/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
+ },
525
577
"delete" : {
526
578
"tags" : [
527
579
" CodeGate API" ,
1589
1641
"title" : " Conversation" ,
1590
1642
"description" : " Represents a conversation."
1591
1643
},
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" : {
1593
1658
"properties" : {
1594
1659
"name" : {
1595
1660
"type" : " string" ,
1598
1663
"config" : {
1599
1664
"anyOf" : [
1600
1665
{
1601
- "$ref" : " #/components/schemas/WorkspaceConfig"
1666
+ "$ref" : " #/components/schemas/WorkspaceConfig-Input "
1602
1667
},
1603
1668
{
1604
1669
"type" : " null"
1605
1670
}
1606
1671
]
1607
- },
1608
- "rename_to" : {
1609
- "anyOf" : [
1610
- {
1611
- "type" : " string"
1612
- },
1613
- {
1614
- "type" : " null"
1615
- }
1616
- ],
1617
- "title" : " Rename To"
1618
1672
}
1619
1673
},
1620
1674
"type" : " object" ,
1621
1675
"required" : [
1622
1676
" name"
1623
1677
],
1624
- "title" : " CreateOrRenameWorkspaceRequest "
1678
+ "title" : " FullWorkspace "
1625
1679
},
1626
- "CustomInstructions " : {
1680
+ "FullWorkspace-Output " : {
1627
1681
"properties" : {
1628
- "prompt " : {
1682
+ "name " : {
1629
1683
"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
+ ]
1631
1695
}
1632
1696
},
1633
1697
"type" : " object" ,
1634
1698
"required" : [
1635
- " prompt "
1699
+ " name "
1636
1700
],
1637
- "title" : " CustomInstructions "
1701
+ "title" : " FullWorkspace "
1638
1702
},
1639
1703
"HTTPValidationError" : {
1640
1704
"properties" : {
1982
2046
],
1983
2047
"title" : " Workspace"
1984
2048
},
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" : {
1986
2071
"properties" : {
1987
- "system_prompt " : {
2072
+ "custom_instructions " : {
1988
2073
"type" : " string" ,
1989
- "title" : " System Prompt "
2074
+ "title" : " Custom Instructions "
1990
2075
},
1991
2076
"muxing_rules" : {
1992
2077
"items" : {
1998
2083
},
1999
2084
"type" : " object" ,
2000
2085
"required" : [
2001
- " system_prompt " ,
2086
+ " custom_instructions " ,
2002
2087
" muxing_rules"
2003
2088
],
2004
2089
"title" : " WorkspaceConfig"
2030
2115
}
2031
2116
}
2032
2117
}
2033
- }
2118
+ }
0 commit comments