# system.kanoa.schedule.updateScheduleBlockField(scheduleBlockId, field, value, userId)

Updates the passed field value for the given scheduleBlockId

---
### Parameters
**scheduleBlockId** `Integer`<br />
**field** `String`: Valid options are scheduleBlockName, assetId, itemId', workOrderId, scheduledQty, modeId, startDate, endDate, notes, rruleStr, color<br />
**value** `pyObject`: Value to update<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**# of records modified** `Integer`<br />

---
### Example
```python
scheduleBlockId = 123
field = 'scheduleBlockName'
value = 'New Schedule Block Name'
userId = 456
retVal = system.kanoa.schedule.updateScheduleBlockField(scheduleBlockId, field, value, userId)
```
