# system.kanoa.tooling.saveRequiredTooling(toolingInfo, userId)

Adds a tool an item needs on a machine, or changes one (with itemAssetToolingId). Give a tool or a tooling type, not both; the machine, if given, must use tooling. The same tool can't be required twice for the same item and machine. The operations still to come that make the item reserve their tools again to match.

---

### Parameters

**toolingInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
 <tbody>
  <tr><td> - itemAssetToolingId</td><td>Integer</td><td>To change one; None adds one</td></tr>
  <tr><td> - itemId</td><td>Integer</td><td>Required</td></tr>
  <tr><td> - assetId</td><td>Integer</td><td>The machine; None for any machine</td></tr>
  <tr><td> - toolingAssetId</td><td>Integer</td><td>A specific tool, or</td></tr>
  <tr><td> - toolingAssetTypeId</td><td>Integer</td><td>any tool of this tooling type</td></tr>
  <tr><td> - required</td><td>Boolean</td><td>False lists a tool the item may use, without a warning when it isn't mounted. Default True</td></tr>
  <tr><td> - sortOrder</td><td>Integer</td><td></td></tr>
  <tr><td> - enabled</td><td>Boolean</td><td>Default True</td></tr>
 </tbody>
</table>

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

---

### Returns

**(itemAssetToolingId, message)**: the requirement's id and None, or None and why it was refused<br />

---

### Example

```python
toolingInfo = {'itemId': 1, 'assetId': 1, 'toolingAssetId': 1, 'required': True}
userId = 5
itemAssetToolingId, message = system.kanoa.tooling.saveRequiredTooling(toolingInfo, userId)
```
