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

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

## Parameters

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

## Returns

`void`
