RelativityOne · Capability

RelativityOne Legal Hold API — Tasks

RelativityOne Legal Hold API — Tasks. 2 operations. Lead operation: Create Legal Hold Task. Self-contained Naftiko capability covering one Relativityone business surface.

Run with Naftiko RelativityoneTasks

What You Can Do

POST
Createlegalholdtask — Create Legal Hold Task
/v1/relativity-environment/v1/workspaces/{workspaceid}/legal-hold/tasks
PUT
Updatelegalholdtask — Update Legal Hold Task
/v1/relativity-environment/v1/workspaces/{workspaceid}/legal-hold/tasks/{taskid}

MCP Tools

create-legal-hold-task

Create Legal Hold Task

update-legal-hold-task

Update Legal Hold Task

idempotent

Capability Spec

legal-hold-tasks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: RelativityOne Legal Hold API — Tasks
  description: 'RelativityOne Legal Hold API — Tasks. 2 operations. Lead operation: Create Legal Hold Task. Self-contained
    Naftiko capability covering one Relativityone business surface.'
  tags:
  - Relativityone
  - Tasks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RELATIVITYONE_API_KEY: RELATIVITYONE_API_KEY
capability:
  consumes:
  - type: http
    namespace: legal-hold-tasks
    baseUri: https://relativity.rest/api
    description: RelativityOne Legal Hold API — Tasks business capability. Self-contained, no shared references.
    resources:
    - name: relativity-environment-v1-workspaces-workspaceId-legal-hold-tasks
      path: /relativity-environment/v1/workspaces/{workspaceId}/legal-hold/tasks
      operations:
      - name: createlegalholdtask
        method: POST
        description: Create Legal Hold Task
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspaceId
          in: path
          type: integer
          description: The artifact ID of the workspace.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: relativity-environment-v1-workspaces-workspaceId-legal-hold-tasks-taskId
      path: /relativity-environment/v1/workspaces/{workspaceId}/legal-hold/tasks/{taskId}
      operations:
      - name: updatelegalholdtask
        method: PUT
        description: Update Legal Hold Task
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspaceId
          in: path
          type: integer
          description: The artifact ID of the workspace.
          required: true
        - name: taskId
          in: path
          type: integer
          description: The artifact ID of the task.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.RELATIVITYONE_API_KEY}}'
  exposes:
  - type: rest
    namespace: legal-hold-tasks-rest
    port: 8080
    description: REST adapter for RelativityOne Legal Hold API — Tasks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/relativity-environment/v1/workspaces/{workspaceid}/legal-hold/tasks
      name: relativity-environment-v1-workspaces-workspaceid-legal-hold-tasks
      description: REST surface for relativity-environment-v1-workspaces-workspaceId-legal-hold-tasks.
      operations:
      - method: POST
        name: createlegalholdtask
        description: Create Legal Hold Task
        call: legal-hold-tasks.createlegalholdtask
        with:
          workspaceId: rest.workspaceId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/relativity-environment/v1/workspaces/{workspaceid}/legal-hold/tasks/{taskid}
      name: relativity-environment-v1-workspaces-workspaceid-legal-hold-tasks-taskid
      description: REST surface for relativity-environment-v1-workspaces-workspaceId-legal-hold-tasks-taskId.
      operations:
      - method: PUT
        name: updatelegalholdtask
        description: Update Legal Hold Task
        call: legal-hold-tasks.updatelegalholdtask
        with:
          workspaceId: rest.workspaceId
          taskId: rest.taskId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: legal-hold-tasks-mcp
    port: 9090
    transport: http
    description: MCP adapter for RelativityOne Legal Hold API — Tasks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-legal-hold-task
      description: Create Legal Hold Task
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: legal-hold-tasks.createlegalholdtask
      with:
        workspaceId: tools.workspaceId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-legal-hold-task
      description: Update Legal Hold Task
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: legal-hold-tasks.updatelegalholdtask
      with:
        workspaceId: tools.workspaceId
        taskId: tools.taskId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.