---
title: "POST /api/v1/contracts/"
method: POST
path: "/api/v1/contracts/"
tags: ["contracts"]
---

# POST /api/v1/contracts/

`POST /api/v1/contracts/`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/contracts/`
- Auth: HTTP bearer

Create a new player contract

## Request body

- object
  - `serverId` number, required: Server ID
  - `fieldId` number, required: Field/Parcel ID
  - `payment` number, required: Payment amount
  - `paymentType` 'fixed' | 'per hour', required: Payment type
  - `jobType` string, required: Type of job (e.g., Harvesting, Plowing)
  - `description` string, required: Contract description

## Response `200`

Default Response

- object
  - `success` boolean
  - `data` object
    - `contract` object
  - `meta` object

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `422`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
