Update Mission
Updates a mission for the API key’s team.
After a signature has been collected (freelancer or company), or once the mission has moved past pre-signature review, only enterprise fields are accepted: name, purchase_order, external_id, and project code fields.
Before any signature, you may also send contractual fields (description, dates, rate, deliverables, team_signer_id, payment terms). For services agreement missions with a generated contract, Folkyn regenerates the prestation PDF from the updated data (same behaviour as the Folkyn app edit flow).
Authorizations
Use Authorization: Bearer <your_api_key>
Path Parameters
Body
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).
Mission description. Contractual — only before any signature.
Contractual — only before any signature.
hourly, daily, monthly, deliverable Unit rate (required style for non-deliverable missions). Contractual — only before any signature.
Contractual — only before any signature (YYYY-MM-DD).
Contractual — only before any signature (YYYY-MM-DD).
Contractual — only before any signature.
1 <= x <= 365Reference date used to start counting payment delay days. On POST /missions, when omitted, uses the team default from Folkyn settings (Configuration → Missions).
invoice_date, end_of_month Contractual — only before any signature. For deliverable missions only.
Company signatory for mission documents. Contractual — only before any signature.
Mission title.
255255External identifier for the mission (e.g. an ERP or third-party system reference). Send null or "" to clear it.
255Link 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.
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.
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
