.. _upload_data: Upload Data for Worker ====================== **Endpoint**: `/workers/upload_data` **Description**: Upload data for a worker. **Access Required**: `workers.write` **Request**: - **Method**: POST - **URL**: `https://api.neuron.expert/public/workers/upload_data` - **Headers**: - `X-Apikey: your_api_key` - **Body**: ```json { "worker_id": 1 } ``` **Response**: - **Status 200**: Confirmation of uploaded data. ```json { "status": "success", "message": "Data uploaded successfully" } ``` - **Status 403**: Insufficient scope. ```json { "detail": "Insufficient scope" } ``` - **Status 404**: NewsFeed not found. ```json { "detail": "NewsFeed not found" } ``` **Example**: ```bash curl -X POST "https://api.neuron.expert/public/workers/upload_data" -H "X-Apikey: your_api_key" -d '{"worker_id": 1}' ```