From 4ebacbfafe78dfa31ec627a5982c9ec80d1a1147 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 21 Aug 2024 22:10:18 -0700 Subject: [PATCH] docs(enterprise.md): add key/team level spend tags to docs --- docs/my-website/docs/proxy/enterprise.md | 65 ++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/docs/my-website/docs/proxy/enterprise.md b/docs/my-website/docs/proxy/enterprise.md index 536ef166271..a432c72ae42 100644 --- a/docs/my-website/docs/proxy/enterprise.md +++ b/docs/my-website/docs/proxy/enterprise.md @@ -101,8 +101,38 @@ Requirements: + +```bash +curl -L -X POST 'http://0.0.0.0:4000/key/generate' \ +-H 'Authorization: Bearer sk-1234' \ +-H 'Content-Type: application/json' \ +-d '{ + "metadata": { + "tags": ["tag1", "tag2", "tag3"] + } +} +' +``` + + + + +```bash +curl -L -X POST 'http://0.0.0.0:4000/team/new' \ +-H 'Authorization: Bearer sk-1234' \ +-H 'Content-Type: application/json' \ +-d '{ + "metadata": { + "tags": ["tag1", "tag2", "tag3"] + } +} + +' +``` + + Set `extra_body={"metadata": { }}` to `metadata` you want to pass @@ -270,7 +300,42 @@ Requirements: + +```bash +curl -L -X POST 'http://0.0.0.0:4000/key/generate' \ +-H 'Authorization: Bearer sk-1234' \ +-H 'Content-Type: application/json' \ +-d '{ + "metadata": { + "spend_logs_metadata": { + "hello": "world" + } + } +} + +' +``` + + + + +```bash +curl -L -X POST 'http://0.0.0.0:4000/team/new' \ +-H 'Authorization: Bearer sk-1234' \ +-H 'Content-Type: application/json' \ +-d '{ + "metadata": { + "spend_logs_metadata": { + "hello": "world" + } + } +} + +' +``` + +