Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <your_api_key>

Path Parameters

id
string<uuid>
required

Body

application/json

At least one field required.

Enterprise fields (always allowed when the mission belongs to your team): name, purchase_order, external_id, project code fields.

Contractual fields (only before any document signature): description, mission_type, rate_amount, start_date, end_date, payment_terms_days, payment_terms_basis, deliverables, team_signer_id. Sending a contractual field after a signature returns 400.

Send only one of project_code_id or project_code when updating the project code (not both in the same request).

description
string

Mission description. Contractual — only before any signature.

mission_type
enum<string>

Contractual — only before any signature.

Available options:
hourly,
daily,
monthly,
deliverable
rate_amount
number

Unit rate (required style for non-deliverable missions). Contractual — only before any signature.

start_date
string<date>

Contractual — only before any signature (YYYY-MM-DD).

end_date
string<date>

Contractual — only before any signature (YYYY-MM-DD).

payment_terms_days
integer

Contractual — only before any signature.

Required range: 1 <= x <= 365
payment_terms_basis
enum<string>

Reference date used to start counting payment delay days. On POST /missions, when omitted, uses the team default from Folkyn settings (Configuration → Missions).

Available options:
invoice_date,
end_of_month
deliverables
any[]

Contractual — only before any signature. For deliverable missions only.

team_signer_id
string<uuid> | null

Company signatory for mission documents. Contractual — only before any signature.

name
string

Mission title.

Maximum string length: 255
purchase_order
string | null
Maximum string length: 255
external_id
string | null

External identifier for the mission (e.g. an ERP or third-party system reference). Send null or "" to clear it.

Maximum string length: 255
project_code_id
string<uuid> | null

Link the mission to an existing team project code by UUID (the row must belong to the same team as the API key). Send null or "" to unlink the mission from any project code. Mutually exclusive with project_code in the same request.

project_code_ids
string<uuid>[]

Replace the full list of project codes linked to the mission (requires the team setting for multiple codes). Send an empty array to unlink all codes. Mutually exclusive with project_code_id and project_code.

project_code
object | null

Create or reuse a team project code and link the mission in one request. Send null to unlink. Mutually exclusive with project_code_id. Field-level rules are on name and external_id below.

Response

Success

data
object