task_id: task_create_api_update_label entity_id: api_update_label generated_at: '2025-12-18T17:43:33.708857' workflow_version: v003 target: type: api definition: id: api_update_label method: PUT path: /api/labels/[id] summary: Update label profile description: Update label name, description, logo, and website tags: - labels path_params: - name: id type: string description: Label ID request_body: content_type: application/json schema: type: object properties: - name: name type: string required: false description: Label name - name: description type: string required: false description: Label description - name: logoUrl type: string required: false description: Logo URL - name: website type: string required: false description: Website URL responses: - status: 200 description: Label updated schema: type: object properties: - name: id type: uuid - name: name type: string - name: slug type: string - name: description type: string - status: 401 description: Unauthorized - status: 403 description: Not label owner - status: 404 description: Label not found depends_on_models: [] depends_on_apis: [] auth: required: true roles: - label related: models: [] apis: [] components: [] dependencies: entity_ids: [] definitions: [] files: to_create: - app/api/labels/[id]/route.ts reference: [] acceptance: - criterion: PUT /api/labels/[id] returns success response verification: curl -X PUT /api/labels/[id] - criterion: Request validation implemented verification: Test with invalid data - criterion: Error responses match contract verification: Test error scenarios