# system.kanoa.tooling.adjustCounter(adjustInfo, userId)

A manual change to one of a tool's counts, logged as an adjustment. Refused if it would take the count below 0.

---

### Parameters

**adjustInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
 <tbody>
  <tr><td> - toolingAssetId</td><td>Integer</td><td>Required</td></tr>
  <tr><td> - counterName</td><td>String</td><td>Required. lifetimeCycles, cyclesSincePm, cyclesSinceRefurb, lifetimeRunMinutes, runMinutesSincePm, runMinutesSinceRefurb or refurbCount</td></tr>
  <tr><td> - delta</td><td>Number</td><td>Required. Added to the count; negative to take away</td></tr>
  <tr><td> - reason</td><td>String</td><td>correction (default), pm, refurbishment or calibration</td></tr>
  <tr><td> - note</td><td>String</td><td></td></tr>
  <tr><td> - workOrderId</td><td>Integer</td><td></td></tr>
 </tbody>
</table>

**userId** `Integer`: The user making the change<br />

---

### Returns

**(newValue, message)**<br />

---

### Example

```python
adjustInfo = {'toolingAssetId': 1, 'counterName': 'counterName', 'delta': 1.0, 'reason': 'reason', 'note': 'note'}
userId = 5
newValue, message = system.kanoa.tooling.adjustCounter(adjustInfo, userId)
```
