Projects

Archive or restore a project

Takes the project out of the active views or brings it back to them.

Tool
filmo_projects_archive
Access: Write

Result

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "filmo_projects_archive",
    "arguments": {
      "projectId": "proj_8f2a1c",
      "archived": true
    }
  }
}

generated from the schema

It deletes nothing and touches neither the orders, nor the documents, nor the team: only the visibility. Only a draft or cancelled project can be archived (409 otherwise); restoring is always allowed. PUT because the call SETS the value —there is no toggle—, so repeating it does nothing new. Responds 204 with no body. An archived project is left out of the listing unless archived=true is passed; its GET keeps answering with archived: true.

Arguments

projectIdstringRequired

Project identifier.

Limits: min length 1

archivedbooleanRequired

true removes the project from the active views; false brings it back.

idempotencyKeystring

Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.

Limits: min length 1, max length 255

ifMatchstring

Optimistic locking: the meta.etag you got from the detail read of this resource (or "*"). If the resource changed since, the call fails with 412 precondition_failed before writing anything; read it again and retry. Omit it to write unconditionally.

Limits: min length 1

Result

On success the result carries structuredContent with data and meta. These are the attributes of data.

An error is a result with isError: true and the problem in content[0].text; there is no structuredContent. See Errors.

The same operation by REST

This tool runs PUT /api/v1/projects/{projectId}/archive.

  • Projects

    Archive or restore a project

    Takes the project out of the active views or brings it back to them.

  • Guides

    Safe writes

    An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.

  • Guides

    Errors

    A tool error is a result with isError: true and the problem in the first text block. Branch on its code.