---
title: "Invoke a method"
method: POST
path: "/api/interests/{interest}/objects/{object}/methods/{method}/invoke"
---

# Invoke a method

`POST /api/interests/{interest}/objects/{object}/methods/{method}/invoke`

Invokes a method on an object with the provided arguments. For getters, returns immediately. For setters and regular methods, returns an invoke ID to check the completion status later.

## Request body

- unknown[] — List of arguments to pass to the method
  - unknown

## Response `200`

Method invocation result or status

- Invoke
  - `id` integer, nullable — Invoke ID (-1 for immediate results like getters)
  - `status` 'pending' | 'finished', required — Invocation status
  - `result` unknown

## Other responses

- `400` — Bad request. Invalid arguments
- `401` — Unauthorized, missing or invalid JWT token
- `404` — Resource not found
- `500` — Internal server error

---

[API](https://skmtc.dev/airbus/apis/openapi-document-for-rest-component.md) · [All operations](https://skmtc.dev/airbus/apis/openapi-document-for-rest-component/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/airbus/openapi-document-for-rest-component/revisions/c9a79ab26d8c/schema)
