---
jsApi: true
title: "[F] setResourceOperation"

---
```ts
setResourceOperation(
  context,
  entity,
  resourceType,
  operation): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `entity` | `Operation` |
| `resourceType` | `Model` |
| `operation` | [`ResourceOperations`](Type.ResourceOperations.md) |

## Returns

`void`
