Skip to content

Commit c279857

Browse files
authored
Merge pull request #74 from Portkey-AI/fix/prompts_publish
fix: publis prompt and prompt partial route
2 parents 978a523 + c8113aa commit c279857

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

openapi.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tags:
2323
description: Create, List, Retrieve, Update, and Delete collections of prompts.
2424
- name: Labels
2525
description: Create, List, Retrieve, Update, and Delete labels.
26-
- name: PromptCollections
26+
- name: Prompts
2727
description: Create, List, Retrieve, Update, and Delete prompt collections.
2828
- name: PromptPartials
2929
description: Create, List, Retrieve, Update, and Delete prompt partials.
@@ -845,7 +845,7 @@ paths:
845845
summary: Create a new prompt
846846
operationId: createPrompt
847847
tags:
848-
- PromptCollections
848+
- Prompts
849849
security:
850850
- Portkey-Key: []
851851
requestBody:
@@ -924,7 +924,7 @@ paths:
924924
summary: List prompts
925925
operationId: listPrompts
926926
tags:
927-
- PromptCollections
927+
- Prompts
928928
security:
929929
- Portkey-Key: []
930930
parameters:
@@ -976,7 +976,7 @@ paths:
976976
summary: Get a prompt by ID or slug
977977
operationId: getPrompt
978978
tags:
979-
- PromptCollections
979+
- Prompts
980980
security:
981981
- Portkey-Key: []
982982
parameters:
@@ -1007,7 +1007,7 @@ paths:
10071007
summary: Update a prompt
10081008
operationId: updatePrompt
10091009
tags:
1010-
- PromptCollections
1010+
- Prompts
10111011
security:
10121012
- Portkey-Key: []
10131013
parameters:
@@ -1083,7 +1083,7 @@ paths:
10831083
summary: Delete a prompt
10841084
operationId: deletePrompt
10851085
tags:
1086-
- PromptCollections
1086+
- Prompts
10871087
security:
10881088
- Portkey-Key: []
10891089
parameters:
@@ -1116,7 +1116,7 @@ paths:
11161116
summary: Get all versions of a prompt
11171117
operationId: getPromptVersions
11181118
tags:
1119-
- PromptCollections
1119+
- Prompts
11201120
security:
11211121
- Portkey-Key: []
11221122
parameters:
@@ -1150,7 +1150,7 @@ paths:
11501150
summary: Get a specific version of a prompt
11511151
operationId: getPromptByVersion
11521152
tags:
1153-
- PromptCollections
1153+
- Prompts
11541154
security:
11551155
- Portkey-Key: []
11561156
parameters:
@@ -1187,7 +1187,7 @@ paths:
11871187
summary: Update a specific version of a prompt
11881188
operationId: updatePromptVersion
11891189
tags:
1190-
- PromptCollections
1190+
- Prompts
11911191
security:
11921192
- Portkey-Key: []
11931193
parameters:
@@ -1231,12 +1231,12 @@ paths:
12311231
'500':
12321232
description: Server error
12331233

1234-
/prompts/{promptId}/default:
1234+
/prompts/{promptId}/makedefault:
12351235
put:
12361236
summary: Set a version as the default for a prompt
12371237
operationId: updatePromptDefault
12381238
tags:
1239-
- PromptCollections
1239+
- Prompts
12401240
security:
12411241
- Portkey-Key: []
12421242
parameters:
@@ -1509,7 +1509,7 @@ paths:
15091509
'500':
15101510
description: Server error
15111511

1512-
/prompts/partials/{promptPartialId}/default:
1512+
/prompts/partials/{promptPartialId}/makedefault:
15131513
put:
15141514
summary: Set a version as the default for a prompt partial
15151515
operationId: updatePromptPartialDefault

0 commit comments

Comments
 (0)