# setJobOpportunity (/api/reference/mutations/set-job-opportunity)

Put a job under an opportunity, or take it out. The job's expected fee and the opportunity's total follow, as the database works them out. The same input twice leaves the same job. It writes only the job's opportunity and expected fee.

```graphql
setJobOpportunity(
  input: SetJobOpportunityInput!
): SetJobOpportunityPayload!
```

### Arguments [#arguments]

#### [`setJobOpportunity.input`](#input) · [`SetJobOpportunityInput!`](/api/reference/inputs/set-job-opportunity-input) `non-null` `input` [#input]
The job, and the opportunity to put it under.

### Type [#type]

#### [`SetJobOpportunityPayload`](/api/reference/objects/set-job-opportunity-payload) `object` [#setjobopportunitypayload-object]
The job and the opportunity it is now under.