curl --request PATCH \
--url http://localhost:8080/api/v1/endpoints/legal-qa \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Legal Q&A Endpoint",
"summary": "Updated summary text",
"description": "# Updated Description\nMarkdown content here"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Updated Description\nMarkdown content here",
"summary": "Updated summary text",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents",
"created_at": "2024-03-01T12:00:00Z",
"updated_at": "2024-03-01T14:30:00Z",
"model": {
"id": "223e4567-e89b-12d3-a456-426614174000",
"name": "GPT-4 Legal",
"dtype": "openai",
"configuration": {
"model_name": "gpt-4"
}
},
"dataset": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Legal Documents DB",
"summary": "Vector database of legal documents",
"dtype": "weaviate",
"configuration": {
"host": "localhost",
"port": 8080
}
},
"policies": [
{
"id": "333e4567-e89b-12d3-a456-426614174003",
"name": "Rate Limit Policy",
"policy_type": "rate_limit",
"configuration": {
"rate": "100/hour"
}
}
]
}
curl --request PATCH \
--url http://localhost:8080/api/v1/endpoints/legal-qa \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Legal Q&A Endpoint",
"summary": "Updated summary text",
"description": "# Updated Description\nMarkdown content here"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Updated Description\nMarkdown content here",
"summary": "Updated summary text",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents",
"created_at": "2024-03-01T12:00:00Z",
"updated_at": "2024-03-01T14:30:00Z",
"model": {
"id": "223e4567-e89b-12d3-a456-426614174000",
"name": "GPT-4 Legal",
"dtype": "openai",
"configuration": {
"model_name": "gpt-4"
}
},
"dataset": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Legal Documents DB",
"summary": "Vector database of legal documents",
"dtype": "weaviate",
"configuration": {
"host": "localhost",
"port": 8080
}
},
"policies": [
{
"id": "333e4567-e89b-12d3-a456-426614174003",
"name": "Rate Limit Policy",
"policy_type": "rate_limit",
"configuration": {
"rate": "100/hour"
}
}
]
}
curl --request PATCH \
--url http://localhost:8080/api/v1/endpoints/legal-qa \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Legal Q&A Endpoint",
"summary": "Updated summary text",
"description": "# Updated Description\nMarkdown content here"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Updated Description\nMarkdown content here",
"summary": "Updated summary text",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents",
"created_at": "2024-03-01T12:00:00Z",
"updated_at": "2024-03-01T14:30:00Z",
"model": {
"id": "223e4567-e89b-12d3-a456-426614174000",
"name": "GPT-4 Legal",
"dtype": "openai",
"configuration": {
"model_name": "gpt-4"
}
},
"dataset": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Legal Documents DB",
"summary": "Vector database of legal documents",
"dtype": "weaviate",
"configuration": {
"host": "localhost",
"port": 8080
}
},
"policies": [
{
"id": "333e4567-e89b-12d3-a456-426614174003",
"name": "Rate Limit Policy",
"policy_type": "rate_limit",
"configuration": {
"rate": "100/hour"
}
}
]
}
summary field.