---
title: "Update Contract"
method: PUT
path: "/api/v1.0/contracts/{id}"
tags: ["Contracts"]
---

# Update Contract

`PUT /api/v1.0/contracts/{id}`

## Path parameters

- `id` string, required

## Request body

- Contract
  - `campaign_id` number — The ID of the Campaign the Contract is from
  - `created_at` number — The date/time the Contract was created at represented as an integer
  - `id` string — The ID of the Contract
  - `level` 'white' | 'green' | 'gold' | 'previous_gold' — The level of Wingmate Pro the user has acheived
  - `points_remaining_to_pro` number — The number of points remaining for the user to acheive Wingmate Pro on this Campaign
  - `progress` number — The % progress the user is to Wingmate Pro on this Campaign, represented as a decimal
  - `user_id` number — The ID of the User who the Contract is for

## Response `200`

Success

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/wingmateapp/apis/wingmate-api.md) · [All operations](https://skmtc.dev/wingmateapp/apis/wingmate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wingmateapp/wingmate-api/revisions/d6fccce94b7c/schema)
