Skip to main content
Credal | Documentation

Search documentation

Type to search this documentation.

On this pageOverview

Delete Copilot

DELETE https://api.credal.ai/api/v0/copilots/deleteCopilot Content-Type: application/json

Reference: https://docs.credal.ai/api-reference/api-reference/copilots/delete-copilot

  • Authorization header (bearer token, required) — Bearer authentication of the form Bearer <token>, where token is your auth token.

This endpoint expects an object.

  • id (UUID, required) — Copilot ID
  • copilotId (UUID, required)

Request

JSON
{
  "id": "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
}

Response

JSON
{
  "copilotId": "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
}

SDK Code

Example0
import { CredalClient } from "@credal/sdk";

async function main() {
    const client = new CredalClient({
        apiKey: "YOUR_TOKEN_HERE",
    });
    await client.copilots.deleteCopilot({
        id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
    });
}
main();
Example0
from credal import CredalV0
import uuid

client = CredalV0(
    api_key="YOUR_TOKEN_HERE",
)

client.copilots.delete_copilot(
    id=uuid.UUID("ac20e6ba-0bae-11ef-b25a-efca73df4c3a"),
)
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu