Skip to content

Commit 3df3bd1

Browse files
Delete Config API & Prompt API Fixes
1 parent 4bfa6b6 commit 3df3bd1

1 file changed

Lines changed: 79 additions & 1 deletion

File tree

openapi.yaml

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tags:
2424
description: Create, List, Retrieve, Update, and Delete collections of prompts.
2525
- name: Labels
2626
description: Create, List, Retrieve, Update, and Delete labels.
27-
- name: Prompts
27+
- name: Prompt Collections
2828
description: Create, List, Retrieve, Update, and Delete prompt collections.
2929
- name: PromptPartials
3030
description: Create, List, Retrieve, Update, and Delete prompt partials.
@@ -875,9 +875,13 @@ paths:
875875
functions:
876876
type: array
877877
description: Functions for the prompt
878+
items:
879+
type: object
878880
tools:
879881
type: array
880882
description: Tools for the prompt
883+
items:
884+
type: object
881885
tool_choice:
882886
type: object
883887
description: Tool Choice for the prompt
@@ -9066,6 +9070,80 @@ paths:
90669070
console.log(config);
90679071

90689072
/configs/{slug}:
9073+
delete:
9074+
servers:
9075+
- url: https://api.portkey.ai/v1
9076+
- url: SELF_HOSTED_CONTROL_PLANE_URL/v1
9077+
summary: Delete a config
9078+
tags:
9079+
- Configs
9080+
operationId: deleteConfig
9081+
parameters:
9082+
- name: slug
9083+
in: path
9084+
required: true
9085+
schema:
9086+
type: string
9087+
responses:
9088+
"200":
9089+
description: Config deleted successfully
9090+
content:
9091+
application/json:
9092+
schema:
9093+
type: object
9094+
examples:
9095+
example-1:
9096+
value:
9097+
{}
9098+
x-code-samples:
9099+
- lang: python
9100+
label: Default
9101+
source: |
9102+
portkey = Portkey(
9103+
api_key="PORTKEY_API_KEY",
9104+
)
9105+
9106+
portkey.configs.delete(
9107+
id="CONFIG_SLUG"
9108+
)
9109+
- lang: javascript
9110+
label: Default
9111+
source: |
9112+
import { Portkey } from "portkey-ai";
9113+
9114+
const portkey = new Portkey({
9115+
apiKey:"PORTKEY_API_KEY",
9116+
})
9117+
9118+
await portkey.configs.delete({
9119+
id:"CONFIG_SLUG"
9120+
})
9121+
- lang: python
9122+
label: Self-Hosted
9123+
source: |
9124+
from portkey_ai import Portkey
9125+
9126+
portkey = Portkey(
9127+
api_key="PORTKEY_API_KEY",
9128+
base_url="SELF_HOSTED_CONTROL_PLANE_URL"
9129+
)
9130+
9131+
portkey.configs.delete(
9132+
id="CONFIG_SLUG"
9133+
)
9134+
- lang: javascript
9135+
label: Self-Hosted
9136+
source: |
9137+
import { Portkey } from "portkey-ai";
9138+
9139+
const portkey = new Portkey({
9140+
apiKey:"PORTKEY_API_KEY",
9141+
baseUrl: "SELF_HOSTED_CONTROL_PLANE_URL"
9142+
})
9143+
9144+
await portkey.configs.delete({
9145+
id:"CONFIG_SLUG"
9146+
})
90699147
get:
90709148
servers:
90719149
- url: https://api.portkey.ai/v1

0 commit comments

Comments
 (0)