cURL
curl --request PUT \ --url https://api.example.com/api/collections/{collection_id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "openapi_spec": {} } '
Update an existing API collection (admin only)
Bearer <admin_token>
curl -X PUT https://api.sari-platform.com/api/collections/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer <admin_token>" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated Name", "description": "Updated description" }'
{ "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Updated Name", "description": "Updated description", "updated_at": "2024-01-16T12:00:00Z" }