Prompts

Delete Agent Version By Label

Changed on

delete a prompt version by label.

  • if label is production -> 400 (must move production first)
  • if label resolves to 0 -> 404; >1 -> 400 ambiguous (except latest which should be unique)
  • if deleting latest, reassign latest to highest remaining version
  • cannot delete if it is the only version
delete/v1/agents/{agent_id}/prompts/versions

Request

  • Base URL
    https://api.getbluejay.ai
  • URL
    https://api.getbluejay.ai/v1/agents/{agent_id}/prompts/versions
  • Auth
    HTTPBearer (a scheme the document does not define)

Path parameters

agent_idinteger required

Query parameters

labelstring nullable

Headers

X-Organization-Idstring
X-API-Keystring required

API key required to authenticate requests.

Response

Successful Response

unknown required

Changes

    • info

      api operation id delete_prompt_version_by_label_agent_scoped_v1_agents__agent_id__prompts_versions_delete removed and replaced with delete_agent_version_by_label_v1_agents__agent_id__prompts_versions_delete

    • info

      endpoint deprecated

    • info

      added the new optional header request parameter X-Organization-Id